Here is code of indicator that freez MT5 Aand computer...Tried on two different computers with different OS...same thing freez everything...As soon as I remove indicator from the chart everything is back to normal again.
Indicator was converted from MT4 to MT5...MT4 version works perfectly good.... Must be something in code that cause freezing...
There are no other indicators that cause such problem.
Can someone help to resolve problem please?
I put indicator on any pair...several of them (10+), same as i use it for MT4 version...Sorry for repeating: (no other MT5 indicator make such problem and soon as I remove indicator from chart everything is back to normal, MT4 version is perfect no problem), unbelievable ...time period should not be issue at all...
I thought that code is looking entire chart instead last two bars (testing:spd1, spd2, v1,v2)...so it overload CPU....I do not know.
This is indicator that I ask someone in forum to code (https://www.mql5.com/en/forum/23508) ...Now I have it and i cannot use it...so sorry.
Angevoyageur thank you for reviewing code in my post.
- www.mql5.com
I put indicator on any pair...several of them (10+), same as i use it for MT4 version...Sorry for repeating: (no other MT5 indicator make such problem and soon as I remove indicator from chart everything is back to normal, MT4 version is perfect no problem), unbelievable ...time period should not be issue at all...
I thought that code is looking entire chart instead last two bars (testing:spd1, spd2, v1,v2)...so it overload CPU....I do not know.
This is indicator that I ask someone in forum to code (https://www.mql5.com/en/forum/23508) ...Now I have it and i cannot use it...so sorry.
Angevoyageur thank you for reviewing code in my post.
Can you please answer my questions is you need help ?
This code is working well, though it's not optimal. Try to place it only one time on a chart and see what happens.
Can you please answer my questions is you need help ?
This code is working well, though it's not optimal. Try to place it only one time on a chart and see what happens.
I use same template for MT4 and MT5 ( meaning similar indicators just different versions) . ..Under same conditions (same computer, same platforms, same operating system) there is no problem using MT4...and there is no problem for other MT5 indicators...Just this one.
I Use 16 charts in one profile, time frame M30 ..or M5...It doesn't freeze on one chart but sometimes that particular indicator ( no other indicators on same chart) disappear and then appear again after a while...
It is used with this attached indicator.... Attached indicator doesn't make problems or any other MT5 indicator on chart...So if you want to try ...
Hope I answered your question.
If the PC is slow or other apps is running concurrently, it may take some time for the indicator to show up, up to a minute or more. How long did you observe the freezing?
PC is good ...as I mentioned before ...It makes problem only with this particular inicator and shouldnt be...It just draw two arros checking last two bars on spread and volume...Other MT5 indicators doesn't make any problem...on same computer..MT5 indicators doesn't make any problem MT4 indicators doesn't make any problem
Just this MT5 indicator. I hope I answered to your comment.
PC is good ...as I mentioned before ...It makes problem only with this particular inicator and shouldnt be...It just draw two arros checking last two bars on spread and volume...Other MT5 indicators doesn't make any problem...on same computer..MT5 indicators doesn't make any problem MT4 indicators doesn't make any problem
Just this MT5 indicator. I hope I answered to your comment.
Not in a full degree. I asked how long did you try to wait for the indicator calculation completion. So?
You have been told that your code does work for angevoyageur, so the problem can be with, say, a number of bars you have in your chart. If it's ~100000, it can take a while to finish calculations.
Not in a full degree. I asked how long did you try to wait for the indicator calculation completion. So?
You have been told that your code does work for angevoyageur, so the problem can be with, say, a number of bars you have in your chart. If it's ~100000, it can take a while to finish calculations.
It should test only last two bars (not entire chart) for spread and volume(spd1>spd2 and v1<v2) draw 1 arow and give alert. MT4 do it instantly ...I do not have to wait for anything...anyway I do not interrupt operation...I know very well how same indicator work on MT4...
Hope this answer your comment.
It should test only last two bars (not entire chart) for spread and volume(spd1>spd2 and v1<v2) draw 1 arow and give alert. MT4 do it instantly ...I do not have to wait for anything...anyway I do not interrupt operation...I know very well how same indicator work on MT4...
Hope this answer your comment.
It should calculate all bars (not 2 latest ones) when you place the indicator on a chart first time. You did not answer my question.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Here is code of indicator that freez MT5 Aand computer...Tried on two different computers with different OS...same thing freez everything...As soon as I remove indicator from the chart everything is back to normal again.
Indicator was converted from MT4 to MT5...MT4 version works perfectly good.... Must be something in code that cause freezing...
There are no other indicators that cause such problem.
Can someone help to resolve problem please?