Skip to content

Commit a73e2c0

Browse files
committed
Updated for compatibility with ver 3.11
1 parent 3175f59 commit a73e2c0

File tree

5 files changed

+2
-1
lines changed

5 files changed

+2
-1
lines changed
5.81 KB
Binary file not shown.
462 Bytes
Binary file not shown.
876 Bytes
Binary file not shown.
188 Bytes
Binary file not shown.

Include/AZ-INVEST/SDK/Normailze.mqh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ double NormalizeLots(string symbol, double InputLots)
1010
{
1111
double lotsMin = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MIN);
1212
double lotsMax = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MAX);
13-
int lotsDigits = (int) - MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP));
13+
// int lotsDigits = (int) - MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP));
14+
int lotsDigits = (int)MathAbs(MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP)));
1415

1516
if(InputLots < lotsMin)
1617
InputLots = lotsMin;

0 commit comments

Comments
 (0)