Stephen Reynol Can someone please explain to me that within the following code
int iBar=Bars-1; // 1000 ⋮ hoursLookBack = TimeToStr(Time[iBar],TIME_MINUTES);You are looking at the oldest bar on the chart.
date/time (2017)
Find bar of the same time one day ago - MQL4 programming forum (2017)
William Roeder #:
You are looking at the oldest bar on the chart.
date/time (2017)
Find bar of the same time one day ago - MQL4 programming forum (2017)
You are looking at the oldest bar on the chart.
date/time (2017)
Find bar of the same time one day ago - MQL4 programming forum (2017)
I now see what i was doing wrong.
It was because yesClose was returning 0.0 and so adding the sum wrong to what i intended.
Thanks so much for clearing that up
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
Can someone please explain to me that within the following code :
Why is it that when i make barcount = 38 or less sumDiffOC returns a smaller value such as 0.04438999999999993
But when i make barCount = 39 or more sumDiffOC displays a much larger value more closer to a price such as 1.17461
Any help would be very much appreciated
Thanks