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

Class to handle the removal of orders and positions. More...

+ Inheritance diagram for Remove:
+ Collaboration diagram for Remove:

Public Member Functions

 Remove ()
 Default constructor for the Remove class.
 
void UpdateAtr (ulong magic_arg, string symbol_arg)
 Updates attributes for the Remove class.
 
bool RemovePendingOrders ()
 Removes all pending orders.
 
bool RemovePositions ()
 Removes all positions.
 

Protected Member Functions

bool RemoveOrdersFromCArray (CArrayLong &orders_to_delete)
 Removes orders from an array of order tickets.
 
bool RemovePositionsFromCArray (CArrayLong &positions_to_delete)
 Removes positions from an array of position tickets.
 
void UpdateAtrToDetect (ulong magic_arg, string symbol_arg)
 Updates attributes for DetectOrders and DetectPositions objects.
 

Protected Attributes

CTrade trade
 Trade object for performing trade operations.
 
DetectOrders detectOrders
 Object for detecting orders.
 
DetectPositions detectPositions
 Object for detecting positions.
 
ulong magic
 Magic number for trade operations.
 
string symbol
 Trading symbol.
 

Detailed Description

Class to handle the removal of orders and positions.

Constructor & Destructor Documentation

◆ Remove()

Remove::Remove ( )
inline

Default constructor for the Remove class.

Member Function Documentation

◆ RemoveOrdersFromCArray()

bool Remove::RemoveOrdersFromCArray ( CArrayLong & orders_to_delete)
protected

Removes orders from an array of order tickets.

Parameters
orders_to_deleteArray of order tickets to remove.
Returns
True if all orders were removed successfully, otherwise false.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemovePendingOrders()

bool Remove::RemovePendingOrders ( )

Removes all pending orders.

Returns
True if all pending orders were removed successfully, otherwise false.
+ Here is the call graph for this function:

◆ RemovePositions()

bool Remove::RemovePositions ( )

Removes all positions.

Returns
True if all positions were removed successfully, otherwise false.
+ Here is the call graph for this function:

◆ RemovePositionsFromCArray()

bool Remove::RemovePositionsFromCArray ( CArrayLong & positions_to_delete)
protected

Removes positions from an array of position tickets.

Parameters
positions_to_deleteArray of position tickets to remove.
Returns
True if all positions were removed successfully, otherwise false.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAtr()

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

Updates attributes for the Remove class.

Parameters
magic_argMagic number.
symbol_argTrading symbol.
+ Here is the call graph for this function:

◆ UpdateAtrToDetect()

void Remove::UpdateAtrToDetect ( ulong magic_arg,
string symbol_arg )
protected

Updates attributes for DetectOrders and DetectPositions objects.

Parameters
magic_argMagic number.
symbol_argTrading symbol.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ detectOrders

DetectOrders Remove::detectOrders
protected

Object for detecting orders.

◆ detectPositions

DetectPositions Remove::detectPositions
protected

Object for detecting positions.

◆ magic

ulong Remove::magic
protected

Magic number for trade operations.

◆ symbol

string Remove::symbol
protected

Trading symbol.

◆ trade

CTrade Remove::trade
protected

Trade object for performing trade operations.


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