Hi, desperately seeking help from an expert. would like some help please, regarding this working afl. i've attached a chart from my scan to show what I'm after and that i've done a bunch of homework but can't quite grasp what i need to do. my afl does scan with good results BUT i would like to code the following condition with an easier method:
Buy = Close > 5
AND Close < 50
AND ADX( 10 ) > 30
AND Ref( ADX( 10 ), -5 ) > 30
AND Ref( ADX( 10 ), -10 ) > 30
AND Ref( ADX( 10 ), -15 ) > 30
AND Ref( ADX( 10 ), -20 ) > 30
AND Close > MA( Close , 10 ) AND Close < EMA( Close , 30 )
AND Volume > 100000;
i'd like to remove:
AND ADX( 10 ) > 30
AND Ref( ADX( 10 ), -5 ) > 30
AND Ref( ADX( 10 ), -10 ) > 30
AND Ref( ADX( 10 ), -15 ) > 30
AND Ref( ADX( 10 ), -20 ) > 30
replace with: ADX( 10 ) > 30 //for every day over the last 60 day period//
how do i code //for every day over the last 60 day period// ???
as stated in my photo comments, i want to scan for stocks in strong well-established trends, then enter on minor pullbacks. my scan is doing that but would very much like to learn this ability to scan for a certain condition over a defined period of time, without that condition changing during the entire specified time frame.
Thank you, please help.
after a closer look at my scan results i see that ADX is not always above 30(for entire 60 day period) but many of the stocks are above. not sure how to proceed from here, help. ty.
Buy = Close > 5
AND Close < 50
AND ADX( 10 ) > 30
AND Ref( ADX( 10 ), -5 ) > 30
AND Ref( ADX( 10 ), -10 ) > 30
AND Ref( ADX( 10 ), -15 ) > 30
AND Ref( ADX( 10 ), -20 ) > 30
AND Close > MA( Close , 10 ) AND Close < EMA( Close , 30 )
AND Volume > 100000;
i'd like to remove:
AND ADX( 10 ) > 30
AND Ref( ADX( 10 ), -5 ) > 30
AND Ref( ADX( 10 ), -10 ) > 30
AND Ref( ADX( 10 ), -15 ) > 30
AND Ref( ADX( 10 ), -20 ) > 30
replace with: ADX( 10 ) > 30 //for every day over the last 60 day period//
how do i code //for every day over the last 60 day period// ???
as stated in my photo comments, i want to scan for stocks in strong well-established trends, then enter on minor pullbacks. my scan is doing that but would very much like to learn this ability to scan for a certain condition over a defined period of time, without that condition changing during the entire specified time frame.
Thank you, please help.
after a closer look at my scan results i see that ADX is not always above 30(for entire 60 day period) but many of the stocks are above. not sure how to proceed from here, help. ty.
Attachments
-
99.3 KB Views: 133
Last edited: