and you started looking for optimality of initialization in OnTick/OnInit - everything is simpler there, you need protection for found code to share it with the same friends ))))
Vitaly, what's with the negativity? The man is just asking to troll him, it is necessary to respect)
Igor Makanu:
I wrote above, about the level of questions ;)
and you started looking for optimality of initialization in OnTick/OnInit - everything is simpler there, you need protection for the found code, to share with the same friends )))
Hello, could you advise me please? The manual states that the Initevent is processed by the OnInit() function. This event is also generated after a financial instrumentand/or chart period change.
Here I have a simple code. When I change the timeframe, the function works, but not when I change the instrument. Or maybe I misunderstand the term "change of financial instrument"?
В языке MQL5 предусмотрена обработка некоторых предопределенных событий. Функции для обработки этих событий должны быть определены в программе MQL5: имя функции, тип возвращаемого значения, состав параметров (если они есть) и их типы должны строго соответствовать описанию функции-обработчика события. Именно по типу возвращаемого значения и по...
WinProject: Good time, please advise. The handbook says that the Init event is handled by the OnInit() function. This event is also generated after a financial instrumentand/or chart period change.
Here I have a simple code. When I change the timeframe, the function works, but not when I change the instrument. Or maybe I misunderstand the term "change of financial instrument"?
For the sake of fidelity, it's better this way. If you put a new symbol on the chart, OnDeinit should work and start with OnInit
Thanks, so many years with the terminal and didn't know you could cast to a chart from a market overview, thought changing a financial instrument was a switch to a chart window with a different instrument.
Hello, could you tell me if this is a bug or am I mistaken?
I was doing some calculations, which you can also get through ready-made functions and noticed a difference.
I was calculating margin, and in the tester margin calculation and AccountInfoDouble(ACCOUNT_MARGIN) give different results, and there is no difference in the demo.
Good afternoon to all. I'm trying to write a grail advisor of my own ;-). But for some reason it does not want to work. I have recorded a video, the link to the video is in my message. This will be both clearer and faster. The question itself is in the video. Thank you in advance. https://youtu.be/tqZrXjMONrE
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.
I wrote above, about the level of questions ;)
and you started looking for optimality of initialization in OnTick/OnInit - everything is simpler there, you need protection for found code to share it with the same friends ))))
I see, then a toast: to found "friends"!
Need protection for found code to share with similar friends )))
Beautifully put. We probably look like nerds, but we're having fun!
Well, that's the limit of everything :(
Vitaly, what's with the negativity? The man is just asking to troll him, it is necessary to respect)
I wrote above, about the level of questions ;)
and you started looking for optimality of initialization in OnTick/OnInit - everything is simpler there, you need protection for the found code, to share with the same friends )))
))))
Vitaly, what's with the negativity? The man is just asking to be trolled, you should respect him)
))))
All right, a little positivity.
Here I have a simple code. When I change the timeframe, the function works, but not when I change the instrument. Or maybe I misunderstand the term "change of financial instrument"?
Good time, please advise. The handbook says that the Init event is handled by the OnInit() function. This event is also generated after a financial instrumentand/or chart period change.
Here I have a simple code. When I change the timeframe, the function works, but not when I change the instrument. Or maybe I misunderstand the term "change of financial instrument"?
For correctness of perception, it is better like this. If you put a new symbol on the chart, OnDynit should work and start with OnInit
For the sake of fidelity, it's better this way. If you put a new symbol on the chart, OnDeinit should work and start with OnInit
Thanks, so many years with the terminal and didn't know you could cast to a chart from a market overview, thought changing a financial instrument was a switch to a chart window with a different instrument.
Hello, could you tell me if this is a bug or am I mistaken?
I was doing some calculations, which you can also get through ready-made functions and noticed a difference.
I was calculating margin, and in the tester margin calculation and AccountInfoDouble(ACCOUNT_MARGIN) give different results, and there is no difference in the demo.
I've tried everything and still get error 130.