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

Class to detect and manage positions. More...

Public Member Functions

 DetectPositions (void)
 Default constructor for the DetectPositions class.
 
void UpdateAtr (string symbol_arg, ulong magic_arg)
 Updates the symbol and magic number for the position.
 
bool IsValidPosition (ulong ticket)
 Checks if a position is valid.
 
bool UpdatePositions ()
 Updates the positions by collecting valid position tickets.
 

Public Attributes

CArrayLong positionsTickets
 Array to store the position tickets.
 

Detailed Description

Class to detect and manage positions.

Constructor & Destructor Documentation

◆ DetectPositions()

DetectPositions::DetectPositions ( void )
inline

Default constructor for the DetectPositions class.

Member Function Documentation

◆ IsValidPosition()

bool DetectPositions::IsValidPosition ( ulong ticket)

Checks if a position is valid.

Parameters
ticketTicket number of the position.
Returns
True if the position is selected and the magic number and symbol match; otherwise, false.
+ Here is the caller graph for this function:

◆ UpdateAtr()

void DetectPositions::UpdateAtr ( string symbol_arg,
ulong magic_arg )

Updates the symbol and magic number for the position.

Parameters
symbol_argSymbol for the position.
magic_argMagic number for the position.
+ Here is the caller graph for this function:

◆ UpdatePositions()

bool DetectPositions::UpdatePositions ( )

Updates the positions by collecting valid position tickets.

Returns
True if at least one valid position ticket is found; otherwise, false.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ positionsTickets

CArrayLong DetectPositions::positionsTickets

Array to store the position tickets.


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