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)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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
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,
Niksomething 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?
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)