StockFetcher Forums · Filter Exchange · Looking for help<< >>Post Follow-up
hballa
36 posts
msg #161240
Ignore hballa
7/15/2024 6:10:08 PM

Hi,
I tried modifying snappyfrog's beautiful script, but able to modify one condition.

set{var1, count(price above ma(10),1)}
set{var2, count(price above ema(10),1)}
set{var3, count(MACD Histogram(12,26,9) above 0,1)}
set{var4, count(Williams %R(14) above -20,1)}
set{var5, var1 + var2}
set{var6, var3 + var4}
set{buy, var5 + var6}
draw buy > 3.99
and buy 1 day ago < 3.99
draw ma(10)
draw ema(10)
draw MACD Histogram(12,26,9)
draw Williams %R(14) line 20

I am trying to add these 3 conditions to above script, but couldn't. Can you please help in adding these 3 conditions?
=============
and buy 1 day ago < 3.99 ==>3 buy signals last 3 days
draw ma(10) ==>price above MA 10 last 3 days
draw ema(10) ==>price above EMA 10 last 3 days

nibor100
1,029 posts
msg #161242
Ignore nibor100
7/16/2024 10:15:33 AM

The Count statement in SF can go from 1 to 250.

Since you already have the statements built into that filter, you just need to adjust the Count increment to what you want and any other statements affected by those changes.

Hope this helps,
Ed S.

StockFetcher Forums · Filter Exchange · Looking for help<< >>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.