Experts: Close Master

 

Close Master:

EA that can delete pending orders, close open orders and close terminal at certain time.

Author: Il Anokhin 

Close Master
Close Master
  • www.mql5.com
AutoFibo Indicator that automatically draws Fibo Retracement. ATR Value Indicator Displaying ATR (Average True Range) value in pips or points with option for setting multiplier.
 
Date is written but where to input Time?
 
Max:
Date is written but where to input Time?

it's 00:00:00 by default.

It can be changed on input window.

 

1 point for your code.

1) If there will be no tick in needed time? Order wiill close with delay??? You need on timer with time shift.

2) Horrible. Write like this.

   if(TimeCurrent()>=CloseTime)
         {
          if(CloseOO==true)
          {
          int type=OrderType();
          if(type==OP_BUY) w=OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),90);
          if(type==OP_SELL) w=OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),90);
          }
          if(DeletePO==true)
          {
          int type=OrderType();
          if(type==OP_BUYSTOP || type==OP_SELLSTOP || type==OP_BUYLIMIT || type==OP_SELLLIMIT) w=OrderDelete(OrderTicket());
          }
         }
 
Hi,how to get this ea?
 
sugiatno Sutjipto:
Hi,how to get this ea?

There is a link in the first line of the first post, it is underlined

 

Hi Dear,

Please advise if you can add Buy and Sell whenever the position is reversed. Also, if their is a Trailing or Target profit option which can also be included in it.

Thankyou so much.

<Deleted>