can you give me some suggestions?

[Deleted]  

int start()
{
......

for (i=Bars-1;i>0;i--)
{
if (Close[i]=a+b)
m=i;

}
......;

}


as new quotations received, new sticks appears,and the index 0,1,2.... are pointed to different sticks. for example, Close[5] of current time is equal to previous Close [4] after receiving a new quotation. now, i assign i to m, the Close[m] is different between before and after receiving new quotations. how can i point to the same sticks with a fixed index or a varible whenever i reveive new quotations? can you give me some suggestions? thanks!

[Deleted]  

As new quotations received, importance of the volume of the current bar increases on unit. If changed importance Bid, changes importance Close[0].
Thereby, i - index of the bar, but Volume[i] - amount of the quotations, received for time of the shaping the bar, which is a value of the current timeframe.

[Deleted]  
The proven method is to use Time[i] and iBarShift function. The time of bar is permanent.