Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1316
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.