Hi,
Can somebody help me to correct this formula ?
I'd like to write the X value of the dot line just once, at the end of
each line.
Thank you for the help
Best regards
//PIVOTS LEVELS
// turning points
tn = Now();
_TRACE("***********************Time = "+tn);
top = C==HHV(C,3);
bot = C==LLV(C,3);
topH = ValueWhen(top,C);
botL = ValueWhen(bot,C);
GraphXSpace=10;
col = IIf( Close > Ref( Close, -1 ), colorGreen, colorRed );
Plot( Close,"\nCl", colorBlack, styleCandle );
Plot( topH, "", colorRed, styleDots+styleNoLine );
Plot( botL, "", colorGreen, styleDots+styleNoLine );
_N(Title = "PIVOTS LEVELS - " + StrFormat("{{NAME}} - {{INTERVAL}}
{{DATE}} \nOp %g \nHi %g \nLo %g {{VALUES}}", O, H, L ));
for( i = 0; i < BarCount; i++ )
{
if( top [i] ) PlotText( "" + botL[ i ], i, botL[ i ], colorGreen );
if( bot [i] ) PlotText( "" + topH[ i ], i, topH[ i ], colorRed );
}