from documentation: PositionClosePartial
------
Rules of Stop Loss and Take Profit inheritance (netting):
- When a position volume is increased or the position is reversed, Take Profit and Stop Loss are placed according to its latest order (market or triggered pending order). In other words, stop levels in each subsequent order of the same position replace previous ones. If zero values are specified in the order, Stop Loss and Take Profit of a position will be deleted.
- If a position is partially closed, Stop Loss and Take Profit are not changed by the new order.
If a position is fully closed, the Stop Loss and Take Profit levels are deleted, because they are associated with an open position and cannot exist without it.
![Basic Principles - Trading Operations - MetaTrader 5 Basic Principles - Trading Operations - MetaTrader 5](https://c.mql5.com/36/25/basic-principles-trading-operations.png)
Basic Principles - Trading Operations - MetaTrader 5
- www.metatrader5.com
is an instruction given to a broker to buy or sell a financial instrument. There are two main types of orders: Market and Pending. In addition, there are special Take Profit and Stop Loss levels. is the commercial exchange (buying or selling) of a financial security. Buying is executed at the demand price (Ask), and Sell is performed at the...
------
Stop Loss and Take Profit inheritance rule (hedging):
- If a position is partially closed, Stop Loss and Take Profit are not changed by the new order.
- If a position is fully closed, the Stop Loss and Take Profit levels are deleted, because they are associated with an open position and cannot exist without it.
![Basic Principles - Trading Operations - MetaTrader 5 Basic Principles - Trading Operations - MetaTrader 5](https://c.mql5.com/36/25/basic-principles-trading-operations__1.png)
Basic Principles - Trading Operations - MetaTrader 5
- www.metatrader5.com
is an instruction given to a broker to buy or sell a financial instrument. There are two main types of orders: Market and Pending. In addition, there are special Take Profit and Stop Loss levels. is the commercial exchange (buying or selling) of a financial security. Buying is executed at the demand price (Ask), and Sell is performed at the...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
G'day, i am relatively new to the MT5 platform & am trying to find out how to offload half a position at my first TP level ??
any info or directions will be greatly appreciated