Download MetaTrader 5
To add comments, please log in or register
How to test a program before buying?
whroeder1
14240
whroeder1 2011.09.02 21: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?
zzuegg
1505
zzuegg 2011.09.02 23:54  
Gold and silver are 2 digts but subpip streams
Tecuciztecatl
70
Tecuciztecatl 2016.04.09 12: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);
/ /12
To add comments, please log in or register