hello all,
I am using
Q = 10;
EE = (EMA (c,q) + EMA (O,q))/2 ;
Plot (EE,"EE",IIf(EE <= Ref(EE,-1),colorYellow,colorRed), styleThick);
and getting this
http://tinypic.com/r/117g3d4/8
even in uptrend its giving mixed colors when EE = ref(ee,-1)
how to make it look like this ...
http://www.alphametrix.in/images/learning-img4.jpg
can some one help
I am using
Q = 10;
EE = (EMA (c,q) + EMA (O,q))/2 ;
Plot (EE,"EE",IIf(EE <= Ref(EE,-1),colorYellow,colorRed), styleThick);
and getting this
http://tinypic.com/r/117g3d4/8
even in uptrend its giving mixed colors when EE = ref(ee,-1)
how to make it look like this ...
http://www.alphametrix.in/images/learning-img4.jpg
can some one help
The picture surely not the 10 period but your formula given is 10 period.
Your formula can be re-written as follow:
Q = 10;
EE = EMA ((c+o)/2,q);
Plot (EE,"EE",IIf(EE <= Ref(EE,-1),colorYellow,colorRed), styleThick);
The color did follow what you had written:
When the current bar EMA value is LESS THAN or EQUAL TO previous bar EMA value, then
plot Yellow color
ELSE
the current bar EMA value is GREATER THEN previous bar EMA value, then
plot RED color
So even so your 1st picture not given the right period, but the logic still follow above very well.
So where did you see "even in uptrend its giving mixed colors when EE = ref(ee,-1)"
Last edited: