PureBytes Links
Trading Reference Links
|
This is sounding like a one-sided convo, but anyway :-)
For anyone interested, it seems that anything that references Equity
MUST appear in your code AFTER your buy/sell signals. When I moved my
code quoted below to after the buy/sells, it appears to function ok,
although I'll have to doublecheck what values it is giving me (ie.
today's values after the buy or for next buy)...
Cheers,
Andrew.
Andrew Z wrote:
> 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;
> ......
------------------------ 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/
|