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 need the minimum code reproducible by the problem. Not a piece of code.
The problem is unstable - it may not exist for hours and then appear. I have shown the piece where division by zero occurs and the piece that forms the divider. It is not yet clear what else might be causing it.
The problem is unstable - it may not exist for hours and then appear. I have shown the piece where division by zero occurs and the piece that forms the divider. It is not yet clear what else might be causing it.
You, on the other hand, have the LINE NUMBER and the COURSE POSITION of the division by zero. But unfortunately we are not telepaths.
Is it difficult for you to highlight the line and the cursor position?Which line is the error in? Highlight it in the code.
The problem is unstable - it may not exist for hours and then appear. I've shown the piece where division by zero occurs and the piece that forms the divider. It is not yet clear what else could be the cause.
Maybe it's a matter of type conversion (int) - somewhere a fractional number is formed when dividing and it int becomes zero. Of course, the divisor is converted to integer, but type conversion was already complained about with the new release.
You, on the other hand, have the LINE NUMBER and the CURSOR POSITION of the division by zero. But, unfortunately, we are not telepaths.
Is it difficult for you to select the line and the cursor position?What line is the error in? Highlight it in the code.
Here's what I wrote.
Here it becomes zero.TimeFrames==PERIOD_H1
The debugger shows these dates
Condition for the print
Maybe it's a matter of type conversion (int) - somewhere during division a fractional number is formed and it is converted to zero by the int. Of course, the divisor is converted to integer, but type conversion was already complained about with the new release.
Perhaps we need to think about it.
Obviously, you need to check the limit by 0. The condition for the print is incorrect, I think. You should print when limit=0.
Obviously, you need to check the limit by 0. The condition for the print is incorrect, I think. It should print when limit=0.
Thanks - I'm dumbfounded when I'm awake.