Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 806
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
Guys, thanks for wanting to help, but I figured it out on my own. Variables were declared in the EA in this way, even though it is not required:
Why this was deemed acceptable by the compiler for a couple of months and then suddenly became a crime as of lunchtime today is the question. True, mt4 was being updated today, probably something did change in the syntax.Why would you declare reserved words as variables?!
Well, I'm a novice proger...
Folks. I have this question. Is it possible, using M5, to determine the highs and lows of the last five days? And if so, how should it be done? It's the third day I'm racking my brain.
If you are using the M5 chart, you can check the extremes of the last five days like this:
This is using D1, and when you run it in the tester, these values will not be correct as I know it. That's why the question sounds exactly like "using M5". Is there any way to use the date or day of the week? Or am I mistaken about using two TFs in the tester?
You are wrong! You can use all TFs and take all needed data from them! But in the tester it is better to set a smaller TF, so that ticks and/or bars would be better simulated, which is better for testing and optimization!
If I understand correctly, if the Expert Advisor performs all operations on M5, but needs the above data for the calculation, then the function using D1 will work correctly when optimised in the tester on M5?