PureBytes Links
Trading Reference Links
|
Hello,
Right now margindeposit must be constant for one symbol
(it may vary on symbol-by-symbol basis, but not on bar-by-bar basis).
So right now you should use higher of the two:
MarginDeposit = 18750;
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "billtex2003" <billtex2003@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, August 01, 2004 12:55 PM
Subject: [amibroker] Varying Margin
> 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:
> margindeposit = iif(Buy,18750,9375);
>
> It won't work. It takes the 9375 in every case.
>
> Any help is appreciated.
> Thank you.
>
>
>
>
>
> 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
>
>
>
>
>
>
------------------------ 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/
|