I'm facing the following problem:
I'm creating a multiple-timeframe indicatorIn the weekly I found a high at a specified weekly_time barNow I want to plot this High on the correct place in the Daily-chartSo 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.
starttestlowid=ArrayBsearch(daily_rates.time, starttime, WHOLE_ARRAY,0,MODE_DESCEND);
starttestlowid=ArrayBsearch(daily_rates[...].time, starttime, WHOLE_ARRAY,0,MODE_DESCEND);
starttestlowid=ArrayBsearch(daily_rates, starttime, WHOLE_ARRAY,0,MODE_DESCEND);
All the version I tried incorrect ...In the documentation I can't see how I can address it at a correct way :(
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.
To add comments, please log in or register