Hi,

How can I write a text juste above a ribbon ?

I saw the KB's plot text examples but they refered to High, Low ...

Ribbon defines its height in percent of pane width and I suppose starts 
from the bottom

How can I place some text in % of a pane (Y axis) or always at the 
bottom of a pane ?

Thank you for the help.

Best regards

_SECTION_BEGIN("trending ribbon");
uptrend=PDI()>MDI()AND Signal()<MACD();
downtrend=MDI()>PDI()AND Signal()>MACD();
Plot( 6, "ribbon",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )),
styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
_SECTION_END();
dist = ATR(10);
for( i = 0; i < BarCount; i++ )
{
if( uptrend[i] ) PlotText( "Buy" + dist[ i ], i, dist[ i ]-dist[i], 
colorGreen );
//if( downtrend[i] ) PlotText( "Sell" + dist[ i ], i, dist[ i ]+dist[i], 
colorRed, colorYellow );
}

Reply via email to