_Sum=0;

LEN =10;

mm=0;
*

for* (i= LEN; i<*BarCount*; i++)

{

//_Sum = 0;
*

for* (j = i-LEN; J==i-1; J++)

{

_Sum= _Sum+*C*[j];

}

mm[i] = _Sum/LEN;

}
ps:(1)Just removed the errors.
(2)express your logic distinctly so that it can be formulated.

On Tue, Jun 1, 2010 at 10:45 PM, ang_60 <ima_c...@yahoo.it> wrote:

>
>
>
> Hi,
>
> My purpose is to rebuild the MA function with the "FOR... NEXT.... loops.
> Could you please check this formula, that gives me two "syntax" errors?
>
> _Sum=0;
> LEN =10;
>
> for (i= LEN; i<BarCount; i++)
>
> {
> _Sum = 0;
> for (j = i-LEN; J=i-1; J++)
> {
> _Sum= _Sum+C(j);
> }
> mm(i) = _Sum/LEN;
> }
>
> 
>

Reply via email to