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

[amibroker] Where is my mistake here??



PureBytes Links

Trading Reference Links

Hi,

With the following code I need to use two colors:


jj = c > O;
UpColor = colorgreen;
DownColor = colorred;

GfxSelectFont( "Arial", 8, 700 );
GfxSetBkMode( 1 );


GfxSetTextColor( IIf( jj , UpColor , DownColor )); 

pxHeight = Status( "pxchartheight" ) ;


//---------- HIGH ----------
OP = "HIGH    :  " + H; 
x = 20;
//---------- OPEN ----------
HI = "OPEN   :  " + O; 
x2 = 20;
//---------- CLOSE ---------
LO = "CLOSE :  " + C; 
x3 = 20;
//---------- LOW -----------
CL = "LOW     :  " + L; 
x4 = 20;
//--------------------------

y = pxHeight;

GfxSelectPen( colorBrightGreen, 0.5 );
GfxRoundRect( 5, y - 93, 120, y , 7, 7 ) ;

GfxTextOut( OP  , x , y -81) ;
GfxTextOut( HI  , x2, y -63) ;
GfxTextOut( LO  , x3, y -45) ;
GfxTextOut( CL  , x4, y -27) ;

_SECTION_END();

But this give me an error..

Thank you for your help.

Regards


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

Please note that this group is for discussion between users only.

To get 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/