James,
This should do the job.
{ set up 2 charts, daily and weekly }
{ weekly is data2 }
Condition1 = low of data2 < lowest(range of data2,5)[1];
Value1 = High of data2;
Value2 = low of data2;
IF Condition1 then Buy at Value1 stop;
IF Condition1 then Sell at Value2 stop;
Sudarshan
|