@mladen: Great, thank you very much! Much better than before. But one question: I saw that you added the condition i==0 before an alert should be displayed. Why isn't it enough to check lastAlertAt=!Time ? It would be very helpful for my mql4-learning if you explained that.
You want to check for alerts only once primarily because of the speed but also because to avoid repeated alert (just remember that Time will change for a new bar). That whole code can even be pulled out the loop completely (I usually do that, didn't do it in this case to keep it similar to your code) and I think that it is even better that way : when it is out of your main loop it will always be executed only once per tick and you can strictlu control what do you wish to do at that "once per tick" occasion
Thanks for the explaination! I will try to pull it out of the main loop and make some further experiments...
Mladen-could not help me with my question m from the post 4142; Thanks in advance! Sorry for my english ...
Here is a post which explains why I do no make alerts for recalculating and / or repainting indicators : https://www.mql5.com/en/forum/180648/page273
SSA is recalculating
Mladen thanks for answer! Readings from H4 to M15 also can be done?
can u make this indi mq4?
and alert.. Thanks!
Dear Mladen not refuse a request! It is necessary that the reading from H4 to appear on the M15! It is very necessary! Thanks in advance!
Did you read the post I am referring to at all?
If not please read it. Here is the link to that post again : https://www.mql5.com/en/forum/180648/page273
all the best
As far as colored stochastic with multi time frames and alerts is concerned check this indicator : https://www.mql5.com/en/forum/175297 (the newest version)
Or this one : https://www.mql5.com/en/forum/177239/page2