| 
 PureBytes Links 
Trading Reference Links 
 | 
Ok, I've done some debugging but it only confirmed what I know - the 
statement "size = Equity() * 0.02;" is ALWAYS equalling 100. In the 
interpretation window I can see the value of Equity() changing as I move 
across the bars, but without changing the "size" parameter. My initial 
capital setting is 5000 and it appears it is ALWAYS using this value to 
evaluate the "size" statement, even though Equity changes at every bar.
My snippet of code is:
......
size = 0;
PointValue = 10000;
size = Equity() * (2/100);
PositionSize = size / 40;
......
What am I doing wrong??
Andrew.
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
 
 |