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

Class to detect and manage orders. More...

Public Member Functions

 DetectOrders (void)
 Default constructor for the DetectOrders class.
 
void UpdateAtr (string symbol_arg, ulong magic_arg)
 Updates the symbol and magic number for the order.
 
bool IsValidOrder (ulong ticket)
 Checks if an order is valid.
 
bool UpdateOrders ()
 Updates the orders by collecting valid order tickets.
 

Public Attributes

CArrayLong orderTickets
 Array to store the order tickets.
 

Detailed Description

Class to detect and manage orders.

Constructor & Destructor Documentation

◆ DetectOrders()

DetectOrders::DetectOrders ( void )
inline

Default constructor for the DetectOrders class.

Member Function Documentation

◆ IsValidOrder()

bool DetectOrders::IsValidOrder ( ulong ticket)

Checks if an order is valid.

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

◆ UpdateAtr()

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

Updates the symbol and magic number for the order.

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

◆ UpdateOrders()

bool DetectOrders::UpdateOrders ( )

Updates the orders by collecting valid order tickets.

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

Member Data Documentation

◆ orderTickets

CArrayLong DetectOrders::orderTickets

Array to store the order tickets.


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