Money Management

I have found that when I use fixed money management for an EA I have no problems backtesting in MT4, however, if I use % of balance for money management then no trades are produced in MT4 backtesting and I get  the 131 error for OrderSendError invalid lot size. When I get the error I change the money management from % to fixed lot and there are no more problems in backtesting. Can this issue be fixed so that any % lot size in a trade is adjusted to fit the broker accepted lot size?
Attachments
No attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Feature
  • Status Refused
  • Priority Normal

History

WH
#1

WpH67

10.05.2020 08:14

Task created

MF
#2

Mark Fric

27.05.2020 12:36

Status changed from New to Refused

if you see 131 errors it means that the size is computed incorrectly, but it is not a problem of MM method itself. 


Please check your log what is the computed size. Two most probable reasons:


  • incorrect decimal numbers - there is a Decimals parameter in MM method, you can configure how many decimals should there be in your size.
  • computed size is smaller than minimim allowed by your broker

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