Iwan73 1 posts msg #161093 - Ignore Iwan73 modified |
5/19/2024 11:06:02 AM
Hello
I am new in SF and have standard account. I am trying to learn syntax .
I write sth like this; i want to find stocks with emas in specific order
set{A, count(ema(3) above ema(9),1)}
set{B, count(ema(10) above ema(18),1)}
set{C, count(ema(21) above ema(24),1)}
set{D, count(ema(30) above ema(40),1)}
set{E, count(ema(40) above ema(50),1)}
set{F, count(ema(50) above ema(60),1)}
set{x, A+B+C+D+E+F} // here is error
show stocks where x above 5 // here is error
Unfortunatelly screener dont return any results because of 2 errors in syntax. To be precise errors are on 2 last lines.
Can you point what i am doing wrong, please.
|
snappyfrog 731 posts msg #161094 - Ignore snappyfrog modified |
5/20/2024 9:11:24 AM
You can only add 2 items at a time, not all of them.
|
nibor100 1,043 posts msg #161096 - Ignore nibor100 |
5/20/2024 6:57:19 PM
@ Iwan73,
And your 2nd syntax error was because SF could not create that last variable.
Ed S.
|
nibor100 1,043 posts msg #161097 - Ignore nibor100 |
5/20/2024 7:42:33 PM
to show that there is more than one way to skin a cat...
Ed S.
|
snappyfrog 731 posts msg #161098 - Ignore snappyfrog |
5/20/2024 7:43:28 PM
Touche Nibor
|