copy Tick Value

 

Hello,

i have some question to the CopyTicksRange function

general, im not clear between the datetime vaules in seconds and milliseconds


 MqlTick  tick_Range[] , tick[] ;
    int copied_Range , copied ;
    
    datetime Start_date = (TimeCurrent() -10000) ;
    datetime End_date   = (TimeCurrent() );
    
    ulong Start1 = ulong(Start_date)*1000;
    ulong End1   = ulong(End_date  )*1000;
    
    copied_Range = CopyTicksRange( _Symbol , tick_Range , COPY_TICKS_ALL , Start1 , End1  ); 
    copied       = CopyTicks     ( _Symbol , tick       , COPY_TICKS_ALL , Start1 , 1000 ); 


    Print( "Start = "        , Start1        , "   |   " , "End = "    , End1    );
    Print( "copied_Range = " , copied_Range , "   |   " , "copied = " , copied );

    Print(tick_Range[47].ask);
    Print(tick[47].time);
    


with the function TimeCurrent(), i get the time back in seconds, for this i take the multiplier with 1000 to get milliseconds


when i look to the result, i get an date, 5 years ago, i guess this is bcs the the difference between TimeCurrent and the multiplicator for the CopyTickRange function


additional, i take the printout with the value 47

    Print(tick_Range[47].ask);
    Print(tick[47].time);

does he copie the value 47 from the begin or from the end?


how i can say, i want the tickvalue 5 seconds before? 


amando

Reason: