Behavior of SendNotification() in Strategy Tester?

 

 Hi,

 It seems like SendNotification() is ignored when executed in the Strategy Tester. Right? So there is no need to do a conditional check? MQL5InfoInteger(MQL5_TESTER)?

 Shouldn't this be documented? Are there more functions that are ignored in test mode?

 

Regards, Erik 

Documentation on MQL5: Common Functions / SendNotification
Documentation on MQL5: Common Functions / SendNotification
  • www.mql5.com
Common Functions / SendNotification - Documentation on MQL5
 
erdah:

 Hi,

 It seems like SendNotification() is ignored when executed in the Strategy Tester. Right? So there is no need to do a conditional check? MQL5InfoInteger(MQL5_TESTER)?

 Shouldn't this be documented? Are there more functions that are ignored in test mode?

 

Regards, Erik 

All about Strategy Tester and more precisely https://www.mql5.com/en/docs/runtime/testing.

Documentation on MQL5: MQL5 programs / Testing Trading Strategies
Documentation on MQL5: MQL5 programs / Testing Trading Strategies
  • www.mql5.com
MQL5 programs / Testing Trading Strategies - Documentation on MQL5
 

Thanks for the links. Good reading.

It's obvious it's not appropriate to send Notifications from within the Strategy Tester. But it's not obvious whether it's up to the programmer to prohibit it or not. What about SendMail() and SendFTP? Also neglected in the tester?

 
erdah:

Thanks for the links. Good reading.

It's obvious it's not appropriate to send Notifications from within the Strategy Tester. But it's not obvious whether it's up to the programmer to prohibit it or not.

You are right it would be more clear to note that in the documentation.

What about SendMail() and SendFTP? Also neglected in the tester?

Most probably.
 

Thanks for fast replies! 

Reason: