bertje: So I want to search in the daily-chart between the found weekly starttime-endtime (=endtime == starttime nextbar) to the found weekly-high.
- No where in the doc will you find you can select a specific field, do you can't use BSearch.
- Use iBarShift to find the weekly bar. Use iHigh to find the weekly bar high. Done.
Thanks again I fixed it!
With iBarshift I find the bars in the daily, from there I have a range for searching the high/low with iLowest.
bertje: With iBarshift I find the bars in the daily, from there ...
| What is the second argument of iBarShift? |

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
Hi,
I'm facing the following problem:
I'm creating a multiple-timeframe indicator
In the weekly I found a high at a specified weekly_time bar
Now I want to plot this High on the correct place in the Daily-chart
So I want to search in the daily-chart between the found weekly starttime-endtime (=endtime == starttime nextbar) to the found weekly-high.
And finally plot in the daily chart at the correct place an arrow or something....
I have an array created with:
Now I found the indexes of a found high-bar in the weekly and want to transform this to the daily-chart rates. (I'm creating a multiple chart indicator)
So I now found a time-span for the high (openingbar) and the next opening bar. Between both times we must search the exact time for the high in the daily-chart.
I thought I could use ArrayBSearch for searching the starttime...end endtime (getting back the id's in the daily_rates array and afterwarts search the high in the daily_rates array where I can then plot that high in the daily-
Unfortunately I can't address the weekly_rates[].time array correctly in the ArrayBSearch.
or
or
or
All the version I tried incorrect ...In the documentation I can't see how I can address it at a correct way :(