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

Re: [amibroker] Re: Value of Equity ??



PureBytes Links

Trading Reference Links

Hi Andrew,

Not sure what you are trying to do with it, but I think the main reason the 
Equity() function was introduced is to return an equity line as an aid to 
system development (allows you to visually see drawdowns, etc, when you are 
backtesting your systems and compare equity performance with price, 
indicators, etc  ). TJ describes it as a "backtester in a box". You need to 
define your buy/sell rules before calling it because it uses these rules 
internally to process your trades and return the corresponding equity line.

Steve

----- Original Message ----- 
From: "Andrew Z" <wizard@xxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, November 11, 2005 3:01 AM
Subject: Re: [amibroker] Re: Value of Equity ??


> 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;
>> ......
>
>
>
>
>
> 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
>
>
>
>
>
>
> 




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