var Bar, n: integer; InstallTimeBasedExit( 1 ); for Bar := 0 to BarCount() - 1 do begin ApplyAutoStops(Bar); for n:=0 to 12 do begin BuyAtLimit( Bar + 1, (0.9475-n*0.0025) * PriceClose(Bar), ''); BuyAtLimit( Bar + 1, (0.92-n*0.0025) * PriceAverage(Bar), ''); end; end;