Indicator Backtesting

 
how do I backtest an indicator, it doesn't work for me.
Files:
 
Mustafa Seyyid Sahin:
how do I backtest an indicator, it doesn't work for me.

depends on how it was coded

OnChartEvent() does not work on strategy tester

 
Mustafa Seyyid Sahin:
how do I backtest an indicator, it doesn't work for me.

For MT5, open a source code for any indicator, for example: Moving Average, then run it to open back test. Now close a visual mode window and go to tester settings, you will find option is now switched to indicator and you can now test any indicator you want. To run indicator source code, click blue button next to compile. 

Reason: