Variables not being assigned

 
Hey, I'm trying to assign these variables, and it's not working. I was wondering if there are any obvious reasons why this bit of code wouldn't be working for me.

 for(PercenChange=(PercenOut+1.0),s=1;PercenChange<(1.0-PercenOut);PercenChange=PercenChange-StepPercen,s=s+1) {
            for(i=1;i<NMAX;i++) {
               CloseFXO[i]=iClose(NULL,TimeFrame,i);
               OpenFXO[i]=iOpen(NULL,TimeFrame,i);
               AverageFXO[i]=iMA(NULL,TimeFrame,AverageMaes,0,MODE_EMA,PRICE_CLOSE,i);
               FastO[s,i]=iMA(NULL,TimeFrame,NormalizeDouble(FastMa*PercenChange,0),0,MODE_EMA,PRICE_CLOSE,i);
               SlowO[s,i]=iMA(NULL,TimeFrame,NormalizeDouble(SlowMa*PercenChange,0),0,MODE_EMA,PRICE_CLOSE,i);
               MomenO[s,i]=iCustom(NULL,TimeFrame,"OSMAMA",12,NormalizeDouble(Momentum*PercenChange,0),0,i);
               WidthO[s,i]=MathAbs(iMA(NULL,TimeFrame,NormalizeDouble(PercenChange*FastMa,0),0,MODE_EMA,PRICE_CLOSE,i)-
                                  iMA(NULL,TimeFrame,NormalizeDouble(PercenChange*SlowMa,0),0,MODE_EMA,PRICE_CLOSE,i)); }}}
 
(deleted)
 
I think that variable TimeFrame contains incorrct value. Check it.