Yes. The programme is great. But I also wish they would adapt it to the tester. OnChartEvent() doesn't work in the strategy tester, but programmers adapt events to OnTick().
I did something like this... Instead of:
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if(id==CHARTEVENT_OBJECT_CLICK && sparam==buyBtn && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true){....
Such:
void OnTick() { if (MQLInfoInteger(MQL_TESTER) && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true)
Dmitriy Gizlyk: Yes, in test mode MT4 and MT5 do not generate events to trigger the OnChartEvent function. But if you want to use multiple psels in MT4 test mode, you must create a function to check the state of the buttons on each tick. But this method doesn't work in MT5.
Best registers,
Dmitry.
Can you tell me how to do it?
On demo and real everything works. But I would like to apply this panel in the strategy tester
Yes. The programme is great. But I also wish they would adapt it to the tester. OnChartEvent() doesn't work in the strategy tester, but programmers adapt events to OnTick().
I did something like this... Instead of:
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if(id==CHARTEVENT_OBJECT_CLICK && sparam==buyBtn && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true){....
Such:
void OnTick() { if (MQLInfoInteger(MQL_TESTER) && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Very good idea ! Very easy to use , it facilitates mt5 for beginners . Thanks
Thanks you.
Good stuff, the test seems to be all flat isn't that a problem? 'CLOSE ALL' did not close all.
Хорошие вещи, как полный тест уровня не является проблемой, а "ЗАКРЫТЬ ВСЕ" не полностью открыт.
Hello Dimitri!
Can you tell me. How to make the Expert Advisor work in the tester?
Thank you in advance!
can i use your system for mt4
Hello,
Yes, you can. But you mast to change trade functions.
Yes. The programme is great. But I also wish they would adapt it to the tester.
OnChartEvent() doesn't work in the strategy tester, but programmers adapt events to OnTick().
I did something like this...
Instead of:
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) {
if(id==CHARTEVENT_OBJECT_CLICK && sparam==buyBtn && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true){....
Such:
void OnTick() {
if (MQLInfoInteger(MQL_TESTER) && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true)
Catch button press in the tester.
Yes, in test mode MT4 and MT5 do not generate events to trigger the OnChartEvent function. But if you want to use multiple psels in MT4 test mode, you must create a function to check the state of the buttons on each tick. But this method doesn't work in MT5.
Can you tell me how to do it?
On demo and real everything works. But I would like to apply this panel in the strategy tester
Yes. The programme is great. But I also wish they would adapt it to the tester.
OnChartEvent() doesn't work in the strategy tester, but programmers adapt events to OnTick().
I did something like this...
Instead of:
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) {
if(id==CHARTEVENT_OBJECT_CLICK && sparam==buyBtn && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true){....
Such:
void OnTick() {
if (MQLInfoInteger(MQL_TESTER) && ObjectGetInteger(0,buyBtn,OBJPROP_STATE)==true)
Catch button pressing in the tester.