Will this work for...

 
for(int i=limit-1; i==0; i--)
is this code correct if i am using in an indicator and want to selcet bar (0) only??????