PureBytes Links
Trading Reference Links
|
I'm trying to test a NASDAQ trading system.
If long, the trade is held over until the next day and the margin
requirement is $18750 per contract.
If short the trade is closed the same day and the margin is half -
$9375.
I tried this code:
marginrequirement = iif(Buy,18750,9375);
It won't work. It takes the 9375 in every case.
Any help is appreciated.
Thank you.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
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
<*> 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/
|