Hi all,
this is my 1st post in traderji.com
I'm using Amibroker 5.51.2 in Win7 Professional
I'm learning the exercise in Howard Bandy Introduction to Amibroker with the following code.
-----------------------------
FastMA = MA(C, 5);
SlowMA = MA(C, 20);
Buy = Cross(FastMA, SlowMA);
Sell = Cross(SlowMA, FastMA);
Plot(C, "C", colorBlack, styleCandle);
e = Equity();
Plot(e, "equity", colorGreen, styleLine | styleOwnScale);
---------------------------
When I click backtest, AB automatically create a new pane with Portfolio Equity value.
Then, I manually plot the Equity() chart below the Portfolio equity chart by clicking Apply Indicator in the AFL Editor.
However, I found out that the equity value is different for both charts at any time.
I'm running the backtest on a single symbol.
I think it may due to the new ~~~equity symbol that AB creates when we run a backtest. But, I cant figure out why there is difference even running on a single symbol.
anyone familiar with this problem?
Thanks,
Bursana
this is my 1st post in traderji.com
I'm using Amibroker 5.51.2 in Win7 Professional
I'm learning the exercise in Howard Bandy Introduction to Amibroker with the following code.
-----------------------------
FastMA = MA(C, 5);
SlowMA = MA(C, 20);
Buy = Cross(FastMA, SlowMA);
Sell = Cross(SlowMA, FastMA);
Plot(C, "C", colorBlack, styleCandle);
e = Equity();
Plot(e, "equity", colorGreen, styleLine | styleOwnScale);
---------------------------
When I click backtest, AB automatically create a new pane with Portfolio Equity value.
Then, I manually plot the Equity() chart below the Portfolio equity chart by clicking Apply Indicator in the AFL Editor.
However, I found out that the equity value is different for both charts at any time.
I'm running the backtest on a single symbol.
I think it may due to the new ~~~equity symbol that AB creates when we run a backtest. But, I cant figure out why there is difference even running on a single symbol.
anyone familiar with this problem?
Thanks,
Bursana