On 5Digit Broker Stops are only allowed to be placed on full pip values. How to find out in mql?

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
12985
WHRoeder 2011.09.02 23:02 #
 
zzuegg:

Addon:

The common 4/5 digit modification will also fail.

A possible modification would be:

This code will fail at Gold and Silver. Still no bulletproof solutions for pip/subpip modifications :(

Why Gold and Silver?
avatar
2004
zzuegg 2011.09.03 01:54 #
 
Gold and silver are 2 digts but subpip streams
avatar
69
Tecuciztecatl 2016.04.09 14:54 #
 
I define the number of digits as
//define coefficient
if (Digits ==2 || Digits ==4) {k = 10;}   //broker 4Digit
if (Digits ==3 || Digits ==5) {k = 1;}    //broker 5Digit

//then
sl=NormalizeDouble(sl*point/k,Digits);
tp=NormalizeDouble(tp*point/k,Digits);

Back to topics list   | 1 2  

To add comments, please log in or register