First of all = is ASSIGNMENT operator, not comparision. Therefore with O=H=L=C you assign the value of CLOSE to all other arrays !
Secondly comparisions need to be combined with AND/OR to make any sense. Thirdly you can not switch style because there is NO reasonable way to display line between candles (line in this case will be just one POINT - which is what you get using candles anyway). What you can do is to plot TWO charts each using different style and SKIPPING parts you don't want to display using NULL valuetoplot = IIF( somecondition, Close, Null ); // NULL won't plot anything Plot( valuetoplot ......) Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "Thomas Ludwig" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, December 14, 2006 1:49 PM 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 > > > > >
