Very simple representation of a trend, this one cumulate the candlesticks closes above and under a defined period of a simple moving average. Simple but yet effective to avoid classical whipsaw, i believe this indicator could help any trend followers in trading decision. Any comments are welcome !
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
// Parameters : // N = 30 i1 = average[N](close) IF (close>i1) THEN a = a + 1 ELSE a = a - 1 ENDIF i2 = average[N](a) RETURN a as "cumulated close over/under MA", i2 coloured(238,230,133) as "trend filter" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
“i believe this indicator could help any trend followers in trading decision. ” I’m wondering how?