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

RE: [amibroker] Bar Plots - for Dan Clark



PureBytes Links

Trading Reference Links

Ara,

 

Great technique.   I think this belongs in the Wiki.

 

Thanks and regards,

 

Dan.

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ara Kaloustian
Sent: Saturday, July 02, 2005 12:39 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Bar Plots - for Dan Clark

 

Dan, here the code for the bars at bottom of chart. You have to define the variables first, of course.

//Plot Environment

Env_Color = IIf(MACD_Env==1,colorGreen,IIf(MACD_Env==-1,colorYellow,0));

Plot(6,"",Env_Color,styleArea|styleNoLabel|styleOwnScale,0,100);

Plot(7,"",colorBlack,styleArea|styleNoLabel|styleOwnScale,0,100);

//Plot Trade Signals

BuySignal = CCI1_RevTrade==1 AND MACD1_Up==1;

ShortSignal = CCI1_RevTrade==-1 AND MACD1_Dn==1;

TradeColor = IIf(BuySignal==1,colorBrightGreen,IIf(ShortSignal==1,colorYellow,colorBlack));

LastBar = IIf (BarIndex()==LastValue(BarIndex()),1,0);

Plot(IIf(Lastbar==1,100,14),"",TradeColor,styleArea|styleNoLabel|styleOwnScale,0,100);

Plot(15,"",colorBlack,styleArea|styleNoLabel|styleOwnScale,0,100);

----- Original Message -----

From: Dan Clark

Sent: Saturday, July 02, 2005 9:19 AM

Subject: RE: [amibroker] Suggestion - Value labels

 

Ara,

How did you get the green, yellow and black bars to display at the bottom of the screen?

Thanks,

Dan.



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






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