Dislikedif you want gives me about 2000 data of your moving average and i'll tell you how works my function on that data...
you can use this code replice your indicator to t3_clean
void write_data()
{
int handle;
string filename = Symbol() + ".txt"; // Формируем имя файла
handle = FileOpen(filename,FILE_CSV|FILE_WRITE,';');
if(handle < 1)
{
Print("non riesco a scrivere #", GetLastError());
return(0);
//FileClose(handle);
}
//FileWrite(handle,
int i;
for (i=length-1; i>0; i--)
{
FileWrite(handle, iCustom(NULL,0,"t3_clean",5,0.618,0,i)
);
}
FileClose(handle);
return(0);
}//,...Ignored
ok will do this once market closes