Tick story - page 13

 
Tapochun:

There is a hole in the tick history. And even those ticks that came in for the current session of the terminal are not returned.

And what happened to the uploaded image?

Did you delete it yourself?

 
Renat Fatkhullin:

What happened to the uploaded picture?

Did you delete it yourself?

Excuse me? With the indicator? It's there...

Yeah, if you delete a picture from the gallery, is it also deleted from the forum?


 
This is where I don't get it at all... One picture is inserted, click to enlarge - another....
 
Renat Fatkhullin:

Are you sure you have checked everything correctly and exactly on the MetaQuotes-Demo server?

Everything is working fine, just believed it. Here is a request for 20 000 ticks for EURUSD: today's ticks are returned ok

Keep in mind that the first request gives back what is in the local history and triggers history paging.

Here I have requested 200,0000,000 ticks, received immediately 53,788 ticks and the paging process has started:

After 2 minutes I requested again and got 5 088 888 ticks and paging goes on in the background:

I'm sure I'm on the MetaQuotes-Demo server. Ahem. Now the current ticks are transmitting. The funny thing is something else. Hole in the story. Mode ALL request 3000 ticks. After restarting the terminal - only Friday's ticks come back and before:

2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2985 2015.10.16 23:59:00: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54358
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2986 2015.10.16 23:59:00: spread = 74, ask = 1.54432, bid = 1.54358, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2987 2015.10.16 23:59:00: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54357
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2988 2015.10.16 23:59:00: spread = 68, ask = 1.54425, bid = 1.54357, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2989 2015.10.16 23:59:02: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2990 2015.10.16 23:59:02: spread = 69, ask = 1.54425, bid = 1.54356, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2991 2015.10.16 23:59:05: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2992 2015.10.16 23:59:05: spread = 64, ask = 1.54420, bid = 1.54356, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2993 2015.10.16 23:59:05: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2994 2015.10.16 23:59:05: spread = 72, ask = 1.54428, bid = 1.54356, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2995 2015.10.16 23:59:06: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2996 2015.10.16 23:59:06: spread = 75, ask = 1.54431, bid = 1.54356, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2997 2015.10.16 23:59:07: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54357
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2998 2015.10.16 23:59:07: spread = 74, ask = 1.54431, bid = 1.54357, last = 0.00000
2015.10.19 11:44:41.343 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2999 2015.10.16 23:59:10: spread = 0, ask = 0.00000, bid = 0.00000, last = 0.00000
 

A little while later, the picture is like this. ALL mode 3000 ticks:

2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2774 2015.10.16 23:59:05: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2775 2015.10.16 23:59:05: spread = 72, ask = 1.54428, bid = 1.54356, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2776 2015.10.16 23:59:06: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54356
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2777 2015.10.16 23:59:06: spread = 75, ask = 1.54431, bid = 1.54356, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2778 2015.10.16 23:59:07: spread = 0, ask = 0.00000, bid = 0.00000, last = 1.54357
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2779 2015.10.16 23:59:07: spread = 74, ask = 1.54431, bid = 1.54357, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2780 2015.10.16 23:59:10: spread = 0, ask = 0.00000, bid = 0.00000, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2781 2015.10.19 09:44:41: spread = 18, ask = 1.54498, bid = 1.54480, last = 1.54480
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2782 2015.10.19 09:44:41: spread = 19, ask = 1.54499, bid = 1.54480, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2783 2015.10.19 09:44:42: spread = 19, ask = 1.54499, bid = 1.54480, last = 1.54480
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2784 2015.10.19 09:44:42: spread = 18, ask = 1.54498, bid = 1.54480, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2785 2015.10.19 09:44:42: spread = 18, ask = 1.54498, bid = 1.54480, last = 1.54480
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2786 2015.10.19 09:44:42: spread = 19, ask = 1.54499, bid = 1.54480, last = 0.00000
2015.10.19 11:46:33.144 test_CopyTicks_1178 (GBPUSD,M5) OnStart: #2787 2015.10.19 09:44:42: spread = 19, ask = 1.54499, bid = 1.54480, last = 1.54480

Hole in the story. In INFO mode it is the same.

 

Here's the code for the history upload script:

#property script_show_inputs

input int inpStep=3000;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   MqlTick array[];
   int attempt=1;
   int num=-1;
   while(attempt<11)
     {
      num=CopyTicks(_Symbol,array,COPY_TICKS_ALL,0,inpStep);
      if(num<0)
         attempt++;
      else
        {
         if(num==inpStep)
           {
            Print("Тиковая история загружена с ",attempt," попытки!");
            break;
           }
         else
           {
            if(attempt==10)
              {
               Print("Загружена не вся история (",num," из ",inpStep,")");
               break;
              }
            else
              {
               attempt++;
               continue;
              }
           }
        }
     }

   if(num<0)
     {
      Print("Тиковая история не загружена!");
      return;
     }

   int size=ArraySize(array);
   int iSpread=0;
   for(int i=0; i<size; i++)
     {
      iSpread=int(MathRound(( array[i].ask-array[i].bid)/_Point));

      Print(__FUNCTION__,": #",i," ",array[i].time,": spread = ",iSpread,
            ", ask = ",DoubleToString( array[ i ].ask, _Digits ),
            ", bid = ",DoubleToString( array[ i ].bid, _Digits ),
            ", last = ",DoubleToString(array[ i ].last,_Digits ) );
     }
  }
//+------------------------------------------------------------------+
 
After deleting the tick history by symbol (deleted the folder by symbol completely) and restarting the terminal - the history does not load at all.
 
Tapochun:

Excuse me? With the indicator? It's there...

Yeah, if you delete a picture from the gallery, it's also deleted from the forum?

Of course it does. You deleted the original data.
 
Renat Fatkhullin:
Of course it's deleted. You deleted the original data.
Got it, I'll keep that in mind.
 
Tapochun:

Here's the code for the history upload script:

Not enough request, 3000 ticks is too little, for 1 hour.

It's downloading fine for me.