Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Fresh: Metatrader 4 Scripts | Script s_FlatEfficiency_v1 | Source Code Included

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

Image for Script s_FlatEfficiency_v1

Purpose:

The preliminary estimation of the motion patterns of different symbols.

Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.

Parameter:

MaxSpread - the symbols with the spread more than specified will not be used
SymbolsFile - the name of the file with the list of symbols (must be in the experts/files folder)
OutputFile - the name of the file for saving the results
iPeriod - the number of bars to be used

Usage:

1. Save the symbols.set file that contain the list of symbols in the experts/files directory (press right mouse button on the Market Watch window -> Sets -> Save as).
2. Launch the script on the chart of any symbol with necessary timeframe. The script by itself tries to upload the data by all symbols, but it is not always possible to upload the necesary amount within the specified iPeriod period from the first try, a repeated script launch may be needed.
3. Look through the _[TimeFrame]_flateficiensy.txt file in the experts/files directory.

Estimation exponents:

1. Flat efficiency - the ratio between the price trajectory and its range.
2. Sum of ticks - the number of price changes (the tick volume is summarized by all bars).
3. Average size of the bar.
4. Ratio between the average size of the bar and the spread.
5. Standard deviation.
6. Rating - the sum of serial places taken by the symbols when sorting by one of the 1-5 exponents.

Note:

The results of script working are in the Results.zip file.

Complement community code with advanced automation from RobotFX.

8525

Best MetaTrader Indicators + Profitable Expert Advisors