Class to round volumes to the nearest step size.
More...
|
| RoundVolume () |
| Default constructor for RoundVolume.
|
|
void | SetSymbol (string &symbol_arg) |
| Sets the symbol for volume rounding.
|
|
double | Run (double volume) |
| Rounds the given volume to the nearest volume step.
|
|
|
string | symbol |
| Symbol of the asset for which volume is rounded.
|
|
Class to round volumes to the nearest step size.
◆ RoundVolume()
RoundVolume::RoundVolume |
( |
| ) |
|
|
inline |
◆ Run()
double RoundVolume::Run |
( |
double | volume | ) |
|
Rounds the given volume to the nearest volume step.
- Parameters
-
volume | The volume to round. |
- Returns
- The rounded volume.
◆ SetSymbol()
void RoundVolume::SetSymbol |
( |
string & | symbol_arg | ) |
|
|
inline |
Sets the symbol for volume rounding.
- Parameters
-
symbol_arg | The symbol to set. |
◆ symbol
string RoundVolume::symbol |
Symbol of the asset for which volume is rounded.
The documentation for this class was generated from the following file:
- C:/Users/solut/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Include/AtingMQL5/src/transaction/RoundVolume.mqh