MetaTrader 5 MT5 Libraries CheckHistory – Check and load history function – library MetaTrader 5

CheckHistory – Check and load history function – library MetaTrader 5

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).


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks