Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3935
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Flat indicator with the timeframe selection option available in the input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
This indicator requires Flat.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.

Fig.1. The Flat_HTF indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/13659
Flat-Trend_HTF
The Flat-Trend indicator with the timeframe selection option available in the input parameters.
CRect and CCanvas replacement (Standard Library - several bugs fixed)
Bug fixed versions of CRect and CCanvas which are part of the standard library.
ForecastOscilator_HTF
The ForecastOscilator indicator with the timeframe selection option available in the input parameters.
JSON Serialization and Deserialization (native MQL)
Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.