Would appreciate some urgent help with the below. I just cannot get the script to compile successfully and despite looking at the help etc I still cannot resolve what the problem is.
I want an x period EMA of
(Open[0]+High[0]+Low[0]+Close[0])/4
now when I use the above as a plot in another indicator it works fine.
I also have my own version of x period EMA of closing price that I have colour coded for rising, falling - it works fine.
I am trying to create an x period EMA of (Open[0]+High[0]+Low[0]+Close[0])/4 and I just cannot come up with code that will pass the compiler.
Here is code that works:
Value.Set(EMA(Close,myInput0) [0]); // works fine with O, H, L or C
I want to replace Close with (Open+High+Low+Close)/4
Totally stumped.
Comment