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

Re: [amibroker] Help needed for Plot function



PureBytes Links

Trading Reference Links

Try removing the descriptions from the plot statements.
Plot( O, "", ParamColor("Color", colorBlack ), styleNoDraw | ParamStyle("Style") | GetPriceStyle() );

Terry

Harvey Lu wrote:

Hi, All,

 

I am adding some code for ‘Price’ of the chart plotted as following:

 

_SECTION_BEGIN("Price");

SetChartOptions(0,chartShowArrows|chartShowDates);

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));

Plot( O, "Open", ParamColor("Color", colorBlack ), styleNoDraw | ParamStyle("Style") | GetPriceStyle() );

Plot( H, "High", ParamColor("Color", colorBlack ), styleNoDraw | ParamStyle("Style") | GetPriceStyle() );

Plot( L, "Low", ParamColor("Color", colorBlack ), styleNoDraw | ParamStyle("Style") | GetPriceStyle() );

Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

Plot( V, "Volume", ParamColor("Color", colorBlack ), styleNoDraw | ParamStyle("Style") | GetPriceStyle() );

_SECTION_END();

 

The purpose doing this is I want to display not only close price value in data tip’s window but open, high, low, and volume as well. It has been done by this formula but accompanied with another problem that all the price value has been displayed in title bar as well. The question is can I use ‘styleNoDraw’ and ‘styleNoTitle’ at same time? As ‘styleNoTitle’ is a new option and it doesn’t show in Plot function of User’s manual version 4.70. It doesn’t have a value like ‘styleNoDraw’ does (256). Therefore, I can not combine them together.

It’s grateful if anyone can help me solve this problem.

 

Harvey Lu

 



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





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18/03/2005



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 Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links