Features of the mql5 language, subtleties and tricks - page 39
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
There was no mention of completely replacing the casting.
Arbitrary casting via writing/reading binary... Lights out. No need to read further...
p.s. I looked at your code:
Arbitrary casting via write/read binary... Lights out. Don't read further.
There's arbitrary casting via union - any simple structures without custom constructors and copy operators. For all the articles on this site, this casting will work.
But if you want to cover 100% of castings - via files. There is a choice.
Got a better suggestion?
Obviously do not use custom constructors in structures and assignment operators. Write simple code.
It's a popular test
Well, it's not the same as
Actually ArrayResize() returns
Return value
If successful, the function returns the number of all elements contained in the array after resizing; otherwise, it returns -1 and the array is not resized.
Actually, ArrayResize() returns
Now there is only one request for indicators and we switch off with those data which are there. Swap works for itself.
Expert Advisors and scripts are a bit different. There are several attempts to wait for the necessary data. As long as the data arrives, attempts are made. As soon as there are problems with the connection, we immediately pause.
Forum on trading, automated trading systems and trading strategies testing
Registration for the MetaQuotes-Demo Championship in May
Vladimir Karputov, 2017.05.05 11:54
Added. Yes, I need to cycle through the entire signal base in the terminal:
SignalBaseTotal
Returns the total number of signals available in the terminal
By the way, I recommend before this run (especially when switching from another server or right after the start) to click at least once on the "Signals" tab of the terminal - this should activate the paging of the actual database.