Algowizard - Money management of generated strategies is fixed when generating from the template

The behavior is as follows:

Generating a strategy from a template (e.g. the one you provided for range break out). The money management is fixed to 0,1 and does not reflects the settings in the money management when retesting. Affected are MQ4, MQ5 source code and also the Auto-retest of the custom projects.

Here is example of generated MQ5, the lot size is hard-coded:

      _ticket = openPosition(
         ORDER_TYPE_BUY_STOP, // Order type
         "Current"// Symbol
         0.1,
         openPrice, // Price
         sl, // Stop Loss
         pt, // Profit Target
         correctSlippage(sqMaxEntrySlippage, "Current"), // Max deviation          
         ""// Comment
         MagicNumber, // MagicNumber
         ExpirationTime, // Expiration time
         true// Replace existing order (if it exists)
         false  // Allow duplicate trades
      );
Attachments
range_basic_current_day_24h.sqx
(3.55 KiB)
GU_H1_120118258_S_NN_CF_SQX-RB.sqx
(79.18 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

SD
#1

StanleyIII

13.07.2020 11:17

Task created

h
#2

hankeys

13.07.2020 13:20
je to natvrdo nastavené v šabloně - musíš to v long a short entry změnit na "use global MM"
SD
#3

StanleyIII

15.07.2020 15:41
OK. Uz to vidim. Mozete to zatvorit.
TT
#4

Tamas

15.07.2020 21:07

Status changed from New to Fixed

Dw
#5

Diwi

16.07.2020 10:09
Voted for this task.
r
#6

redflywing

22.01.2023 18:06
Voted for this task.

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