Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

CheckHistory - Check and load history function - library for MetaTrader 5

Published by:
Andrey Khatimlianskii
Views:
9890
Rating:
(40)
Published:
2012.12.19 13:06
Updated:
2016.11.22 07:32
\MQL5\Include\komposter\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Function to check and load history:

This is slightly modified CheckLoadHistory function from MetaQuotes.

Title:

#include <komposter\String.mqh>

Usage:

void OnTick()
{
   static bool first = true;
   if ( first && !CheckLoadHistory( _Symbol, _Period, BarsToAnalyze ) )
      return;
   else
      first = false;

   // add your code here
}

The history of changes:

2013.02.18:

  • [+] Added the maximum time limit of downloading historical data from the server (default value is 30 seconds).

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1251

Exp_AnchoredMomentum Exp_AnchoredMomentum

Trading system using the AnchoredMomentum indicator

Silent stochastic Silent stochastic

This stochastic considerably reduces the number of false signals by adjusting sensitivity

Exp_UltraFatl Exp_UltraFatl

The Expert Advisor using the UltraFatl oscillator.

sHistoryExport - handy script to export the historical data in the МetaТrader 4 format sHistoryExport - handy script to export the historical data in the МetaТrader 4 format

Export of all necessary instruments and time frames in one click with load and checking history