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

Class to calculate and retrieve price limits based on index for a given symbol and timeframe. More...

+ Collaboration diagram for LimitsByIndex:

Classes

struct  Prices
 Structure to store upper and lower price limits along with their indices. More...
 

Public Member Functions

 LimitsByIndex ()
 Default constructor for the LimitsByIndex class.
 
void UpdateAtr (string symbol_arg, ENUM_TIMEFRAMES timeframe_atr, uint counter_arg, uint shifter_arg)
 Updates the parameters for the class.
 
Prices GetPricesStruct ()
 Retrieves the structure containing calculated price limits.
 
void Get ()
 Calculates the upper and lower price limits based on index for the given symbol and timeframe.
 

Protected Attributes

string symbol
 Trading symbol.
 
ENUM_TIMEFRAMES timeframe
 Timeframe for the symbol.
 
uint counter
 Number of periods to consider.
 
uint shifter
 Shifting value for the index.
 
Prices prices
 Prices structure to hold calculated limits.
 

Detailed Description

Class to calculate and retrieve price limits based on index for a given symbol and timeframe.

Constructor & Destructor Documentation

◆ LimitsByIndex()

LimitsByIndex::LimitsByIndex ( )
inline

Default constructor for the LimitsByIndex class.

Member Function Documentation

◆ Get()

void LimitsByIndex::Get ( )

Calculates the upper and lower price limits based on index for the given symbol and timeframe.

◆ GetPricesStruct()

Prices LimitsByIndex::GetPricesStruct ( )
inline

Retrieves the structure containing calculated price limits.

Returns
Prices structure with the calculated limits

◆ UpdateAtr()

void LimitsByIndex::UpdateAtr ( string symbol_arg,
ENUM_TIMEFRAMES timeframe_atr,
uint counter_arg,
uint shifter_arg )

Updates the parameters for the class.

Parameters
symbol_argTrading symbol
timeframe_atrTimeframe for the symbol
counter_argNumber of periods to consider
shifter_argShifting value for the index

Member Data Documentation

◆ counter

uint LimitsByIndex::counter
protected

Number of periods to consider.

◆ prices

Prices LimitsByIndex::prices
protected

Prices structure to hold calculated limits.

◆ shifter

uint LimitsByIndex::shifter
protected

Shifting value for the index.

◆ symbol

string LimitsByIndex::symbol
protected

Trading symbol.

◆ timeframe

ENUM_TIMEFRAMES LimitsByIndex::timeframe
protected

Timeframe for the symbol.


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