I have written this kind of indicator for the first time in july 2015, first as an oscillator, later as an indicator on the graph. Its the basic of my avatar.
It uses a triangular moving average of periods 2 applied on the average of the last “n” median price. If the slope is ascending, it plots blue arrows and yellow arrows when the slope of the TMA is descending.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
// settings n = 20 // --- HL=(high+low)/2 Sum=(summation[n](HL))/n cog=TriangularAverage[2](sum) if cog > cog[1] then DRAWARROWUP(barindex, cog-0.25*AverageTrueRange[14](close))coloured(0,125,175,255) elsif cog < cog[1] then DRAWARROWDOWN(barindex, cog+0.25*AverageTrueRange[14](close))coloured(255,205,0,255) endif return cog |
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials