Explanation for pips2dbl and pips2points

 

Hello,

I am using your advised code snippet

    if (Digits == 5 || Digits == 3){    // Adjust for five (5) digit brokers.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; } 

But I haven't really understood the meaning.

What is the difference, if I put my EA

-on an currency like EURUSD with 4 or 5 digits

-CFD like GER30

-or metals like Gold

I never now how I can adapt the "values" for the slippages or f.g. SL for each underlying.

Is anywhere a good explanation??

 

Here. Shinobi gives nice summary.

Here. What is a point/pip.