JJJJJJ11111
Member
#Scan for Stockbee Combo Scan
#This is a scan
def day_range = Round(((close - low) / (high - low)) * 100, 0);
plot bull_combo= if ((Close-Open)>=.90 and (Close[1]-Open[1])<(Close-Open) and day_range>=70 and Volume>100000 and (Close[1]/Close[2])<1.02) or ((Close/Close[1])>=1.04 and Volume>Volume[1] and day_range>=70 and Volume>100000 and (Close[1]/Close[2])<1.02 and Close>=3) then 1 else 0;
Code:
#Combo Bearish Scan for ToS
def minvol3=lowest(volume,3);
plot signal= ((open-close)>=.90 and volume>=100000 and (open[1]-close[1])<(open-close) and Close>=3 and minvol3>=100000) or ((Close/Close[1])<=0.96 and Volume>Volume[1] and volume>=100000 and (Close[1]/Close[2])>=.98 and Close>=3 and minvol3>=100000);
this is a scan which shows which stocks has move more than 4% today when i run it today.
As i want to see the result from yesterday , or even days 3, 4, 5 days in the past so i can backtest it.
Is there a way to add a length option in it scan for historical days?