StockFetcher Forums · Filter Exchange · Proble with filter syntax<< >>Post Follow-up
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
711 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.

Fetcher[
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{var1, a + b}
set{var2, c + d}
set{var3, e + f}
set{var4, var1 + var2}
set{var5, var3 + var4}
and var5 above 5.99
]



nibor100
1,029 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,029 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.

Fetcher[
set{A, count(ema(3) above ema(9),1)+count(ema(30) above ema(40),1)}
set{B, count(ema(10) above ema(18),1)+ count(ema(40) above ema(50),1)}
set{C, count(ema(21) above ema(24),1)+count(ema(50) above ema(60),1)}
set{var1, a + b}
set{var5, var1 + c}
and var5 above 5.99
]



snappyfrog
711 posts
msg #161098
Ignore snappyfrog
5/20/2024 7:43:28 PM

Touche Nibor

StockFetcher Forums · Filter Exchange · Proble with filter syntax<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.