Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

MT5 to MT4 Set File Converter - script for MetaTrader 5

Views:
18540
Rating:
(36)
Published:
2017.03.07 10:29
Updated:
2017.03.14 09:45
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This script converts multiple .set files from MT5 format to MT4 format. This is a necessary step for optimizing and running cross-compatible EAs.

MetaTrader 5 is able to load .set files created in MT4, however, the format it saves set files in is not compatible with MetaTrader 4. This script acts as a useful tool to make .set files backwards compatible, so you can take advantage of MT5's better strategy tester then run a cross-compatible EA on MT4 and MT5 with the same parameters.

Two .set files have been attached as an example of the converter.

The "exampleMT5.set" file is produced by the MetaTreader 5 terminal. This is then converted to "exampleMT5-MT4.set" file by the converter.


How T‌o Use

Place .set files in MQL5\Files folder or subfolder. B‌y default the script will convert all .set files in the files folder to MT4 version and output the converted files to a subdirectory named MT4-Output-Setfiles. The output file names will also have "-MT4" appended before the file extension.

T‌he file has 3 input options:

  • a File input that allows for selective conversion. simply write the name of the file you want to convert
  • a SubDirectory option. Write the name of the subdirectory in which your files are stored.
  • a Output Directory option. Name of the output directory.
Vidya zone Vidya zone

Vidya zone using 3 prices for calculation.

WPRCandleKeltner WPRCandleKeltner

A Keltner Channel drawn relative to the average value of the Larry Williams' Percent Range oscillator as a sequence of candlesticks

Bollinger Bands as Support & Resistance Bollinger Bands as Support & Resistance

Example of Buy Limit & Sell Limit pending orders with Bollinger Bands.

ADXm (vhf adaptive) ADXm (vhf adaptive)

ADXm (vertical/horizontal filter adaptive).