Dear Dukascopy supports,
When performing backtest in GUI mode, it is possible to show Balance and Equity indicators on the corresponding chartpanel, however they are seperated in two different indicator panels. It would be very helpfull if they can be plotted in the same panel to visualize the drawdown. I have spent about two days try to make such a custom indicator, but didnt succeed. Searching through the forum, it does not seem to have any available resouce. The current Equity and Balance indicators in the API are not the real indicators that can be accessed. There are no such source files available in the wikki. I tried with context.getHistory().getEquity() and account.getEquity() on the indicator interface, but doesnt work. Balance and Equity values can however be indexed on OHLC, still I dont know how to read them into indicator arrays.
what is more, I have some doubts regarding the current Equity and Balance indicators: 1. Do they include the commitions, swap, etc in the backtest mode? 2. Since they need to be connected to a specific instrument, I guess they sum up only transaction history of this instrument only. While when backtesting multipairs, these Equity and Balance indicators are not valid any more. Is this true?
I would like to have a balance and equity indicators plotted in the same panel and they should be as close to DEMO\Live as possible. Please give some tips, example, or resouces on how can one make it.
best regards
Leguanpai
|