Alex,

This is what I do,...  there may be a better way,...

A1:=IF CLOSE > SMA(5);
B1:=IF CLOSE < SMA(5);
C1:=IF CLOSE > SMA(10);
D1:=IF CLOSE < SMA(10); ,....

SUM:= A1-B1+2*C1-2*D1 ,.....

MOV(SUM,10,S)

-- Bill

==================================


----- Original Message ----- 
From: Alex Spiroglou [email protected] [equismetastock]
To: [email protected]
Sent: Friday, June 27, 2014 6:08 AM
Subject: [EquisMetaStock Group] MA Indicator



Dear listmembers,

I am trying to create the following indicator.

Would anyone be able to help me code it please ?

I think it should be fairly quick..


thank you so much in advance
Alex


P.S.

1) IF CLOSE > SMA(5) -> assign 1 point
   IF CLOSE < SMA(5) -> assign -1 point

2) IF CLOSE > SMA(10) -> assign 2 points
   IF CLOSE < SMA(10) -> assign - 2 points

3) IF CLOSE > SMA(15) -> assign 3 points
    IF CLOSE < SMA(15) -> assign -3 points


4) IF SMA(5) > SMA(5) 3 days ago -> assign 1 points
    IF SMA(5) < SMA(5) 3 days ago -> assign -1 points

5) IF SMA(10) > SMA(10) 3 days ago -> assign 2 points
    IF SMA(10) < SMA(10) 3 days ago -> assign -2 points

6) IF SMA(15) > SMA(15) 3 days ago -> assign 3 points
    IF SMA(15) < SMA(15) 3 days ago -> assign -3 points

7) IF SMA(5) > SMA(10)  -> assign 1 points
    IF SMA(5) < SMA(10) -> assign -1 points

8) IF SMA(10) > SMA(15)  -> assign 1 points
    IF SMA(10) < SMA(15) -> assign -1 points


9) Indicator 1 = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8

   Indicator 2 = 10 day movin total of indicator 1





 

Reply via email to