Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.12.19 13:06
Libraries

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

| English Русский 中文 Español Deutsch 日本語 Português

Published by:
Andrey Khatimlianskii
Views:
3290
Rating:
votes: 30
\MQL5\Include\komposter\

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 Software Corp.
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