MetaEditor build 1463 - page 2 123456789...16 New comment Vladimir Karputov 2016.11.04 18:29 #11 fxsaber: Tried from different locationsI can't download the update.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. fxsaber 2016.11.04 18:39 #12 #include <MT4Orders.mqh>#define MAGIC 12345void OnStart(){ OrderSend(_Symbol, OP_BUY, 0.5, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 0, 0, 0, "Hello", MAGIC);}The ID column does not work fxsaber 2016.11.04 18:42 #13 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. EAclass 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 log2016.10.22 19:35:51.362 Test9 (AUDCAD,M1) Abnormal termination2016.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. Errors, bugs, questions OnDeinit() race condition and expert advisor - miscellaneous fxsaber 2016.11.04 18:45 #14 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! Renat Fatkhullin 2016.11.04 18:49 #15 fxsaber: The ID column does not work This is Magic in the tooltip, not the exchange/gateway ID. fxsaber 2016.11.04 18:50 #16 Renat Fatkhullin: It's Magic in the tooltip, not the exchange/gateway ID. I did not understand the term. Add a Magic column, please. Renat Fatkhullin 2016.11.04 18:50 #17 Vladimir Karputov: 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. Vladimir Karputov 2016.11.04 18:50 #18 fxsaber: #include <MT4Orders.mqh>#define MAGIC 12345void OnStart(){ OrderSend(_Symbol, OP_BUY, 0.5, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 0, 0, 0, "Hello", MAGIC);}The ID column does not workThis is a bit of a wrong ID:ID is the order ID in an external trading system. fxsaber 2016.11.04 18:51 #19 Vladimir Karputov: This is a bit of a wrong ID:ID - the order ID in an external trading system. Got it, thanks! Renat Fatkhullin 2016.11.04 18:52 #20 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. Finding parameters of an FORTS: OnTradeTransaction() return codes EA without magic number 123456789...16 New comment
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.