
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
You misunderstood. He was using the variable i for BOTH the current chart AND the D1 chart.
ledzep, why you have use this condition?
Isn't it always true?
Thanks for your reply.
That's something I didn't get until quite recently . . . static variables get initialised only once not every time the function they are in is called. https://docs.mql4.com/basis/variables/static
Along those lines, have anyone else noticed that global scale bools (not terminal global) don't save their values between function calls? Or is it just me ... I haven't really tested it extensively, I'm hoping to get a quick confirmation.
I hope it's just you . . otherwise my extern bools wouldn't be doing what they seem to be doing. ;-)
Now I really have to go test this. I've put it off long enough ;)
Update: they all worked!! Yeaaa. I must have had a logical issue when I dealt with it back-then. I've just got-by on using integers. This outta help shorten, optimize and save some resources.
That's something I didn't get until quite recently . . . static variables get initialised only once not every time the function they are in is called. https://docs.mql4.com/basis/variables/static
Hi all one
So is possible to add linee average HIGH - LOW of the previus day?