View Full Version : refer to macd diff calc
sub5mango
07-18-2008, 01:22 AM
Hi
How do I refer to the MACD histogram / the Diff plot/calc from another indicator:
I have tried these but to no avail:
MACD(12,26,9)[0].Diff
MACD.Diff(12,26,9)[0]
Thanks in advance.
sub5mango
07-18-2008, 01:24 AM
found the answer here thanks
http://www.ninjatrader-support.com/H...deV6/MACD.html (http://www.ninjatrader-support.com/HelpGuideV6/MACD.html)
daveM
08-28-2010, 08:36 AM
I would like to use this value in a strategy (<---new to strategy building)
double value = MACD(12, 26, 9).Diff[0];
and my question is 'is the zero in the line above referring to the offset, ie bars back....?
Thanks
daveM
NinjaTrader_Brett
08-28-2010, 09:43 AM
Hello,
Thank you for your note.
Yes this is correct. 0 would be current bar and 1 here would be the previous bar, so on and so forth.
Let me know if I can be of further assistance.
daveM
08-28-2010, 12:35 PM
Thanks for your help.....!!