PureBytes Links
Trading Reference Links
|
Hi all,
I am doing simple position sizing based on composite equity curve 1
ago. Its not working as I thought it should. My code:
NumPos = 1;
eq = Foreign("~~~EQUITY", "C");
tt=IIf(Ref(eq,-1) > 200000,9000,4500);
PositionSize=tt;
As you can see, when equity is $200,000 or greater trade 2
contracts - assuming that $4,500 is margin on each futures
contract. Any help is appreciated. It keeps the $4,500 no matter
where the equity is. I also put this into a condition and it plots
properly.
Thank you,
DJ
------------------------ 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/
|