Hi all, I am trying to make dynamic range bars - which would change size depending upon day's opening price.
so far, I have done this and am stuck here: ******************************************************* TimeFrameMode(4); // range mode price = ValueWhen(DateNum() != Ref(DateNum(),-1),O,1); // daily open tf = 0.002*price; // 2 percent of opening price y = tf/0.5; //divided by ticksize x=int(y); // integer value z = SelectedValue(BarIndex()); TimeFrameSet(x[z]); PlotOHLC(O,H,L,C,"Price "+x,colorBlue); ****************************************************** Selectedvalue or lastvalue affects the whole data, whereas I am looking for a unique range each day. Any ideas whether possible or not?? Thanks Ashish
