Market closed - page 3

prostotrader
10736
prostotrader  
Dennis Kirichenko:
Mikalas, this is definitely not a question for the developers. That's what the broker admins do. You should aim at them :-))

These are NOT handled by the broker's admins

RE: MT сервер и синхронизация с временем биржи
Фильченков Валерий Владимирович <filchenkov@OPEN.RU>
Кому: xxxxxxxx xxxxxxx,Батуров Михаил Александрович,Ящик 911

сегодня, 16:42
Здравствуйте. Наше ПО синхронизирует время автоматически.

Со своей стороны видим, что заяви ниже подавались в другое время



2017.01.13 09:59:58.098               * request transfered to dealers * (buy limit 2.00 ED-6.17 at 1.0642)

2017.01.13 09:59:58.099               * request transfered to dealers * (sell limit 1.00 ED-6.17 at 1.0813)

2017.01.13 09:59:58.099               * request from '*' (buy limit 2.00 ED-6.17 at 1.0642)

2017.01.13 09:59:58.099               * request from '*' (sell limit 1.00 ED-6.17 at 1.0813)

2017.01.13 09:59:58.100               * reject (Market closed) for '*' (buy limit 2.00 ED-6.17 at 1.0642)(1.0641 / 1.0814 / 1.0695)

2017.01.13 09:59:58.100               * reject (Market closed) for '*' (sell limit 1.00 ED-6.17 at 1.0813)(1.0641 / 1.0814 / 1.0695)



Возможно, что время зеленым шрифтом это время на вашем компьютере и возможно оно не точное.



From: xxxxxxx [mailto:xxxxx@mail.ru]
Sent: Monday, January 16, 2017 2:14 PM
To: Фильченков Валерий Владимирович; Батуров Михаил Александрович; Ящик 911
Subject: MT сервер и синхронизация с временем биржи



Добрый день, Валерий, Михаил!

Дог. xxxxx Терминал МТ5

Сейчас, достаточно часто, при открытии утренней сессии (10-00)
МТ5 сервер, отклоняет ордера на установку по причине, того, что
рынок закрыт.

2017.01.13 10:00:03.969 Trades  'xxxxx': buy limit 2.00 ED-6.17 at 1.0642
2017.01.13 10:00:03.969 Trades  'xxxxx': sell limit 1.00 ED-6.17 at 1.0813
2017.01.13 10:00:03.975 Trades  'xxxxx': accepted buy limit 2.00 ED-6.17 at 1.0642
2017.01.13 10:00:03.975 Trades  'xxxxx': accepted sell limit 1.00 ED-6.17 at 1.0813
2017.01.13 10:00:03.978 Trades  'xxxxx': failed buy limit 2.00 ED-6.17 at 1.0642 [Market closed]
2017.01.13 10:00:03.979 Trades  'xxxxx': failed sell limit 1.00 ED-6.17 at 1.0813 [Market closed]

Скажите, Вы синхронизируете время сервера МТ5 с Биржевым временем или это
происходит автоматически?


Полина

Dear developers!

The word is yours.

Added

So how exactly do you control Exchange time on FORTS?

prostotrader
10736
prostotrader  
Don't the developers have anything to say?
Renat Akhtyamov
20844
prostotrader:

You guys are the developers!

When are you going to synchronise the terminal time with the Exchange time?

2017.01.13 10:00:03.969 Trades  'xxxxx': buy limit 2.00 ED-6.17 at 1.0642
2017.01.13 10:00:03.969 Trades  'xxxxx': sell limit 1.00 ED-6.17 at 1.0813
2017.01.13 10:00:03.975 Trades  'xxxxx': accepted buy limit 2.00 ED-6.17 at 1.0642
2017.01.13 10:00:03.975 Trades  'xxxxx': accepted sell limit 1.00 ED-6.17 at 1.0813
2017.01.13 10:00:03.978 Trades  'xxxxx': failed buy limit 2.00 ED-6.17 at 1.0642 [Market closed]
2017.01.13 10:00:03.979 Trades  'xxxxx': failed sell limit 1.00 ED-6.17 at 1.0813 [Market closed]

