The market is always wrong - page 16

 
Cmu4:
You mean the SCIENTIFIC poke method?! :)

No, it's not scientific.
 
A1ex:
Reshetov , is it necessary toput 100 instead of 10in the line
result = MathFloor(result * 10) / 10;
?
If so, this does not make the lot 0.01.


And it won't.

Reshetov seems to have confused his creation.

 
PapaYozh:

The best advice is to apply the 'rule of thumb' method.
I would like to know for sure.
 
result = NormalizeDouble(result, 2);
 
Reshetov:
result = NormalizeDouble(result, 2);

instead of two getLotDigits()

int getLotDigits(){
   int digits = 0;
    double l = MarketInfo(Symbol(),MODE_LOTSTEP);
   while(l < 1){ l *= 10.0; digits++;}
   return(digits);
}