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

Re: [amibroker] Null seems to plot as zero



PureBytes Links

Trading Reference Links

Hello,

I don't know the rest of the code you are using, but this:
Plot(IIf(MA(C,10)>C, C, Null), "label", colorGreen, styleThick); 

works just fine and zero is not included.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Graham Johnson" <grahamj@xxxxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, December 12, 2008 1:02 AM
Subject: [amibroker] Null seems to plot as zero


> I'm trying to plot a variable that should only have positive values or 
> null
> 
> The following line results in the Y axis including zero so all of the 
> data is compressed at the top of the chart
> Plot(IIf(xaInLongTrade, xaPlotValue, Null), xPlotLabel, colorGreen,
> styleThick);
> 
> If the Iif is removed then the result is fine - the Y axis range fits 
> the data
> Plot(xaPlotValue, xPlotLabel, colorGreen, styleThick);
> 
> I've even tried setting any negatives or zeros to null prior to Plot 
> but the results are still the same
> xaPlotValue = IIf(xaPlotValue <= 0, Null, xaPlotValue);
> 
> The battle with this has gone on for over a week now, can anyone help 
> please?
> 
> Graham
> 
> 
> ------------------------------------
> 
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> *********************
> TO GET TECHNICAL 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
> 
> 
> 

------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/