Thread: How to code?
View Single Post
  #524 (permalink)  
Old 12-06-2007, 05:47 PM
nakata79087 nakata79087 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 6
nakata79087 is on a distinguished road
question

I do not understand the difference of two programs, but would teach it?


int limit = Bars-IndicatorCounted();
int i ;
for( i=limit-1; i>=0; i--)




int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(i = 0; i <= limit; i++)
Reply With Quote