And if you add a little more code? Take server time and subtract from it or add to it the difference?

It's elementary.

prostotrader
10736
prostotrader  
Renat Akhtyamov:

What if you add a little more code? Take the server time and subtract from it or add to it the difference?

It's elementary.

Elementary, "Watson", but it is impossible to take server time until 10-00 :)

Read it at your leisure.

https://www.mql5.com/ru/forum/167065

Синхронизация локального времени Windows с сервером МТ5
Синхронизация локального времени Windows с сервером МТ5
  • www.mql5.com
Добрый день! Возможно ли из MQL5 подстраивать текущее локальное время компьютера? Будут ли работать функции GetLocalTime() и SetLocalTime...
transmega
41
transmega  
prostotrader:

Elkmentary "Watson", except you can't take the server time until 10:00 :)

Read at your leisure.

https://www.mql5.com/ru/forum/167065

What if the time of the first tick in a session is equated to 10:00:00.000 ?
prostotrader
10736
prostotrader  

The glitches have started again.

1445, real

2017.03.09 13:27:29.310 Trades  'ххххх': failed buy limit 2.00 BR-11.17 at 53.48 [Market closed]
2017.03.09 13:27:29.311 Trades  'ххххх': failed sell limit 2.00 BR-11.17 at 55.94 [Market closed]
2017.03.09 13:27:29.311 trader (BR-11.17,H1)    StopTrading: Время сервера = 13:27:29; Статус ордера = BUY_ORDER; Билет = 0 OnTradeTransaction: Buy ордер не установлен! Причина:  Рынок закрыт
prostotrader
10736
prostotrader  

Apparently,[Market closed], will live forever build 1571, real opener

Synchronization of local time with server time occurred in

2017.04.17 14:05:00.094 Net_switcher (Si-6.17,H1)       Local time sync is done. Sync hour = 14 Sync min = 5 Sync sec = 0 Sync ms = 94

Server time is checked after the change of the Depth of Market

//+------------------------------------------------------------------+
//|                                                          sss.mq5 |
//|                                      Copyright 2017 prostotrader |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2017 prostotrader"
#property link      "https://www.mql5.com"
#property version   "1.00"

//+------------------------------------------------------------------+
//| Expert Check Market Time function                                |
//+------------------------------------------------------------------+
bool CheckMarketTime(const string a_symbol)
{
  if(SymbolInfoTick(a_symbol, cur_tick))
  {
    sv_time.year = 0;
    TimeToStruct(cur_tick.time, sv_time);
    if(sv_time.year > 0)
    {
      if((sv_time.day_of_week == int(FirstDay)) ||
         (sv_time.day_of_week == int(SecondDay))) return(false);
      tts_time.year = 0;
      TimeTradeServer(tts_time);
      if(tts_time.year > 0)
      {   
        if((tts_time.day_of_week == sv_time.day_of_week) &&
           (tts_time.hour == sv_time.hour) &&
           (tts_time.min == sv_time.min))
        {
          ulong cur_time = sv_time.hour * 3600 + sv_time.min * 60 + sv_time.sec;
          if(((cur_time >= time_st_mon) && (cur_time < 50370)) ||
             ((cur_time >= time_st_day) && (cur_time < 67470)) ||
             ((cur_time >= time_st_evn) && (cur_time < 85770)))
          {
            return(true);
          }
        }
      }
    }
  }
  return(false);
}
//+------------------------------------------------------------------+
//| BookEvent function                                               |
//+------------------------------------------------------------------+
void OnBookEvent(const string &symbol)
  {
    if((symbol == Symbol()) || (symbol == sec_symbol))
    {
      if (CheckMarketTime(symbol))
      {
        //........................

//---Отправка ордера

      }     }   }

Orders are sent

2017.04.17 14:05:02.138	Trades	'ххххх': sell limit 2.00 GOLD-12.17 at 1309.1
2017.04.17 14:05:02.143	Trades	'ххххх': accepted sell limit 2.00 GOLD-12.17 at 1309.1


Get reply

2017.04.17 14:05:02.146	Trades	'ххххх': failed sell limit 2.00 GOLD-12.17 at 1309.1 [Market closed]

