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

[amibroker] Modifying margin inside AFL Code



PureBytes Links

Trading Reference Links

hi, 

Is it possible to use MarginRequirement to modify my
margin amount inside an Iif Statement using AFL? This
example seems to work, but never seems to execute- 

MarginRequirement = IIf (Equity() * 1.1 <
Ref(Equity(),-50),100 ,50);

MarginRequirement = IIf (Equity() * .95 >
Ref(Equity(),-30),25,50);

Any ideas why it may not be executing? 

Thanks, 

Eric



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/