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

[amibroker] Re: Determine "NetProfit" for each bar



PureBytes Links

Trading Reference Links

No - I have all my BUY and SELL rules in place. The backtester works 
fine buying and selling according to all my rules.

I place the code I mentioned after the BUY and SELL rules:

e = Equity();
netprofit = ROC( e, 1 );

for (i=1; i<BarCount; i++)
{
xxx = netprofit[i];
}

And only get zero's for xxx!

PS- I am using Futures Mode - does this alter things?


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 3:33 PM