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

Re: [amibroker] chart exceptions per symbol



PureBytes Links

Trading Reference Links

style can only be done with IF

If(Name() == "$TOPIX-TSE") {style = styleNoLine; }
else { style = 32768 +2 +4; }
Plot(V, "", colorLightGrey, style );

another way would be to make V null
V = iif( Name() == "$TOPIX-TSE", null, V );
Plot(V, "", colorLightGrey, 32768 +2 +4 );

On 10/29/05, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
> One of my eSignal indices gives me tick values instead of volume.  I
> would simply like no volume to appear on the chart for that index if
> this is the case.
>
> I have tried several variations of IIF() trying to convert color or
> style to control this.
>
> Variation 1 changed the color to the background color if the Name()
> matched.  That was not bad, but then there were missing bits of
> horizontal grid where the volume bar was being written in the same
> color as the background.  Didn't look so great.  (Plot statement was
> at the bottom of the code, too, so it should be under any other
> plotted item, but the horizontal grids are apparently treated
> differently.)
>
> Variation 2 does exactly what I want, but suddenly that chart is now
> severely compressed at the top of the pane.  I have absolutely no
> idea why this should happen.
>
> Var 2:
>
> Plot(V, "", Color = colorLightGrey, IIf((Name() == "$TOPIX-TSE"), style = styleNoLine, style = 32768 +2 +4));
>
> Can anybody tell me how to accomplish what I'm trying to do: simply
> have volume bars on all charts except as noted above.
>
> Yuki
>
>
>
>
> 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
>
>
>
>
>
>
>
>


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

<*> 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/