147 163 ... 4797137145146147148149157 ...
1,461 1,470 1621

:

  1. #1461
      kira-h
    Nov 2013
    6,273

    13:00
    :
    PHP:
    void OnTick()
    {
     if(
    TimeHour(TimeCurrent())==13&&TimeMinute(TimeCurrent())==0)CloseDeleteOrders();
    }


    void CloseDeleteOrders(int type=-1)
    {
     
    bool s,c;
     for(
    int i=OrdersTotal()-1;i>=0;i--)
     {
      
    s=OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
      
    string sy=OrderSymbol();
      
    int    tt=OrdersTotal(),
             
    tk=OrderTicket(),
             
    ot=OrderType(),
             
    mn=OrderMagicNumber();
      
    double lo=OrderLots();
      
      if(
    tt>0&&sy==Symbol()&&mn==MagicNo)
      {
       if(
    ot==type||type==-1)
       {
        if(
    ot==OP_BUY){c=OrderClose(tk,lo,NormalizeDouble(Bid,Digits),5*Q);}  
        if(
    ot==OP_SELL){c=OrderClose(tk,lo,NormalizeDouble(Ask,Digits),5*Q);}
        if(
    ot>OP_SELL){c=OrderDelete(tk);}
       } 
      }
     }













  2. #1462

    Aug 2015
    120
    :
    Q









  3. #1463
      kira-h
    Nov 2013
    6,273
    :
    Q
    ɡ 50 5












  4. #1464

    Aug 2015
    120
    kira-h
    ɡ 50 5
    EX4 write error !

    VPS
    ..








    ; 01-10-2017 02:16 AM

  5. #1465

    Nov 2016
    26

    . .
    ʡ ѡ if(Orderscnt()==0) .








    ; 01-10-2017 03:51 AM

  6. #1466
      kira-h
    Nov 2013
    6,273
    EX4 write error !

    VPS
    ..












  7. #1467
      kira-h
    Nov 2013
    6,273

    . .
    ʡ ѡ if(Orderscnt()==0) .

    :
    PHP:
      datetime time;
      
      if(
    Orderscnt()==0&&time!=Time[0])
      {
       
    ticket=OrderSend(Symbol(),OP_BUY,Lots,NormalizeDouble(Ask,Digits),50,0,0,"Kira-h",0,0,Blue); 
       
    time=Time[0];
      } 












  8. #1468

    Nov 2016
    26
    kira-h

    :
    PHP:
      datetime time;
      
      if(
    Orderscnt()==0&&time!=Time[0])
      {
       
    ticket=OrderSend(Symbol(),OP_BUY,Lots,NormalizeDouble(Ask,Digits),50,0,0,"Kira-h",0,0,Blue); 
       
    time=Time[0];
      } 











  9. #1469

    Aug 2015
    120
    : .. /14/ .. .. . ...









  10. #1470
      kira-h
    Nov 2013
    6,273
    : .. /14/ .. .. . ...
    ...
    ɡ 500 1000