Because you have to adjust lines 6 and 14 to the size of your position:
Sl = (abs(close – lowest[3](low)-1) / PipSize * PipValue) * PositionSize
Sl = (abs(close - highest[3](high) + 1)/ PipSize * PipValue) * PositionSize
That’s solved it Roberto. You’re a star!
Thanks so much.
Mark
Because the “SL” variable count for 1 contract, you should multiplied it by the quantity of contracts you want for the order:
Set Stop $loss min(100,Sl*PositionSize)