Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 394

 
Is it possible to replace the metaeditor in mt4 with the one in mt5, it will be more convenient
 
is expecting a parameter of type string - how is this to be understood?
 
Understood.
 
vadynik:
Is it possible to replace metaeditor in mt4 with the one in mt5, it will be more convenient

In the new version the editor will be unified
 
How do I display information about the type of order?
Is it related to the "OrderType" function?
 
Vinin:

In the new version the editor will be unified

When will the new version be available, if that's not a secret?
 
Link_x:
How do I display information about the type of order?
Is it related to the "OrderType" function?
There are functions in KimIV that define the type of the last order opened and the type of the last order closed.
 
vadynik:

When will the new version be available, if that's not a secret?

Read a couple of the top threads. The titles speak for themselves
 
int GetTypeLastOpenPos(string sy="", int mn=-1) {
  datetime t;
  int      i, k=OrdersTotal(), r=-1;

  if (sy=="0") sy=Symbol();
  for (i=0; i<k; i++) {
    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
      if ((OrderSymbol()==sy || sy=="") && (mn<0 || OrderMagicNumber()==mn)) {
        if (OrderType()==OP_BUY || OrderType()==OP_SELL) {
          if (t<OrderOpenTime()) {
            t=OrderOpenTime();
            r=OrderType();
          }
        }
      }
    }
  }
  return(r);
}
I don't understand how to use it at all.
How do I insert this code to get information about the order, that it is either Buy or Sell?
I don't understand a thing.
 
Link_x:
I don't understand how to use it at all.
How do I put this code in to make sure it's either Buy or Sell?
It doesn't make any sense.

Show me how to do it, but insert the code in human form
Reason: