Ating for MQL5
|
Class to handle arithmetic price calculations and validations for institutional trading. More...
Classes | |
struct | Prices |
Structure to store computed prices and line type. More... | |
struct | Setting |
Structure to store arithmetic sequence settings. More... | |
Public Types | |
enum | ENUM_CHECK { CHECK_ARG_LINE_GENERATOR_PASSED , ERR_NO_ENOUGH_STEP , ERR_START_OVER_END , ERR_ADD_OVER_STEP , ERR_PRICE_OUT_LINES } |
Enum for handling different types of errors and checks in line generation. More... | |
enum | ENUM_TYPE_NEAR_LINES { TYPE_BETWEEN_PARALLELS , TYPE_INSIDE_PARALLEL , ERR_INVALID_LINES } |
Enum for handling different types of near lines. More... | |
Public Member Functions | |
InstitutionalArithmeticPrices (void) | |
Default constructor for the InstitutionalArithmeticPrices class. | |
void | UpdateSetting (double startAdd, double step, double add) |
Updates the settings for arithmetic sequence. | |
Setting | GetSetting () |
Retrieves the current settings. | |
void | GetSetting (Setting ¶m) |
Retrieves the current settings by reference. | |
ENUM_CHECK | CheckArg () |
Checks the arguments for line generation. | |
string | EnumCheckLinesGeneratorToString (ENUM_CHECK enum_result) |
Converts the ENUM_CHECK result to a string. | |
Prices | Generate (double closePrice) |
Generates price levels based on the given close price. | |
string | CommentToShow () |
Returns a formatted comment with line information. | |
Class to handle arithmetic price calculations and validations for institutional trading.
Enum for handling different types of errors and checks in line generation.
|
inline |
Default constructor for the InstitutionalArithmeticPrices class.
InstitutionalArithmeticPrices::ENUM_CHECK InstitutionalArithmeticPrices::CheckArg | ( | ) |
Checks the arguments for line generation.
string InstitutionalArithmeticPrices::CommentToShow | ( | ) |
Returns a formatted comment with line information.
string InstitutionalArithmeticPrices::EnumCheckLinesGeneratorToString | ( | ENUM_CHECK | enum_result | ) |
Converts the ENUM_CHECK result to a string.
enum_result | The ENUM_CHECK result to convert |
InstitutionalArithmeticPrices::Prices InstitutionalArithmeticPrices::Generate | ( | double | closePrice | ) |
Generates price levels based on the given close price.
closePrice | The close price to use for generation |
InstitutionalArithmeticPrices::Setting InstitutionalArithmeticPrices::GetSetting | ( | ) |
Retrieves the current settings.
void InstitutionalArithmeticPrices::GetSetting | ( | Setting & | param | ) |
Retrieves the current settings by reference.
param | Reference to a Setting structure to store the settings |
void InstitutionalArithmeticPrices::UpdateSetting | ( | double | startAdd, |
double | step, | ||
double | add ) |
Updates the settings for arithmetic sequence.
startAdd | Start value for addition |
step | Step size for arithmetic sequence |
add | Additional value for adjustment |