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

[amibroker] I guess I don?t get Boolean, maybe someone can help



PureBytes Links

Trading Reference Links

Hi,



I keep getting error 6 with 'IF' statement. 
I have a long conditional like:

Omc  = (C0 > eh13)  AND (Op0 < wbx150) AND (C0 < the75pzone) AND 
myind1 AND sup5up AND  n17up ;

(Then:)

Fcase = "a";

if ( omc)   Fcase = "b";


I keep getting error 6.

I've changed the 'Boolean' expression to Ref(omc, 0) and 
If (omc > 0)  and a few other variations.

My filter is a bunch of `OR' statements and I want to, with an 
addtextcolum statement display which `OR' statement got through the 
filter statement.

And I've searched the maual. The words 'and' and 'or' are not
in the reserved word list, and I don't think boolean is defined,
but I could be wrong.

Thanks In advance for showing me the error of my ways. An example
of how to do this would be great. Want I want is the iif with no
action when the statement is false.







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

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