Ating for MQL5
Loading...
Searching...
No Matches
RoundVolume Class Reference

Class to round volumes to the nearest step size. More...

Public Member Functions

 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.
 

Public Attributes

string symbol
 Symbol of the asset for which volume is rounded.
 

Detailed Description

Class to round volumes to the nearest step size.

Constructor & Destructor Documentation

◆ RoundVolume()

RoundVolume::RoundVolume ( )
inline

Default constructor for RoundVolume.

Member Function Documentation

◆ Run()

double RoundVolume::Run ( double volume)

Rounds the given volume to the nearest volume step.

Parameters
volumeThe volume to round.
Returns
The rounded volume.
+ Here is the caller graph for this function:

◆ SetSymbol()

void RoundVolume::SetSymbol ( string & symbol_arg)
inline

Sets the symbol for volume rounding.

Parameters
symbol_argThe symbol to set.
+ Here is the caller graph for this function:

Member Data Documentation

◆ symbol

string RoundVolume::symbol

Symbol of the asset for which volume is rounded.


The documentation for this class was generated from the following file: