Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a73e2c0713 | |||
| 3175f594f1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,8 @@ double NormalizeLots(string symbol, double InputLots)
|
|||||||
{
|
{
|
||||||
double lotsMin = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MIN);
|
double lotsMin = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MIN);
|
||||||
double lotsMax = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MAX);
|
double lotsMax = SymbolInfoDouble(symbol,SYMBOL_VOLUME_MAX);
|
||||||
int lotsDigits = (int) - MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP));
|
// int lotsDigits = (int) - MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP));
|
||||||
|
int lotsDigits = (int)MathAbs(MathLog10(SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP)));
|
||||||
|
|
||||||
if(InputLots < lotsMin)
|
if(InputLots < lotsMin)
|
||||||
InputLots = lotsMin;
|
InputLots = lotsMin;
|
||||||
|
|||||||
@@ -22,3 +22,8 @@ All folders (Experts, Include & Indicators) & sub-folders should be placed in th
|
|||||||
The RangeBars indicator for MT5 can be downloaded from https://www.mql5.com/en/market/product/16762
|
The RangeBars indicator for MT5 can be downloaded from https://www.mql5.com/en/market/product/16762
|
||||||
|
|
||||||
A version for MT4 is available from https://www.az-invest.eu/rangebars-plug-in-for-metatrader4
|
A version for MT4 is available from https://www.az-invest.eu/rangebars-plug-in-for-metatrader4
|
||||||
|
|
||||||
|
## Disclaimer:
|
||||||
|
|
||||||
|
All of the EAs and indicators presented in this repository are solely for educational and informational purposes and should not be regarded as advice or an invitation to trade.
|
||||||
|
Application of the techniques, ideas, and suggestions presented in the videos and files of this repository is done at the user’s sole discretion and risk.
|
||||||
|
|||||||
Reference in New Issue
Block a user