The market is always wrong - page 16 1...910111213141516 New comment PapaYozh 2011.07.19 12:25 #151 Cmu4: You mean the SCIENTIFIC poke method?! :) No, it's not scientific. PapaYozh 2011.07.19 12:29 #152 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. A1ex 2011.07.19 21:37 #153 PapaYozh: The best advice is to apply the 'rule of thumb' method. I would like to know for sure. Yury Reshetov 2011.07.22 19:30 #154 result = NormalizeDouble(result, 2); keekkenen 2011.07.22 19:57 #155 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); } 1...910111213141516 New comment
You mean the SCIENTIFIC poke method?! :)
No, it's not scientific.
Reshetov , is it necessary toput 100 instead of 10in the line
And it won't.
Reshetov seems to have confused his creation.
The best advice is to apply the 'rule of thumb' method.
instead of two getLotDigits()