Просьба запустить на реале на BR-11.20

 

Пишу индикатор с использованием функции CopyTicksRange();

Получаю кастрированные данные

https://www.mql5.com/ru/forum/350880/page11#comment_18338778


Просьба запустить индикатор у себя (Окрывашка) BR-11.20 (М1) и выложить здесь принты

//+------------------------------------------------------------------+
//|                                                   Test_ind_3.mq5 |
//|                                      Copyright 2018 prostotrader |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018 prostotrader"
#property link      "https://www.mql5.com"
#property version   "1.00"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_plots   1
//--- plot Label1
#property indicator_label1  "Test_3"
#property indicator_type1   DRAW_LINE
#property indicator_color1  clrLime
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
    MqlTick pr_ticks[];
    datetime time_arr[];
     int cnt = 0;
     int   result = 0;
     int bars_cnt = 0;
     datetime start_time = D'2020.07.01 19:05:00';
     datetime end_time = D'2020.11.02 18:45:00';
     while ((result <= 0) && (cnt < 100)) 
      {
        result = CopyTime(Symbol(), PERIOD_M1, start_time, end_time, time_arr);
        cnt++;
      }
      if(result > 0)
      {
        bars_cnt = result;
        result = 0;
      while ((result <= 0) && (cnt < 100)) 
      {
        result = CopyTicksRange(Symbol(), pr_ticks, COPY_TICKS_INFO, ulong(start_time) * 1000, ulong(end_time) * 1000);
        cnt++;
      }
      if(result > 0)
      {
        Print("Start time = ", start_time);
        Print("End time = ", end_time);
        Print("Time now = ", TimeTradeServer());
        Print("Bars last time = ", time_arr[bars_cnt - 1]);
        Print("Last tick time = ", pr_ticks[result-1].time);
      }
      }  
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
  }  
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const int begin,
                const double &price[])
  {
   return(rates_total);
  }

//+------------------------------------------------------------------+ 
Новая версия платформы MetaTrader 5 build 2615: Фундаментальный анализ и комплексный критерий в тестере стратегий
Новая версия платформы MetaTrader 5 build 2615: Фундаментальный анализ и комплексный критерий в тестере стратегий
  • 2020.09.18
  • www.mql5.com
В четверг 17 сентября 2020 года будет выпущена обновленная версия платформы MetaTrader 5...
 

А в чём прикол? БКС

2020.09.18 17:57:36.141 ProstotraderTest (BR-11.20,M5)  Start time = 2020.07.01 19:05:00
2020.09.18 17:57:36.141 ProstotraderTest (BR-11.20,M5)  End time = 2020.11.02 18:45:00
2020.09.18 17:57:36.141 ProstotraderTest (BR-11.20,M5)  Time now = 2020.09.18 17:57:36
2020.09.18 17:57:36.141 ProstotraderTest (BR-11.20,M5)  Last time  tick = 2020.09.18 17:57:41

Переключил ТФ

2020.09.18 18:00:00.786 ProstotraderTest (BR-11.20,M1)  Start time = 2020.07.01 19:05:00
2020.09.18 18:00:00.786 ProstotraderTest (BR-11.20,M1)  End time = 2020.11.02 18:45:00
2020.09.18 18:00:00.786 ProstotraderTest (BR-11.20,M1)  Time now = 2020.09.18 18:00:00
2020.09.18 18:00:00.786 ProstotraderTest (BR-11.20,M1)  Last time  tick = 2020.09.18 18:00:06
 
Alexey Viktorov:

А в чём прикол? БКС

Спасибо

Не копируются последние тики (много)

Ренат говорит, что это у меня проблема с компом,

вот и хочу выяснить...

Добавлено

Может быть Открывашка с серваком что-то напортачила...

А может действительно у меня с компом что-то...

 

Открытие демо

2020.09.18 18:02:06.468 ProstotraderTest (BR-11.20,M1)  Start time = 2020.07.01 19:05:00
2020.09.18 18:02:06.468 ProstotraderTest (BR-11.20,M1)  End time = 2020.11.02 18:45:00
2020.09.18 18:02:06.468 ProstotraderTest (BR-11.20,M1)  Time now = 2020.09.18 18:02:06
2020.09.18 18:02:06.468 ProstotraderTest (BR-11.20,M1)  Last time  tick = 2020.09.18 18:02:10
 
Alexey Viktorov:

Открытие демо

Спасибо

Мне нужен реал Открывашки

Я обновил код.

 
prostotrader:

Мне нужен реал Открывашки

Нету. Увы…

 

Вот на BR-10.20

2020.09.18 18:09:39.221 Test_ind_3 (BR-10.20,M1)        End time = 2020.11.02 18:45:00
2020.09.18 18:09:39.221 Test_ind_3 (BR-10.20,M1)        Time now = 2020.09.18 18:09:39
2020.09.18 18:09:39.221 Test_ind_3 (BR-10.20,M1)        Bars last time = 2020.09.18 18:09:00
2020.09.18 18:09:39.221 Test_ind_3 (BR-10.20,M1)        Last tick time = 2020.09.17 00:04:41

Время последнего бара = 

2020.09.18 18:09:00

А время тика вчерашнее = 

2020.09.17 00:04:41
 

Тоже самое на BR-1.21

2020.09.18 18:14:29.499 Test_ind_3 (BR-1.21,M1) Start time = 2020.07.01 19:05:00
2020.09.18 18:14:29.499 Test_ind_3 (BR-1.21,M1) End time = 2020.11.02 18:45:00
2020.09.18 18:14:29.499 Test_ind_3 (BR-1.21,M1) Time now = 2020.09.18 18:14:29
2020.09.18 18:14:29.499 Test_ind_3 (BR-1.21,M1) Bars last time = 2020.09.18 18:06:00
2020.09.18 18:14:29.499 Test_ind_3 (BR-1.21,M1) Last tick time = 2020.09.17 21:21:29

Время тика вчерашнее, а сделка была (бар-то есть, значит были тики)

2020.09.18 18:06:00
Билд 2615
 
prostotrader:

А Вы на М1 запускали?

И на М5, и на М1

 
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Start time = 2020.07.01 19:05:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    End time = 2020.11.02 18:45:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Time now = 2020.09.18 18:20:49
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Bars last time = 2020.09.18 18:20:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Last tick time = 2020.09.18 18:20:47
реал, Открытие
 
Dmitriy Skub:
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Start time = 2020.07.01 19:05:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    End time = 2020.11.02 18:45:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Time now = 2020.09.18 18:20:49
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Bars last time = 2020.09.18 18:20:00
2020.09.18 18:20:49.100    qwe01 (BR-11.20,M1)    Last tick time = 2020.09.18 18:20:47
реал, Открытие

Спасибо Дмитрий, а попробуйте на BR-10.20 и на других, если не влом...

Причина обращения: