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

[amibroker] PositionSize / Multi-currency handling



PureBytes Links

Trading Reference Links

I would like to back test some pyramiding ideas using a ranking 
system, for individual issues.  What I would like is if condition1 is 
true buy 1/3 position and then if condition2 buy another 1/3 position 
and so on.  I have fooled a bit with PositionSize but it does not 
seem to like to add to positions, am I missing something?

Cond1=IIf(Score>10,PositionSize=-.33,0);
Cond2=IIf(Score>20,PositionSize=-.66,0);
Cond3=IIf(Score>30,PositionSize=-1,0);
Buy = Cond1 OR Cond2 OR Cond3;

Any ideas will be appreciated!

Bill




------------------------ 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/