So you think that using a MACD to indicate the fuel level in the tank would be a good idea then?
Ha, that's good, I might need to steal that.
So you think that using a MACD to indicate the fuel level in the tank would be a good idea then?
Or it's a bit like trying to forecast tomorrow temperature looking at a thermometer's derivative...
So then, you take the correlation coefficient computed over the series and "apply" it to the last price of the dependent variable to predict the independent variable for the next period? Isn't this roughly equivalent to a simple linear regression where the dependent variable is lagged by one period?signal.leading=correlation(independentvar[1],dependentvar,length);
signal.lagging=correlation(independentvar,dependentvar[1],length);
In the end the dependentvar must aways be current price after concluding all interim calculations so it's technically not feasible to b considering offsetting it's index unless your broker allows tampering with the timestamp of your trades.
It amaze's me nearly everyone fails to recognize the value of defining lag in a way which makes it helpful rather than harmful.
Without correctly defining lag... there can't be ***ANY*** leading indicators.
So then, you take the correlation coefficient computed over the series and "apply" it to the last price of the dependent variable to predict the independent variable for the next period?
Yes the utility comes from modifying the correl default index so it calculates a leading rather than centered correlation.Isn't this roughly equivalent to a simple linear regression where the dependent variable is lagged by one period?
You're quite correct on the dv/iv relationship, I mistakenly switched the terms in my previous post.The dependent var can only predict future values of itself.
LinRegression(dependentvar,length)
or
Correlation(dependentvar[1],dependentvar[0],length)
In theory the dependent var has a relationship with previous values of iv but in practice there isn't a relationship between dv and future values of iv.
To predict iv requires
LinRegression(iv,length) or
Correlation(iv[1],iv[0],length);
Yes the utility comes from modifying the correl default index so it calculates a leading rather than centered correlation.
Which is a better predictor? LinRegression(c,length) or Correlation(iv[1],dv[0],length)?
What about LinRegression(correl,length) or Correlation(correl[1],correl[0],length)?
I suspect the LinRegression would be the better predictor where you have a strong lead/lag relationship. But I'm not convinced that a lead/lag relationship exists in most markets.
Hat tip to you! The textbook formulas in the public domain are best used for learning and reference. Then take the initiative to roll your own. That's how you make money in this business.... I've written my own correlation formulas, not so I could brag, simply because I needed to. It's really not hard to do nor anything to be bragging about. Study the binary correl for ideas. Forget about pearson and any form of LR, imo...
Hat tip to you! The textbook formulas in the public domain are best used for learning and reference. Then take the initiative to roll your own. That's how you make money in this business.