Account_Risk (1=1%) dosen't control lot sizing.
When 100 - (100 * account_risk)) / 100) * AccountBalance() > AccountEquity() - it "pushes" the StopAll button (function).
Fx. set to 1 : 100 - (100 * 1) / 100 * AccountBalance() = 0, meaning dosen't ever trigger any stopall.
When 100 - (100 * account_risk)) / 100) * AccountBalance() > AccountEquity() - it "pushes" the StopAll button (function).
Fx. set to 1 : 100 - (100 * 1) / 100 * AccountBalance() = 0, meaning dosen't ever trigger any stopall.
1