Thread: MQL4 Learning
View Single Post
  #7 (permalink)  
Old 05-31-2006, 06:52 AM
huaxia009 huaxia009 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 7
huaxia009 is on a distinguished road
do u have any suggestions?

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!

Last edited by huaxia009; 05-31-2006 at 08:51 AM.
Reply With Quote