Brooke, Only way I know how to write a backtest is with a builtin variable that you edit by hand [or via a bat file]. E.g. would write Richard's BBB scan as [edit] see you posted after I started ;) ------------------- input = "mycriteria.lst"; // output = "bbb.LST"; integer now; now:= 0; // Set to neg # to backtest // could also use now in a for loop for a multiple-period backtest
if Close(now)-Close(now -5)>.05*Close(now -5) and Vol(now) > MovAvg(now,63,vol) and Close(now)>.85*Max(now,now -250,cl) then println symbol,",",date(0),",",close(0),",",vol(0),"," if now != 0 then print date(now),",",close(now),",",close(0 - close(now),",", println,Description:25; endif; ----------------- |