[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] PlotText in a loop



PureBytes Links

Trading Reference Links

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 );
}



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

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

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

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

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/