Experts: OpenTime - page 2

 
Antonello74 :
hello, it is possible to have it in mq4? 


No and no again. Only MQL5.

 
is there one for mt4?
 
Sergei Lugin:
is there one for mt4?

I don't have one.

 
After the latest MT5 update, the Expert Advisor started opening positions at a different time than in the parameters. Sometimes it does not open positions at all. It is the same in the tester.
 
Rusakov123:
After the latest MT5 update, the Expert Advisor started opening positions at a different time than in the parameters. Sometimes it does not open positions at all. It is the same in the tester.

The last update has nothing to do with it.

I found an error in the enumeration:

//+------------------------------------------------------------------+
//| ENUM HOURS|
//+------------------------------------------------------------------+
enum ENUM_HOURS
  {
   HOUR_00 = 0,         // 00
   HOUR_01 = 1,         // 01
   HOUR_02 = 2,         // 02
   HOUR_03 = 3,         // 03
   HOUR_04 = 4,         // 04
   HOUR_05 = 5,         // 05
   HOUR_06 = 6,         // 06
   HOUR_07 = 7,         // 07
   HOUR_08 = 8,         // 08
   HOUR_09 = 9,         // 09
   HOUR_10 = 10,        // 10
   HOUR_11 = 11,        // 11
   HOUR_12 = 12,        // 12
   HOUR_13 = 13,        // 13
   HOUR_14 = 14,        // 14
   HOUR_15 = 15,        // 15
   HOUR_16 = 16,        // 16
   HOUR_17 = 17,        // 17
   HOUR_18 = 48,        // 18
   HOUR_19 = 19,        // 19
   HOUR_20 = 20,        // 20
   HOUR_21 = 21,        // 21
   HOUR_22 = 22,        // 22
   HOUR_23 = 23,        // 23
   HOUR_24 = 24         // 24
  };

'48' is set for '18' hours instead of '18'.

Replace the highlighted value with the number 18.

 
Entering the market 18:44 - everything works. Entry 18:45 - no trades.
Files:
 
Rusakov123:
Entering the market 18:44 - everything works. Entry 18:45 - no trades.

What timeframe are you running on? What tick generation mode do you use? What symbol? What testing dates?

 
Tested it this way.
Files:
 
Rusakov123:
I tested in the following way.

To learn how to test, take the standard: the trading account currency is dollars, the currency pair being tested is EURUSD. And until you learn, don't even think about looking at stock symbols.

Пара EUR/USD: технический анализ, новости Forex, фундаментальный анализ - Блоги трейдеров и аналитика финансовых рынков
Пара EUR/USD: технический анализ, новости Forex, фундаментальный анализ - Блоги трейдеров и аналитика финансовых рынков
  • www.mql5.com
Валютная пара EUR/USD — самая ликвидная, поскольку в ней участвуют первая и вторая по значимости мировые резервные валюты. Это подтверждается и статистически: доллар и евро самые крупные по объему
 
Is it possible to include the option to choose buy or sell entries according to the market's bullish or bearish behaviour?
Example: If the market is trading in the positive, buy or the other way round.