Topic: Getting Equity And Balance Values in Indicators
Hi,
I am trying to get equity values from with-in the indicator.
Currently I am using this: curBalance = Backtester.MoneyEquity(iBar); inside the calculate method.
But this function either remains same as initial balance or returns an abrupt value after a few 100 bars have been processed. I tested it during debugging as well. Same for all the other money and profit loss functions.
Is it possible to access the Backtester object or Session object through the indicator to get hold of these values.
I don't want to write additional code in the Backtest Calculator to process this indicator because then I will have to go and modify Forex Stratey Trader as well. And I want things to be kept as standard as possible.
Please advise.
Regards,
Riz