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

Re: [amibroker] Different chart styles in one pane?



PureBytes Links

Trading Reference Links

You could also use a param function to select which type of plot you want

type = ParamToggle("Plot Type", "Bar,Line",0);
style = styleBar;
if(Type) style=styleLine;
Plot(C,"",colorGrey50,style);


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com


On 15/12/06, Steve Dugas <sjdugas@xxxxxxxxxxx> wrote:
>
> Hi - You could do somethng like this
>
> If ( LastValue( Cum( High ) ) == LastValue( Cum( Low ) ) )
>     Style = styleLine;
> Else
>     Style = styleCandle;
> Plot( Close, "Ticker Name", MyColor, Style );
>
> Steve
>
> ----- Original Message -----
> From: "Thomas Ludwig" <Thomas.Ludwig@xxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, December 14, 2006 7:49 AM
> Subject: [amibroker] Different chart styles in one pane?
>
>
> > In my default Layout I'm using Candlesticks as my default style.
> However,
> > I
> > have some time series where I only have closing prices available. For
> > these
> > prices I would prefer viewing them as line charts.
> >
> > Tomasz presented a solution how to plot different styles in two panes on
> >
> http://www.amibroker.com/kb/2006/09/01/price-chart-with-independent-style
> > .
> > But that's not what I want - I want an automatic switch from one style
> to
> > the
> > other in the same pane. Unfortunately, neither Plot() nor ParamStyle()
> > accept
> > an argument like
> >
> > IIf(O=L=H=C,styleLine,styleCandle)
> >
> > I only get an error 5: Argument #2 has incorrect type.
> >
> > Does anybody know how to solve the problem?
> >
> > Thanks in advance.
> >
> > Greetings, Thomas
> >
> >
> > 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
> >
> >
> >
> >
>
>
>
>
> 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
>
>
>
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/586 - Release Date: 12/13/2006 6:13 PM