MQL4 code - merged portfolio - balance too low

for this merged portfolio i am getting on my account strange alert "Balance too low for trading"



its hopping every hour to the platform and even if i try to open only 0.01 lot with 1m USD on account - so this doesnt make sense and i think b129 wasnt doing this


this nonsense is also happening if i try to make backtest in MT platform


and another question - this portfolio consists of 6 markets, every strategy for H1 TF - i have putted this EA to EURUSD H1 and it seems that its opening trades only on EURUSD and not for another markets it should trade (GBPUSD, EURJPY, USDJPY, GBPJPY, GOLD) - i have these markets hidden in market watch, does those markets need to be visible for EA or not?


if yes, is there any solution for merged portfolio, so used markets will be automatically set as visible in market watch?

Attachments
Portfolio1.mq4
(322.23 KiB)
balance.jpg
(527.19 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

h
#1

hankeys

11.01.2021 19:51

Task created

h
#2

hankeys

12.01.2021 16:43
Voted for this task.
h
#3

hankeys

12.01.2021 16:47
so i have proven that this error is due to hidden markets - so is there some way how to add to MQL code - show all markets set in subcharts?


when this merged ptf want to trade more markets on the same TF, which seems is possible

m
#4

mabi

18.02.2021 09:47
Voted for this task.
TB
#5

Tomas Brynda

10.05.2021 09:16

Status changed from New to Fixed


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please