Errors, bugs, questions - page 1255

 
Tapochun:
Has anyone noticed after placing pending orders (MT5 1010) with time to live setting, that the order validity (after setting) is alwaysORDER_TIME_GTC instead ofORDER_TIME_SPECIFIED?
Are you sure you are filling the trade request fields correctly ? We checked with ourselves - it's not reproducing.
 
alexl:
Are you sure you are filling in the trade request fields correctly? Checked with yourself-it's not reproducible.
Checked and more than once... left a request to servicedesk#1121148.
 
alexl:
Are you sure you are filling in the trade request fields correctly? We checked it with ourselves - it is not reproduced.
So, when you setORDER_TIME_SPECIFIED for an order, you getORDER_TIME_SPECIFIEDfor the same order?
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
  • www.mql5.com
Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Tapochun:
So, when you setORDER_TIME_SPECIFIED for an order, you getORDER_TIME_SPECIFIEDon request for the same order?
We have written to you in the Service Desk
 


Help me understand, please:

GBPNZD (or more precisely GBPNZG@)...

... terminal says SwapType "GBP" i.e. "Base",

... and the test script is that "SYMBOL_SWAP_MODE_CURRENCY_MARGIN" ? ? ?


Is it a bug... or did I miss something?


AGMMarkets broker, demo account... Attached the script...

Thank you!
Files:
 
MetaQuotes:

MetaTrader 5 build 1035: Option Strategy Builder and Tick Access

MQL5: Added function working with the tick history CopyTicks. The function allows getting an array of ticks accumulated by the terminal during the current working session. The depth of received ticks is limited to the last 2 000.

Better late to hear and do than never... Finally, there is an undeniable advantage of MT5 over the standard features of MT4 (third-party popular MQL4 solutions for collecting ticks without gaps have existed for a long time). And how many copies were broken...

Now the smartest ones will post their versions of tick collectors, which, of course, will be relevant only for FOREX, because tick data must be freely available by law.

Therefore it is logical to insert collected ticks into tester. In the MT4-tester - no problem. MT5 - no problem. It would be good to implement one more advantage for the MT5.

It is clear that access to ticks was made for real time trading. And users of other platforms may not laugh "in MT you can't even view ticks and scalping is out of place". However, you can immediately feel the imbalance between the real-time trading possibilities and the tester has become even greater.

It would be good to take action to reduce this gaping gap between the two. I.e. to hear again.
 

Hello Dear forum users. There is one situation that is not clear.

Actually the thing is that no way to make the function ChartOpen (), in the tester (visualizer), open a couple of graphs.

In normal mode, everything works, but in the tester, it constantly returns not zero as written in help, and the same number 16388.

I will be very grateful if someone tells me what's wrong. Test robot attached.

Files:
 

It's not the first time I've encountered a problem when the terminal hangs up and has to be rebooted. So, global variables lost their values or acquired old ones, the Expert Advisor started working on erroneous information.

Of course, I can suggest that everything should be written to a file, but what is the use of global variables if they behave almost like normal ones? A similar phenomenon happens with objects on charts. Maybe there is a way to force autosave the environment?

 

who knows, does OnChartEvent work in the tester?

void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)

It doesn't work for me.

 
sanyooooook:

who knows, does OnChartEvent work in the tester?

It doesn't work for me.

It works in mt4.