Download MetaTrader 5

Behavior of SendNotification() in Strategy Tester?

To add comments, please log in or register
Thousands of developers have already published their products in the Market. Join them!
Erik Dahlstrand
8723
Erik Dahlstrand 2013.08.26 13:12 

 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
Alain Verleyen
Moderator
30737
Alain Verleyen 2013.08.26 13:23  
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
Erik Dahlstrand
8723
Erik Dahlstrand 2013.08.26 13:37  

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?

Alain Verleyen
Moderator
30737
Alain Verleyen 2013.08.26 13:45  
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.
Erik Dahlstrand
8723
Erik Dahlstrand 2013.08.26 14:02  

Thanks for fast replies! 

To add comments, please log in or register