[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EMA



PureBytes Links

Trading Reference Links

Inputs: Series(high+low), length(28), HiLevel(60), LoLevel(40) ;
var:dir(0);
value1 = your EMA function ( Series, length ) ;

dir= value1-value1[1];



if dir<0 and value1>Hilevel then setplotcolor[1](1,red);
if dir<0 and value1 < Hilevel then setplotcolor[1](1,yellow);
if dir<0 and value1 < Lolevel then setplotcolor[1](1,darkred);

if dir>0 and value1<Lolevel then setplotcolor[1](1,green);
if dir>0 and value1 > Lolevel then setplotcolor[1](1,yellow);
if dir>0 and value1 > Hilevel then setplotcolor[1](1,darkgreen);


plot1 (value1, "JRC RSX") ;
plot2 ( HiLevel , "") ;
plot3 ( LoLevel , "") ;


----- Original Message ----- 
From: "Ben" <balex@xxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Saturday, May 14, 2005 09:40
Subject: EMA


> 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 ???
> 
> THANKS



-- 


  • References:
    • EMA
      • From: Ben