How to Run my AppDialog on Strategy Tester

 

I create an Appdialog from #include <Controls/Dialog.mqh> and I need to use Run function to run my app dialog on Strategy Tester mode. How can I do that?

Where should I put myAppDialog.Run();  to run my appdialog on Tester mode?

App dialog

 
Masood Abak:

I create an Appdialog from #include <Controls/Dialog.mqh> and I need to use Run function to run my app dialog on Strategy Tester mode. How can I do that?

Where should I put myAppDialog.Run();  to run my appdialog on Tester mode?


This is because, OnChartEvent(), doesn't work on the tester..
 
pipspider:
This is because, OnChartEvent(), doesn't work on the tester..know

 I know it. I put my code on OnTick(). My buttons works properly but I app dialog doesn't move on chart.

I don't put it on OnChartEvent. I want to know where should I put my appdialog.Run() code.

 
Any idea how to run my app dialog on Strategy Tester???!
 
Masood Abak:

I create an Appdialog from #include <Controls/Dialog.mqh> and I need to use Run function to run my app dialog on Strategy Tester mode. How can I do that?

Where should I put myAppDialog.Run();  to run my appdialog on Tester mode?


Hello Masood Abak


You should put it in OnInit ()
Reason: