Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
asking about EA refresh time
Blajjmaka

Member Since Sep 26, 2013  6 posts Haithem Ayed (Blajjmaka) Nov 20 at 10:06

Hello
I am developing an expert prototype.
i have an idea but i need help.
I need to know if we can incorporate a command line so that the expert checks the data every second and no longer relies on the tik candles on the different timeframes.
that is possible ?

I am a professional trader but I am new to MQL programming
thank you

USD
dhinox

Member Since Aug 06, 2020  1 posts dhinosaurus (dhinox) Nov 24 at 05:16

//mql4

//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
void OnInit()
  {
   while(EventSetTimer(1) != true) //set your time interval here
     {
      Sleep(500);
     }
   Print('Init OK');
  }


//+------------------------------------------------------------------+
//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
  {
    //type your code here
  }

Step by Step
Blajjmaka

Member Since Sep 26, 2013  6 posts Haithem Ayed (Blajjmaka) Nov 24 at 10:18
Thank you soo much dhinosaurus

USD
Please login to comment.
Loading
Loading
EURUSD 1.19537 GBPUSD 1.33512
USDJPY 104.332 USDCAD 1.29775

Tools

Community

Reviews

Brokers

Platform

Support


Twitter |  Facebook |  Site Map  |  Terms  |   Privacy Policy
©2020 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice. Past performance is not indicative of future results.