Class to detect and manage positions.
More...
Class to detect and manage positions.
◆ DetectPositions()
DetectPositions::DetectPositions |
( |
void | | ) |
|
|
inline |
◆ IsValidPosition()
bool DetectPositions::IsValidPosition |
( |
ulong | ticket | ) |
|
Checks if a position is valid.
- Parameters
-
ticket | Ticket number of the position. |
- Returns
- True if the position is selected and the magic number and symbol match; otherwise, false.
◆ UpdateAtr()
void DetectPositions::UpdateAtr |
( |
string | symbol_arg, |
|
|
ulong | magic_arg ) |
Updates the symbol and magic number for the position.
- Parameters
-
symbol_arg | Symbol for the position. |
magic_arg | Magic number for the position. |
◆ 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.
◆ positionsTickets
CArrayLong DetectPositions::positionsTickets |
Array to store the position tickets.
The documentation for this class was generated from the following file:
- C:/Users/solut/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Include/AtingMQL5/src/detect/DetectPositions.mqh