I'm having problems with the MACD indicator in a multi-time strategy.
protected override void Initialize()
{
ClearOutputWindow();
Add(PeriodType.Week,1);
Add(PeriodType.Day,1);
CalculateOnBarClose = true;
}
MACD(BarsArray[1],MACDCorto, MACDLargo, MACDSmooth).Diff[0]
In the strategy, i get a value of 1,5454, but in a common chart, the value of the weekly MACD.Diff for the same instrument is 3,8.
Please, any ideas of what is wrong will be very apprecieted.
Regards,
Federico

Comment