I'm using the MACD Up/Down indicator (downloaded from this forum) and I'd like to include the indicator's output in a custom strategy.
To check whether the histogram is green or red, am I right in thinking that I need to check if
diffArr = DiffUp =>Green Hist
diffArr = DiffDown =>Red Hist
My code looks like this:
if (MACDUpDown(12, 26, 9).diffArr[0] = MACDUpDown(12, 26, 9).DiffUp[0])
...
but I got two error messages, one telling me that "diff" isn't defined and one saying that "diffArr" can't be accessed.
Could you kindly point me in the right direction?
Thanks in advance.
Comment