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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Tried from different locations
I can't download the update.
#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
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
{
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: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.
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!The ID column does not work
It's Magic in the tooltip, not the exchange/gateway ID.
#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:
This is a bit of a wrong ID:
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.