Added

No restrictions on trade

Added

EA checks, during initialization, trading mode

//--- Check for full mode
  ENUM_SYMBOL_TRADE_MODE trade_mode = ENUM_SYMBOL_TRADE_MODE(SymbolInfoInteger(a_symbol, SYMBOL_TRADE_MODE));
  
  if(trade_mode != SYMBOL_TRADE_MODE_FULL)
  {
    MessageBox("Символ " + a_symbol + " не поддерживает полную торговлю!", "Ошибка", MB_OK | MB_ICONHAND);
    return(false);
  }


prostotrader
10736
prostotrader  

Time is running out....

From the long wait for something to change for the better took up Plaza 2.

A lot of interesting things are there, which are not in the terminal.

e.g. there is a session schedule (the time indicated is the time of the developer test site )


prostotrader
10736
prostotrader  

Bild 1596, real

"The market is closed", after the trades have been made - CROWD!

2017.05.17 10:00:01.592 Trades  'xxxxx': deal #37348336 sell 2.00 SBRF-9.17 at 17050 done (based on order #56644060)
2017.05.17 10:00:01.598 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.604 Trades  'xxxxx': accepted exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.604 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market placed for execution in 5.683 ms
2017.05.17 10:00:01.610 Trades  'xxxxx': deal #37348346 buy 2.00 SBRF-6.17 at 16597 done (based on order #56644061)
2017.05.17 10:00:01.773 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.779 Trades  'xxxxx': accepted sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.779 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050 placed for execution in 6.313 ms
2017.05.17 10:00:01.783 Trades  'xxxxx': deal #37348348 sell 2.00 SBRF-9.17 at 17050 done (based on order #56644069)
2017.05.17 10:00:01.796 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.801 Trades  'xxxxx': accepted exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.801 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market placed for execution in 6.039 ms
2017.05.17 10:00:01.806 Trades  'xxxxx': deal #37348351 buy 2.00 SBRF-6.17 at 16591 done (based on order #56644072)
2017.05.17 10:00:01.821 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.826 Trades  'xxxxx': accepted sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.827 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050 placed for execution in 5.884 ms
2017.05.17 10:00:01.832 Trades  'xxxxx': deal #37348353 sell 2.00 SBRF-9.17 at 17050 done (based on order #56644074)
2017.05.17 10:00:01.842 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.848 Trades  'xxxxx': accepted exchange buy 2.00 SBRF-6.17 at market
2017.05.17 10:00:01.849 Trades  'xxxxx': exchange buy 2.00 SBRF-6.17 at market placed for execution in 6.370 ms
2017.05.17 10:00:01.853 Trades  'xxxxx': deal #37348354 buy 2.00 SBRF-6.17 at 16591 done (based on order #56644075)
2017.05.17 10:00:01.868 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.873 Trades  'xxxxx': accepted sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.874 Trades  'xxxxx': failed sell limit 2.00 SBRF-9.17 at 17050 [Market closed]
2017.05.17 10:00:01.874 Trades  'xxxxx': cancel order #56643952 sell limit 2.00 SBRF-9.17 at 17098
2017.05.17 10:00:01.880 Trades  'xxxxx': accepted cancel order #56643952 sell limit 2.00 SBRF-9.17 at 17098
2017.05.17 10:00:01.880 Trades  'xxxxx': cancel order #56643952 sell limit 2.00 SBRF-9.17 at 17098 placed for execution in 5.896 ms
2017.05.17 10:00:01.894 Trades  'xxxxx': sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.899 Trades  'xxxxx': accepted sell limit 2.00 SBRF-9.17 at 17050
2017.05.17 10:00:01.900 Trades  'xxxxx': failed sell limit 2.00 SBRF-9.17 at 17050 [Market closed]
Sergey Chalyshev
8991
prostotrader:

Bild 1596, real

"The market is closed", after the trades have been made - CROWD!


The joke comes to mind:)

-Boy, what's your name?
-.....
-Boy, are you a retard?
-My name is Ilya.
-Boy, how do I get to the underground?
-I'm not a retard.