PureBytes Links
Trading Reference Links
|
Greetings Clyde,
You might try changing the "A = H - L" command to this:
A = IIf (H - L > 0, H - L, .000001);
I think that should do exactly what you described in your post.
Hope it helps,
DC
--- In amibroker@xxxxxxxxxxxxxxx, "nb9trade" <clyde@xxxx> wrote:
> When I have a formula that uses A = (high - low) as a divisor it
> only works as long as A =(high - Low) does not = 0.
>
> I need a simple command to set the variable to .000001 in such
cases.
>
> The last language I programed in was Q basic.
>
> In qbasic all it would take is an if then statement like
>
> if a=0 then a = .0000001
>
> how would this be written in AFL?
>
> Thanks
>
> Clyde
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|