Scrioting errors

 

Please help with the following error

'EventSetTimer' - wrong parameters count 18 4
{
   EventSetTimer("CheckForNewOrders", Check_Interval * 60 * 1000); // Set timer to check for new orders
   EventSetTimer("ExecuteFirstTrade", Initial_Delay * 60 * 1000); // Set timer to execute first trade after delay
   return INIT_SUCCEEDED;
}
Improperly formatted code edited by moderator.
Documentation on MQL5: Working with Events / EventSetTimer
Documentation on MQL5: Working with Events / EventSetTimer
  • www.mql5.com
EventSetTimer - Working with Events - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

Please, always use the CODE button (Alt-S) when inserting code.

Code button in editor

 
Johan Germishuys: Please help with the following error
  1. What do you mean by "Scrioting"?
  2. You are using the function "EventSetTimer" incorrectly.
    It only has one parameter, namely the number of seconds.
    Did you not refer to the documentation on how to use it properly?

Documentation on MQL5: Working with Events / EventSetTimer

bool  EventSetTimer(
   int  seconds      // number of seconds
   );
Documentation on MQL5: Working with Events / EventSetTimer
Documentation on MQL5: Working with Events / EventSetTimer
  • www.mql5.com
EventSetTimer - Working with Events - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5