Discussion of article "Creating an assistant in manual trading" - page 7

 
Simalb:

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.

 
yuliang0898 :

Хорошие вещи, как полный тест уровня не является проблемой, а "ЗАКРЫТЬ ВСЕ" не полностью открыт.

This group is exclusively for nettingovyh accounts. If you are using a hedging account, you need to change the order function in the close.
 

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
 
jobstudyrana:
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.

 
Hello colleagues, how to correctly handle the ON_DBL_CLICK event?
 
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)

Catch button pressing in the tester.

How to do it in MQL4?