Nice trick Joseph :-) -- Terry
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of J. Biran Sent: Saturday, September 09, 2006 16:51 To: [email protected] Subject: RE: [amibroker] Re: Error on code But, you can use: dottedStyle = IIf(stor>80 OR stor<20,1,null); Plot(IIf(dottedStyle ,yourVariable,Null),"",Yourcolor,styleDots); Plot(IIf(dottedStyle=null ,yourVariable,Null),"",Yourcolor,styleLine); Joseph Biran ____________________________________________ -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of cyclicaltrader Sent: Saturday, September 09, 2006 2:49 PM To: [email protected] Subject: [amibroker] Re: Error on code Terry thanks for the response Costas --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > Styles are not arrays so you can't do this in style. Too bad. > -- > Terry > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of cyclicaltrader > Sent: Saturday, September 09, 2006 14:34 > To: [email protected] > Subject: [amibroker] Error on code > > Hi, > > I have the following statement for use within the Plot() function. It > applies to the style: > > dottedStyle = IIf(stor>80, styleDots,IIf(stor<20,styleDots,styleLine)); > > "stor" is the result of drawing function. I want to draw "styleDots" > when it's over 80 or under 20. > > When I pass "dottedstyle" to the Plot() function, I get the error > message: > > "Argument #4 has incorrect type. (The function expects different > argument type here)." > > > I'm not sure why I'am receiving this kind of error since the IIF > statement returns either styleDots, or styleLine which are both valid > parameters. > > Any help will be greatly appreciated. > > Thanks > > Costas > > > > > > > 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 > 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 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 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 <*> 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: mailto:[EMAIL PROTECTED] mailto:[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/
