MetaEditor build 1463 - page 2

 
fxsaber:

Tried from different locations

I can't download the update.

  1. It has been noticed that the update is not given to everyone at once - there is a queue either by IP or by trading demo account numbers.
 
#include <MT4Orders.mqh>

#define MAGIC 12345

void OnStart()
{
  OrderSend(_Symbol, OP_BUY, 0.5, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 0, 0, 0, "Hello", MAGIC);
}

The ID column does not work

 
The problem remains

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

fxsaber, 2016.10.22 18:40

Spent a lot of time on localisation. EA

class CHARTOBJECT
{
public:
  const string Name;
  const long Chart;

  int GetSubWindow( void ) const
  {
    const ulong StartTime = GetMicrosecondCount();
    
    const int Res = ObjectFind(this.Chart, this.Name);
    
    Print((string)(GetMicrosecondCount() - StartTime) + " mcs.");

    return(Res);
  }

  CHARTOBJECT( const ENUM_OBJECT object_type, const long chart_id = 0  ) :
               Name((string)MathRand()), Chart(chart_id)
  {
    ObjectCreate(this.Chart, this.Name, object_type, 0, 0, 0);
  }

  ~CHARTOBJECT( void )
  {
    if (this.GetSubWindow() != -1)
      ObjectDelete(this.Chart, this.Name);
  }
  
  long GetProperty( const ENUM_OBJECT_PROPERTY_INTEGER Property, const int Modifier = 0 ) const
  {
    return(ObjectGetInteger(this.Chart, this.Name, Property, Modifier));
  }
};

CHARTOBJECT Chart(OBJ_CHART);
CHARTOBJECT* Bitmap;

void OnInit()
{
  Bitmap = new CHARTOBJECT(OBJ_BITMAP_LABEL, Chart.GetProperty(OBJPROP_CHART_ID));
}

void OnDeinit( const int Reason )
{
  Bitmap.GetSubWindow();
  
  delete Bitmap;
}

After you remove it from the chart, there will be an output in the log

2016.10.22 19:35:51.362 Test9 (AUDCAD,M1)       Abnormal termination
2016.10.22 19:35:48.351 Test9 (AUDCAD,M1)       3005619 mcs.

Three seconds it was removed and out. Reproduced only in release version. During debug all is normal.

Please confirm with yourself. In script mode, play it did not work. Only the EA.


 
Relevant

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

fxsaber, 2016.08.03 22:16

HistoryOrderGetInteger(OrderTicket, ORDER_TIME_DONE_MSC ) - returns zero in tester!
 
fxsaber:


The ID column does not work

This is Magic in the tooltip, not the exchange/gateway ID.
 
Renat Fatkhullin:
It's Magic in the tooltip, not the exchange/gateway ID.
I did not understand the term. Add a Magic column, please.
 
Vladimir Karputov:
  1. It has been noticed that the update is not given to everyone at once - there is a queue either by IP or by trading demo account numbers.
Yes, there is a queue and volume control so as not to damage the server.
 
fxsaber:
#include <MT4Orders.mqh>

#define MAGIC 12345

void OnStart()
{
  OrderSend(_Symbol, OP_BUY, 0.5, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 0, 0, 0, "Hello", MAGIC);
}

The ID column does not work

This is a bit of a wrong ID:

  • ID is the order ID in an external trading system.
 
Vladimir Karputov:

This is a bit of a wrong ID:

  • ID - the order ID in an external trading system.
Got it, thanks!
 
fxsaber:
I don't understand the term.

If you mean 12345 in the tooltip/tip, it's Magic.

If you mean the empty ID field, it is filled in when executing through an external gateway and is used to match the transaction to an external system. In your case it is not there.