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

Class to handle the removal of orders based on their location relative to a middle value. More...

+ Inheritance diagram for RemoveByLocationPrice:
+ Collaboration diagram for RemoveByLocationPrice:

Public Member Functions

 RemoveByLocationPrice (void)
 Default constructor for the RemoveByLocationPrice class.
 
void UpdateAtr (double upper_line_arg, double lower_line_arg, ulong magic_arg, string symbol_arg)
 Updates attributes for the RemoveByLocationPrice class.
 
void UpdateOrders ()
 Updates the order arrays based on their open prices relative to the middle value.
 
void VerifyPositionAndRemove ()
 Verifies positions and removes orders from the opposite array based on the position location.
 
- Public Member Functions inherited from Remove
 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.
 

Additional Inherited Members

- Protected Member Functions inherited from Remove
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 inherited from Remove
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 based on their location relative to a middle value.

Constructor & Destructor Documentation

◆ RemoveByLocationPrice()

RemoveByLocationPrice::RemoveByLocationPrice ( void )
inline

Default constructor for the RemoveByLocationPrice class.

Member Function Documentation

◆ UpdateAtr()

void RemoveByLocationPrice::UpdateAtr ( double upper_line_arg,
double lower_line_arg,
ulong magic_arg,
string symbol_arg )

Updates attributes for the RemoveByLocationPrice class.

Parameters
upper_line_argUpper boundary for categorizing orders.
lower_line_argLower boundary for categorizing orders.
magic_argMagic number for trade operations.
symbol_argTrading symbol.
+ Here is the call graph for this function:

◆ UpdateOrders()

void RemoveByLocationPrice::UpdateOrders ( )

Updates the order arrays based on their open prices relative to the middle value.

+ Here is the call graph for this function:

◆ VerifyPositionAndRemove()

void RemoveByLocationPrice::VerifyPositionAndRemove ( )

Verifies positions and removes orders from the opposite array based on the position location.

+ Here is the call graph for this function:

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