Can anyone help?
i will try
rafat darwish:
i will try
i will try
Thanks can you see what I have done wrong?
rafat darwish:
i will try
i will try
Tried also adding this code, however can't seem to get it work, I'm not a programmer so might be something simple!
if(OrdersTotal()) { if(!OrderSelect(0,SELECT_BY_POS,MODE_TRADES)) Print("unable to select order"); double op =OrderOpenPrice(); int type = OrderType(); double lots = OrderLots(); int ticket = OrderTicket(); if(lots == LotSize) { if(type == OP_BUY && Bid-op > (PartialClosePips*pips)) { if(!OrderClose(ticket,lots/2,Bid,30,clrGreen)) Print("failure to close order"); } else if(type == OP_SELL && op-Ask > (PartialClosePips*pips)) if(OrderClose(ticket,lots/2,Ask,30,clrRed)) Print("failure to close order"); } }
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
Please can some add close % of lots when profit hits a certain target in pips to this EA!
Struggling to find out how to do it.
Code Below