If, userisk% = true, the system mediate the distance of the stop loss to calculate the appropriate volume for% risk you place.
If stop loss = 100 pips balance = $ 1000 risk% per order= 2.
Volume will be = 0.02 0.02 * 100 = 20 dollars
$ 20 = 2%. to 1000
If, use risk = true.
Lot dynamic = 10.
The system works with 0.10 lots per 1000 of its balance sheet.
If there are 1500 on its balance sheet, the system will work with 0.15 lots.
If both risks are in = false, the fixed lots were used.