Sell to be happen when price close below low of the bar previous to signal bar without applystop function

#1
i want to make strategy for my buy condition and sell when price go down of low of before buy candle low


//plotting price
Plot( C,"",colorDefault,styleCandle);

//condition for buying Buy = Cross( MACD(), Signal() );
//plot a green arrow below the candle on chart when condition is true
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-12);
//referring to the previous bar before the condition bar_before_buy=Ref(Buy,-1);
//referring to the previous bar's low before the condition ll=ValueWhen(bar_before_buy,L);
Plot(ll,"",colorViolet,styleLine|styleDots);
Sell = Cross ( ll , C ); PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorWhite,0,L,-12);
 

Attachments