Economic Calendar Monitor and Cache for Backtesting on History – indicator MetaTrader 5

Calendar Monitor in the tester reads events from the cache
To make a long story short: the built-in economic calendar of MetaTrader 5 is not (completely) synchronized with historical quotes. Quotes are marked with timestamps in accordance with the time zones that were in effect on the server at the moment of formation of each corresponding bar. Once the bars are formed they remain unchanged, … Read more

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 … Read more

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: … Read more

Analyze History – EA MetaTrader 4

Analyze History
Have you ever wondered if your history files are complete or have gaps (i.e. data missing for some periods of time) ? This EA reports all the gaps in your history file for the symbol and timeframe selected. Instructions: Launch the EA in the strategy tester with ‘Use date’ checkbox unticked and ‘Open prices only’ … Read more

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 — … Read more

History Dump CSV with heat map for Excel analysis – script MetaTrader 4

Drag script onto any chart. Popup confirms the output filename.
Do you need to know at what times of the day you are winning or losing compared to other times or the day? This script creates a .CSV file of your order history so you can import it into Excel and analyse it. It extracts all order information. Date / time information in both native … Read more

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 … Read more