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

RE: [amibroker] Coloring a price bar.



PureBytes Links

Trading Reference Links

Hi,

 

Here's an example by TJ:

 

/* Color price - bar chart */

/* Last modified 8 Apr 2001 */

/* AFL implementation by */

/* (C)2001 Tomasz Janeczko */

 

outsidebar = Outside();

insidebar = H <= Ref( H, -1 ) AND L >= Ref( L, -1 );

/* built-in inside() works with < > instead of <= >= */

 

upbar = H > Ref( H, -1 ) AND L >= Ref( L, -1 );

downbar = L < Ref( L, -1 ) AND H <= Ref( H, -1 );

 

/* Colourized price bars drawn here */

Graph0 = Close;

Graph0Style = 128;

barcolor = IIf( outsidebar, 1, IIf( downbar, 4, IIf( upbar, 5, 0 ) ) );

Graph0BarColor = ValueWhen( barcolor != 0, barcolor );

 

 

Regards,

 

Arie

 

-----Oorspronkelijk bericht-----
Van: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] Namens patchc2000
Verzonden: woensdag 14 december 2005 19:34
Aan: amibroker@xxxxxxxxxxxxxxx
Onderwerp: [amibroker] Coloring a price bar.

 

Can somebody help me, as a newcomer to the software. I can't find any

reference in the user guide and I wish to color an OHLC bar blue if

todays high is greater than yesterdays high and todays low is greater

than yesterdays low. Thanks in advance.

 

 

 

 

 

------------------------ Yahoo! Groups Sponsor --------------------~-->

Try Online Currency Trading with GFT. Free 50K Demo. Trade

24 Hours. Commission-Free.

http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM

--------------------------------------------------------------------~->

 

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

 

<*> 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/

 

 

 



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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS