|
Plot(*C*,"Price", *colorBlack*, *styleLine* );


Miny = Status("axisminy");
Maxy = Status("axismaxy");
y= Miny+  (Maxy - Miny) *20/100; // at 20%

*Buy*= Cross(RSI(), 50);
*for*( i = 0; i < *BarCount*; i++ )
{
*if*( *Buy*[i] ) PlotText( "Buy:\n" + *C*[ i ], i, y, *colorGreen* );
}
|

reinsley wrote:
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 );
}



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links




Reply via email to