A Code block to detect A “New Candle/Bar” using bars history (very effective way) – EA MetaTrader 5

A Code block to detect A "New Candle/Bar" using bars history (very effective way) - expert for MetaTrader 5
In previous code I used the time to detect a new bar. This time let’s use the bars count to detect a new bar. it’s way lighter and faster than using the time method. Declare the variables in integer data type to store the bar counts.  Assign the bars count for the “BarsTotal_OnInt” at the

CheckHistory – Check and load history function – library MetaTrader 5

CheckHistory - Check and load history function - library for 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:

Trade History Export to CSV – indicator MetaTrader 4

EURUSDProHistory
Exports CSV file to analyze trade history for a symbol. Input parameters: InputFileName — export file name InputDirectoryName — export directory name InputHistoryStartDateTime — analysis start date InputHistoryEndDateTime — analysis end date Analysis trade type: OpBuy — Buy OpBuyLimit — Buy Limit OpBuyStop — Buy Stop OpSell — Sell OpSellLimit — Sell Limit OpSellStop —

Assistant for checking strategies on history data – indicator MetaTrader 4

Assistant for checking strategies on history data - indicator for MetaTrader 4
Builds 600 and up include the control functions, but only in indicators. That is still helpful. The “TPEHEP” (Trainer) was developed to help analyze the interesting strategies, and also to practice and gain experience in analyzing the signals on history data in the selected strategy. The maximum approximation to the market rules gives the opportunity

History analysis on presence of holes and gaps – script MetaTrader 4

History analysis on presence of holes and gaps - script for MetaTrader 4
The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them. The original can be found here: history data analysis. This version has the output file format changed to *.csv and implements a heavily reworked output. Now, when using the MS Excel to open