Is there a time series forecast indicator - page 4

 
samyadly:
here

Hi,

I would like to ask you were exactly in your code you specify the OFFSET. I am asking beacuse i would like to have a value of ZERO (TSMA).

int start()

{

int counted_bars=IndicatorCounted();

//----

double ka,kb,sx,sy,sxy,sx2,ival;

int cnt;

int i,limit;

limit=Bars-TSFPeriod-counted_bars;

//---- main loop

for(i=limit; i>=0; i--)

{

sy=0;

sx=0;

sxy=0;

sx2=0;

for (cnt=1; cnt<= TSFPeriod; cnt++)

{

sy+=Close;

sx+=cnt;

sx2+=cnt*cnt;

sxy+=Close*cnt;

}

kb=(TSFPeriod*sxy-sx*sy)/(TSFPeriod*sx2-sx*sx);

ka=(sy-kb*sx)/TSFPeriod;

ival=ka+kb;

ExtMapBuffer1 = ival;

}

//----

return(0);

}

thank you in advanced,

Nikos

 
NikMex:
Hi,

I would like to ask you if anyone has ever build in fynction a Time Series Moving Average (TSMA) in mq4?

I would i appreciate if you can help me.

Thank you in advanced an i am looking forward to hearing from you,

Nik

something new about the tsma?

 

I am looking for a indicator as the bollinger bands but builded on the time serie moving average, not on the simple moving average.

Have someone this?

 
rougecajou:
I am looking for a indicator as the bollinger bands but builded on the time serie moving average, not on the simple moving average. Have someone this?

"time series forecast indicator" is a linear regression value indicator (sometimes called LSMA)

Reason: