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

[amibroker] Problem w/ nested IIf



PureBytes Links

Trading Reference Links

Can someone PLEASE tell me why the following always returns 3 for 
ROCfactor and 4 for ERfactor regardless of which ParamList choice is 
selected from Parameters on the AA controls? tia

Length = ParamList("Regression Length", "Long|Mid|Short");

IIf(Length == "Long", ROCfactor = 1.5, IIf(Length == "Mid", ROCfactor 
= 2, IIf(Length == "Short", ROCfactor = 3,0)));
IIf(Length == "Long", ERfactor = 1.25, IIf(Length == "Mid", ERfactor = 
2.5,IIf(Length == "Short", ERfactor = 4,0)));






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/