Convert Setting File From MT5 to MT4 (Powershell Script)

Avatar
  • updated

Hello Community,
I have created a script in Powershell that converts the .set files from the Metatrader 5 (MT5) version to the Metatrader 4 (MT4) version.
The script is a text file that anyone can modify and adapt to her needs.

They also have the version of converting MT4 to MT5 

Image 1442


Image 1443


Image 1444


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Ulises Cune

Hello Community,

I have added support for version 2.35 which has the new options

MACD2

DTrend

I leave the repository where you can always find the latest version of this script.

https://github.com/ulises2k/CommunityPowerEA_Convert_MT5_to_MT4

CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Andrey Khatimlianskyi

Thank you, Ulises!

To all: be careful, not all set files can be converted from MT5 to MT4!

Avatar
Andrey Khatimlianskyi

ps: you can also use my script to convert set-files from MT5 to MT4 - https://t.me/CommunityPowerEA/21795

Avatar
Ulises Cune

New version that supports up to version 2.38

The following options were added:

  • Oscillators_TF
  • AllowHedge
  • Pending_DisableForOpposite
  • GlobalTakeProfit_OnlyLock
  • UseVirtualTP
  • AntiMartingail_AllowTP
  • AllowBothMartinAndAntiMartin
  • PartialCloseHedge_MainToMain
  • PartialCloseHedge_BothWays
  • Oscillators_UseClosedBars
  • Oscillator2_UseClosedBars
  • Oscillator3_UseClosedBars

CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Ulises Cune

New version that supports up to version 2.45


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
FraggliTester

Minor bug in converting the ADX_Price, bugfix attached

CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Ulises Cune

New version that supports up to version 2.47

UseOnlyOpenedTrades


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Ulises Cune

New version that supports up to version 2.48

New parameter:

CL_CloseOnProfitAndDD

PartialClose_CloseProfitItself


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Ulises Cune

New version that checks the TimeFrame exists in MT4

Run. open "cmd.exe" and write this:

powershell -ExecutionPolicy Bypass -File "CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1"


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

Avatar
Jacian
Quote from Ulises Cune

New version that checks the TimeFrame exists in MT4

Run. open "cmd.exe" and write this:

powershell -ExecutionPolicy Bypass -File "CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1"


CommunityPowerEA_Convert-MT5_To_MT4-gui.ps1

If I get this error message, does it mean I can't convert this MT5 to MT4?