PlotText to plot only below intraday Low candle

Romeo1998

Well-Known Member
#11
The codes in this thread are all incorrect.
You need a condition to check Low of bar with Day's low.


Code:
SetBarsRequired( 1500, 1500 );

Plot( C, "Price", colorDefault, styleCandle );

DL = TimeFrameGetPrice( "L", inDaily, 0 );

LowCond = L == DL;

bi = Barindex();
fvb = FirstVisibleValue( bi );
lvb = LastVisibleValue( bi );
for( i = fvb; i <= lvb; i++ ) {
    if( LowCond[i] ) PlotText( "DayLow " + L[ i ], i, L[ i ], colorBrightGreen, -1, -15 );
}
Thank you once again friend for helping me out :)
Your code worked perfectly :)
 

Similar threads