PureBytes Links
Trading Reference Links
|
The IIF() statement in Plot() is still wrong - remove
the ) after upcolor so that you have the same type of construction as you used
for barcolor. See the full description of IIF() in the Help manual.
As for the three colors, you have incorporated them in barcolor so just use this
as the color in plot(). Plot(c, "", barcolor,
stylebar).
Bill
----- Original Message -----
Sent: Friday, September 14, 2007 12:48
PM
Subject: [amibroker] Re: Please
Help
>
> Hi Bill; > > Thank you for your reply, > > I
did it in the graphic way. > > Graph0 = Close; > Graph0Style
= 128; > barcolor = IIf( LongSetup, 29, IIf( SellSetup, 32, IIf(
> TBuy,5,0 ))); > Graph0BarColor = ValueWhen( barcolor != 0,
barcolor ); > > > I would like to do it in the plot way,
> > Plot( Close, "", IIf(LongSetup, UpColor), IIf(Tbuy,
Entercolor, > DownColor), styleBar | ParamStyle ("Style")); >
> > I have three situations for my formula, which means I should
have > three colors. > > Upcolor = colorblue; >
Downcolor = colored; > EnterColor = colorgreen; > > >
Could you please assist in it. > > Regards > >
> --- In amibroker@xxxxxxxxxxxxxxx,
"wavemechanic" <fimdot@xxx> wrote: >> >> Your IIF() is
wrong. Should be iif(x, truepart, iif(y, truepart, >
falsepart)). The second iif() is the falsepart of the first
iif(). >> >> Bill >> >> -----
Original Message ----- >> From: Mohammed
>> To: amibroker@xxxxxxxxxxxxxxx
>> Sent: Friday, September 14, 2007 12:03
PM >> Subject: [amibroker] Please Help >>
>> >> Hi, >> >>
Any one can help with this formula, >> >>
_SECTION_BEGIN("Close"); >> >> Plot( Close, "",
IIf( LongSetup, UpColor, DownColor, IIf( TBuy, >>
EntryColor, DownColor ) , styleBar | ParamStyle ("Style"))); >>
>> _SECTION_END(); >> >> I
got Too many arguments error. >> >> Thanks an
advance >> >> Regards >> >
> > > > 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 > > <*> 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:amibroker-digest@xxxxxxxxxxxxxxx > mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx > > <*> To unsubscribe from this group, send an email
to: > amibroker-unsubscribe@xxxxxxxxxxxxxxx > > <*> Your use of Yahoo! Groups is subject
to: > http://docs.yahoo.com/info/terms/ >
__._,_.___
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
__,_._,___
|