|
Ating for MQL5
|
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. | |
Class to handle the removal of orders based on their location relative to a middle value.
|
inline |
Default constructor for the RemoveByLocationPrice class.
| void RemoveByLocationPrice::UpdateAtr | ( | double | upper_line_arg, |
| double | lower_line_arg, | ||
| ulong | magic_arg, | ||
| string | symbol_arg ) |
Updates attributes for the RemoveByLocationPrice class.
| upper_line_arg | Upper boundary for categorizing orders. |
| lower_line_arg | Lower boundary for categorizing orders. |
| magic_arg | Magic number for trade operations. |
| symbol_arg | Trading symbol. |
Here is the call graph for this function:| 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:| 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: