
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
when in place on the chart, there is no effect to move SL despite profit and parameters are met
int XBE_Pips =15;
extern int BE_Pips = 1;
//----
if (Digits==3 || Digits==5) { dPoint=Point*10; }
if(Symbol()) return(0);
int type;
int ticket;
int total = OrdersTotal();
{
ticket = OrderTicket();
type = OrderType();
openPrice = OrderOpenPrice();
stopPrice = OrderStopLoss();
if(type == OP_SELL && stopPrice >= openPrice && Ask<=(openPrice-XBE_Pips*dPoint) && OrderSymbol()==Symbol())
if(OrderModify(ticket,OrderOpenPrice(),OrderOpenPrice()-(BE_Pips*dPoint) ,OrderTakeProfit(),0,Red));else;
else if(type == OP_BUY && stopPrice <= openPrice && Bid>=(openPrice+XBE_Pips*dPoint) && OrderSymbol()==Symbol() )
if(OrderModify(ticket,OrderOpenPrice(),OrderOpenPrice()+(BE_Pips*dPoint),OrderTakeProfit(),0,Blue));else;
}