Portfolio export to MQL4 source code problem (MM)

Hello SQX team.



I found this problem in exporting Portfolio to MQL4 source code.
All MM is not export to MQL4 source code. It's export Fix size only, Although I set another MM mode.


Example: I set MM Mode to Risk fixed % of balance. In MQL4 will is MM Fixed size.
I found this problem in Portfolio source code only!


Thank you. Regards.

Attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

RM
#1

momocoong

14.09.2020 03:42

Task created

h
#2

hankeys

14.09.2020 08:57
is the portfolio MQL code really working now? because if i tested it in B128, the backtest was not reliable
RM
#3

momocoong

14.09.2020 09:55
Hello hankeys. It's can trusted now. I compared between SQX and MT4. It's same same 98%

(Build 129)

h
#4

hankeys

14.09.2020 14:49
OK, i will test it and if any problem occurs i will wrate here
RM
#5

momocoong

15.09.2020 14:37

Attachment mm portfolio.jpg added

mm portfolio.jpg
(397.84 KiB)
Hello. I just seen MM used selection at right top of Source Code window.
TB
#6

Tomas Brynda

21.09.2020 08:37

Status changed from New to Refused

Hi Momocoong,

the "MM used" option in source code tab is applied only to the displayed source code. You can copy the code from there and paste it manually into your MQL file or click "Save to file button".


If you save the source code using the Save combo button inside databank, the MM chosen in source code is not applied. MM from the first strategy in porfolio is used by default.


Best regards,

Tomas



Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please