Hi,
I'm trying to write code for the Percent Price Oscillator...
The algorithm for this code:
Value1 = (EMA(Close, Length1) - EMA(Close, Length2)/EMA(Close, Length1); //PPO
Value2 = EMA(Value1,Length); //Signal Line
Value3 = (Value1 - Value2); //PPO-histogram
Return (Value2, Value3);
I have a problem with Value2... I don't know how to compute EMA on Value1...
Could anyone help me?
Thank you.
I'm trying to write code for the Percent Price Oscillator...
The algorithm for this code:
Value1 = (EMA(Close, Length1) - EMA(Close, Length2)/EMA(Close, Length1); //PPO
Value2 = EMA(Value1,Length); //Signal Line
Value3 = (Value1 - Value2); //PPO-histogram
Return (Value2, Value3);
I have a problem with Value2... I don't know how to compute EMA on Value1...
Could anyone help me?
Thank you.
Comment