cyberfx.org:
This function returns bar shift based on the open time specified. If you specify open and close time you can find the difference between both shifts and in this way count the bars
This function returns bar shift based on the open time specified. If you specify open and close time you can find the difference between both shifts and in this way count the bars
Thanks! So do you mean use two sets of iBarshift for each datetime time (beginning of range and end of range) and then
do a subtraction? Does iBarShift give you the index Bar number? I am working with a large period of data but trying to cone
down onto a 5 - bar segment range to test the calculation.
Thanks!
doubblin: Does iBarShift give you the index Bar number?
What does the documentation say it gives? RTFM
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
I am trying to backtest price data and am wondering how to create a simple indicator
to count the number of bars over a specified time range. I presume that this would make
use of datatime variable to set the exact range of dates and then use this in some way
to calculate the bars. I am a newbie to MQL4 and what seems simple is not so straightforward.
Any help would be appreciated. Thanks in advance.