I have breakout strategy. When condition is ready it will send sellshort and buy orders. The code is below. How to make only 1 trade in the bar when outside bars happens? My opinion is to going on lower time frame and manage trade from there. But maybe you can help me with more correct decision for than.
Code: Select all
if cond then begin
buy("LE") next bar high stop;
sellshort("SE") next bar low stop;
Setstoploss(stopv);
end;