8 digits after deceimal point

 

hi, i'm struggling with invalid price (Error 130) when trying to modify order with trailing stop. i tried Normalizedouble(xx, 5), the output is 1.33052000. how to remove this trailing 3 zeros and apply the value to stoploss?

thanks and regards,

vinoth joseph

 
vinothjoseph:

hi, i'm struggling with invalid price (Error 130) when trying to modify order with trailing stop. i tried Normalizedouble(xx, 5), the output is 1.33052000. how to remove this trailing 3 zeros and apply the value to stoploss?

You can't and don't need to. Did you check compliance to MODE_STOPLEVEL?