MM bug - can't get accurate BT's

When optimizing strategies, I try to use MM with risk of balance on most EA's.  However, this function has never worked correctly.  SQX will show spikes in lot size that does not represent 5% (or whatever value I put in) of account balance.  See attached as only one example.  So, this throws off the entire EA stats.  Please advise.
Attachments
Capture.png
(125.74 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

W
#1

WJPII

28.11.2020 16:26

Task created

MF
#2

Mark Fric

30.11.2020 09:38

Status changed from New to Waiting for information

please attach at least one strategy (in SQX format) where you experience this problem.
W
#3

WJPII

30.11.2020 13:10

Attachment temp spike11-29-20c11-29-20b11-27-20bStrategy 244186 - Optimization 040732 - Optimization 09856.sqx added

Attachment temp spike11-29-20c11-29-20b11-27-20bStrategy 111140 - Optimized 0396 - Optimized 012091.sqx added

temp spike11-29-20c11-29-20b11-27-20bStrategy 244186 - Optimization 040732 - Optimization 09856.sqx
(216.64 KiB)
temp spike11-29-20c11-29-20b11-27-20bStrategy 111140 - Optimized 0396 - Optimized 012091.sqx
(186.52 KiB)
Here is just one example.
TB
#4

Tomas Brynda

30.11.2020 15:38

Status changed from Waiting for information to Refused

Hi,

I've taken a look on your strategies and I think for these two strategies the problem is in your money management settings.

I've seen the order size sometimes jumps to 1 lot although it is a very big volume at that time. 

The one lot volume is caused by LotsIfNoMM setting. It applies if there is no stop loss set (not your case) or if there is unsufficient balance to open an order by applying the MM logic.


Try to set some minimal value, for example 0.01 lot and the results should be fine.


Sometimes a high volume can be also caused by a very tight SL level. This is not the case for the two strategies attached, but may happen in others (for example if the strategy uses ATR or indicator based SL).


Best regards,

Tomas 

 

W
#5

WJPII

30.11.2020 15:45
Thank you for checking.  Yes.  I determine the "result" of the problem is by having a default 1 in the "if no MM exists" space in the MM tab.  However, that doesn't change the issue of the problem.  Regardless of SL size, ATR parameters or indicator used in strategy, no EA should perform like that when trading.  And while in the SQX environment, there is no way to get good data to make decisions from if all of your strategies have these spikes.  This needs to be fixed.  In the meantime, I have changed the value to .01 in the above space.  But, again, this will significantly impact EA results after optimizations.
TB
#6

Tomas Brynda

30.11.2020 16:12
I think the algorithm is fine. If you want the strategy to completely stop trading if there is unsufficient balance, you can set LotsIfNoMM to zero.

You will filter out this kind of strategies very quickly so I think no other improvement is necessary in this area.


But if you have some further suggestions, we can discuss it.

W
#7

WJPII

30.11.2020 16:31
Ahhh.  Ok.  I will set to 0 then and see if this works.  Thank you for looking into it.

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