I have a custom MACD plot that uses the shared MACD routine from Ninja. Part of my code is as follows.
double val0 = Math.Round(MACD(Fast, Slow, Smooth).Diff[0], 2);
double val1 = Math.Round(MACD(Fast, Slow, Smooth).Diff[1], 2);
//do plot val0 vs val1 on screen.
My question is when OnBarUpdate is called on my custom indicator, does calls tp MACD class cuase it to recalculate on the entire bar series or it calculates only for the current bar (with info for previous bar coming from cache) ?
Thanks.
Comment