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
);