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

Re: [amibroker] chart exceptions per symbol



PureBytes Links

Trading Reference Links

Graham, I am sure that you are almost certainly  correct when you say that 
style can only be done with IF.
I have never had to learn how to use IF because I have learned how to do 
everything that I ever wanted to do by using nested IIF statements.

TJ once quoted a famous person who said that he had LEARNED TO USE THE WORD 
IMPOSSIBLE  WITH THE GREATEST OF CAUTION.

I know that  did not say that it is IMPOSSIBLE  to do STYLE without using 
IF, but if I had an interest in using STYLE,  I think that I could probably 
do what I wanted with nested IFF(statements.

Keep up your indefatigable efforts of assisting others with Amibroker.

Your help to me has been invaluable. I want to extend a huge public thankyou 
to you for all of your  help to me and to others.  Ron D



----- Original Message ----- 
From: "Graham" <kavemanperth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, October 29, 2005 12:29 AM
Subject: Re: [amibroker] chart exceptions per symbol


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



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