PureBytes Links
Trading Reference Links
|
There is an EMA function. It is called XAverage.
Try:
Input: Price(Close), Length(9);
Vars: Avg(Price);
Avg = XAverage(Price, Length);
if Avg > Avg[1] then Plot1(Avg, "1") else
if Avg < Avg[1] then Plot2(Avg, "2") else
Plot3(Avg, "3");
You can select whatever colors you want for the three plots.
(You can also set the colors in code if you want.)
Bob Fulks
------------------------------------
At 10:40 AM 5/14/2005, Ben wrote:
>What would the code be for :
>
>Showme
>
>if ema [0] = [1] plot yellow
>if ema [0] > [1] plot red
>if ema [0] > [1] plot green
>
>There's no ema function, so that must be add'd ???
|