First of all I wanted to say that Ninja is both a great site and great software too.
I'm a novice to programming and have a question
I want to take the basic MACD but use it through a linear regression format on a different timescale.
so I start with (LinReg(MACD(12, 26, 9).Avg, 14)[0] > 0)
I can't seem to figure out where to put the BarsArray syntax. Any ideas?
I tried it like this but it doesn't work :
(LinReg(BarsArray[1](MACD(12, 26, 9).Avg, 14))[0] > 0)
I appreciate any help.

Comment