![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
When cc =1, the following part will be reached.
I think this bug is because I put "ObjectCreate("test09msg",OBJ_TEXT,0,t,WindowPriceMax());" outside/before "while()...", so variable "t" is empty/zero.
It works perfect. I can learn a lot from your code. And I have to form a good process of debugging.... random try this and that won't help. Sometimes I have to calm down to find fault. LOL.
No it will not. cc == 1 the if calls sleep and the continue goes back to the top of the while.
I wrote another example script to test:
I see "reached".
I wrote another example script to test:
I see "reached".
Of course, if cc=1 the if condition is false.
No it will not. cc == 1 the if calls sleep and the continue goes back to the top of the while.
cc = 1 does not make . . .
. . . true. cc is not greater than 1 and it is not equal to 0
I think you must have caught my temporary blindness disease . . .
I published this code.
~Cheers.