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