On Bar # 1 MACD(Closes[0], 12, 26, 9)[0] returns a value,
this is fine but how do we interpolate this data for a smaller data set less than the required 26 bars?
1.) Are we using a shorter ema and expanding as we approach ie, using an EMA of 1, 2, 3,?
2.) Are we using a shorter ema of fixed value until we approach the minimum length 26?
3.) Are we using a fixed ratio as the data becomes available? ie. 6, and 13?
What's the process?
if (CurrentBars[0] == 1)
{
Print ("INTERPOLATED MACD BAR #1: " + MACD (Closes[0], 12, 26, 9)[0]);
}
Prints: 0.221134568713751
Thanks,
Comment