Hi,

The last line is for you, close is black.

BR

_SECTION_BEGIN( "HeikinAshi Bar" );
//---- heikin ashi gives color to bars
HaClose = ( O + H + L + C ) / 4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
//Plot(HaHigh ,"HaHigh ",colorCustom12,styleLine);
barcolor = IIf( HaClose >= HaOpen, colorGreen, colorRed );
barcolorstylebar = IIf( HaClose >= HaOpen, colorWhite, colorBlack );
GfxSetBkMode( 0 ); // 1 set transparent mode
//PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "", barcolor, styleCandle + 
styleNoLabel , Null, Null, Null, 0);
//Plot( C, "C ", barcolorstylebar , styleBar + styleThick );
PlotOHLC( O, H, L, C, "", barcolor , styleBar + styleThick , Null, Null, 
Null, 1 );
PlotOHLC( O, Null, Null, C, "", colorBlack , styleBar + styleThick , 
Null, Null, Null, 2 );
_SECTION_END();


Le 23/02/2010 22:57, biff a écrit :
>
>
> Dear All,
> Is it possible to set Amibroker to show only the Close on its Bar Charts
> (i.e. I do not want to see the open)?
> Thankyou
> Rowdy
>
> 



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

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

<*> 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:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

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

Reply via email to