Automatic MT4 TP update
- Close all trades and take profit
- Looking for something to secure trades when they've reached a daily level.
- 1200 subscribers!!!
First, the Symbols in the open orders will be classified, then the cost will be calculated and additional pips will be added on it. Symbol classification is available here. you can do the other.
sample
if(OrderType()==OP_BUY )
{
BOrderCost=BOrderCost+(OrderOpenPrice()+OrderSwap()OrderCommission())*OrderLots();
BOrderQ=BOrderQt+OrderLots();
}
(BOrderCost/BOrderQ)+10*Points // Cost+10 Pips
https://www.mql5.com/en/forum/370952#comment_22807855
- 2021.06.09
- www.mql5.com
Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.