Please help me correct the code

#1
a1 = Ref( tsl, -1 );
GraphXSpace = 5;
dist = 2 * ATR( 5 );

for( i = 0; i < BarCount; i++ )
{
if( Buy ) PlotText( "Buy @" + a1[ i ], i, L[ i ] - dist, colorGreen );

if( Short ) PlotText( "Sell @" + a1[ i ], i, H[ i ] + dist, colorRed );

====================================================================================
This is the current buy for me
i want the buy to be calculated from the candle close , not from the orange line breakout
 

Attachments

Similar threads