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

RE: [amibroker] assign an empty value?



PureBytes Links

Trading Reference Links

Plot(iif(ConditionTrue,MyValue,Null),"MyValue",1,1);
 
 
-----Original Message-----
From: Ara Kaloustian [mailto:ara1@xxxxxxxxxx]
Sent: Friday, March 04, 2005 7:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] assign an empty value?

You can try using Null. if this gives you an error, then 0 (zero) is an
option... otherwise you have to use the:

Writeif() function which allows you to use strings for arguments... then you
can use "" for false condition. The true condition also has to be a string
in this case.


----- Original Message -----
From: "dsb_mac" <dsb_mac@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, March 04, 2005 5:04 AM
Subject: [amibroker] assign an empty value?


>
>
> How do I assign an empty value? I'm writing an indicator and I only
> want it to display a value when the condition is true. I use IIf()
> and then Plot() it but I don't know what to put in the FALSE portion
> of the command so that there's no value to display when the
> condition is false.
>
> Thanks!
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links