Friends, this looks very strange to me. This function works:
When I change it and add division by a double number, the function remains in a cycle or freezes, it simply stops working:
Not sure what function you are talking about . . but anyway.
You didn't just add the division, you also added { } braces, well I see one so I assume there is another . . . that fundamentally changes the way your code works.
Not sure what function you are talking about . . but anyway.
You didn't just add the division, you also added { } braces, well I see one so I assume there is another . . . that fundamentally changes the way your code works.
Hello, RaptorUK, that was a typo, I have not added braces or changed anything else, just really added the division. Also, the current_tick_value is not zero. I just cannot find out why the function from which is this piece of code stopped working.
Thanks! Pavel
solator:
When I change it and add division by a double number, the function remains in a cycle or freezes, it simply stops working:
Would anybody have an idea what is wrong?There are no mind readers here. Add Print() before the IF, inside the IF, at the exit of the IF, and find out where.
Hello, I found the problem finally. I wanted to do what you recommended but it was difficult because Print() or Comment() did not work at all! I was wrong when I said the denominator was not zero. It was... Now it works fine. Conclusion: division by zero made the program freeze or cycle in a loop or maybe jump to some undefined address...
Thank you all, Pavel.
Hello, I found the problem finally. I wanted to do what you recommended but it was difficult because Print() or Comment() did not work at all! I was wrong when I said the denominator was not zero. It was... Now it works fine. Conclusion: division by zero made the program freeze or cycle in a loop or maybe jump to some undefined address...
Thank you all, Pavel.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Friends, this looks very strange to me. This function works:
When I change it and add division by a double number, the function remains in a cycle or freezes, it simply stops working:
Would anybody have an idea what is wrong?
Thank you! Pavel