Moving Average - Stochastic.
Denzel:
Hello everybody,
I'm trying to add a moving average to stochastic.
Graphically is quite simple, I just need to drag the MA from navigator list to the Stoch window BUT...
I was looking to do that coding and I'm not so good at that.
Given that when I do that dragging it, I need to select "Previous Indicator's data"
I tried with this:
But It doesn't work...
You need to read up on iMAOnArray() in the documentation and search the Forum . . .
Hello everybody,
I'm trying to add a moving average to stochastic.
Graphically is quite simple, I just need to drag the MA from navigator list to the Stoch window BUT...
I was looking to do that coding and I'm not so good at that.
Given that when I do that dragging it, I need to select "Previous Indicator's data"
I tried with this:
MA=iMA(NULL,0,14,0,MODE_SMA,K_1,0);
where K_1 = %K previous bar (at least in my mind)
K_1 = iStochastic(NULL,0,14,3,3,MODE_SMA,0,MODE_MAIN, 1);
But It doesn't work...
Thank you Raptor
I'm trying to add a moving average to stochastic.
Graphically is quite simple, I just need to drag the MA from navigator list to the Stoch window BUT...
I was looking to do that coding and I'm not so good at that.
Given that when I do that dragging it, I need to select "Previous Indicator's data"
I tried with this:
MA=iMA(NULL,0,14,0,MODE_SMA,K_1,0);
where K_1 = %K previous bar (at least in my mind)
K_1 = iStochastic(NULL,0,14,3,3,MODE_SMA,0,MODE_MAIN, 1);
But It doesn't work...
Any help??
Thanks a lot