
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
This is correct. If limit is calculated using the formulalimit=(int)(stop_time-start_time)/PeriodSeconds(_Period);
then the result will be = 0.
Now we need to see how stop and start times are formed.
So it is so. Here is the code I have posted earlier
It turns out it is thisdatetime stop_time=(start_time+PeriodSeconds(TimeFrames)); ? I.e. it's not adding?
So it is, here is the code I posted earlier
It turns out it's about thisdatetime stop_time=(start_time+PeriodSeconds(TimeFrames)); ? I.e. it's not adding?
Try replacing
The error now keeps popping up.
Now the error keeps popping up.
я
I would definitely have replaced it, it would have reduced the access time, but now you need to see all the code, all the calculations made
Now the error keeps popping up.
Which line is it swearing at?
Try this crutch:
double Delta = 0.000001; // Find experimentally.
If Denominator is less than Delta Alert("Denominator = ", Denominator); Otherwise calculation. You need Alert, it's faster and more convenient. When it works, look for an error
The error now keeps popping up.
Which line is it swearing at?
Division by zero is there too.
In which line does the error occur? If you run in MetaEditor, it stops the compilation at the error (lazy to re-read the posts)
The compilation runs without errors.
It's not about the zero, it's about why it occurs... I.e. why the index and dates are the same.
Here's the code to play it back on the minute chart, preferably without changing the settings