Thank you Keymaster Nicolas
I try it
I have not understand why code Grahal is not running on eur usd
Because if you set the variable “StopdistanceBreakeven” equal to 20, it counts as 20 points for the instrument and if the pointsize is not equal to 1 then for EURUSD it would be about 1.1865 + 20 = 21.1865 !!
Since pointsize for forex is 0.0001 the correct syntax is to multiplied the variable set in points with the real pointsize:
variable = StopdistanceBreakeven * pointsize
so in that case the result is:
variable = 20 * 0.0001 = 0.0020
added to the EURUSD price:
1.1865 + 0.0020 = 1.1885
correct value!