Working with profiles:
Sometime profiles overwritten. To prevent that, it is possible to make them read only.
chmod -R ugo=rx /home/m1/apps/forex/metatrader4/profiles/profile_1/*
If any change needed, before saving the profile it need to set write permission.
chmod -R u=rwx /home/m1/apps/forex/metatrader4/profiles/profile_1
Start terminal with custom configurations:
Start_conf_file
wine /home/m1/apps/forex/metatrader4/terminal.exe config/mb/broker1.ini
Sample configuration broker1.ini file content:
; save a profile: File > Profiles > Save As
; common settings
Profile=profile_1
MarketWatch=set2.set
Login=[AccountNumber]
Password=[Password]
;Typing server name also works. 2019-12
;Server=89.34.18.10:443
;DataServer=89.34.18.10:443
Server=Coinexx-Live
DataServer=Coinexx-Live
AutoConfiguration=false
EnableDDE=true
EnableNews=false
; experts settings
ExpertsEnable=true
ExpertsTrades=true
ExpertsDllImport=true
ExpertsDllConfirm=true
ExpertsExpImport=true
ExpertsTradesConfirm=false
; open chart and run expert and/or script
; Symbol=AUDUSD
; Period=H1
; Template=_mb_view.tpl
; Expert=one-way
; ExpertParameters=roboforex-procent-oneway-audusd.set
;Script=period_converter
;ScriptParameters==per_conv.set