Indicator which shows a rounded price and the coloured areas help to judge if the price is increasing or decreasing on short or longterm.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
p = 10 AFR = ROUND(Close / p) * p IF AFR <= AFR[1] THEN i = i + 1 AFR2 = AFR[i] ELSE i = 0 AFR2 = AFR ENDIF IF AFR >= AFR[1] THEN j = j + 1 AFR3 = AFR3[j] ELSE j = 0 AFR3 = AFR ENDIF IF AFR3 >= AFR3[1] THEN k = k + 1 AFR4 = AFR4[k] ELSE k = 0 AFR4 = AFR3 ENDIF IF AFR2 <= AFR2[1] THEN l = l + 1 AFR5 = AFR5[l] ELSE l = 0 AFR5 = AFR2 ENDIF IF AFR > AFR[1] THEN DRAWPOINT(barindex, AFR, 2)coloured(0,0,255) ENDIF IF AFR < AFR[1] THEN DRAWPOINT(barindex, AFR, 2)coloured(255,0,0) ENDIF IF AFR = AFR[1] THEN DRAWPOINT(barindex, AFR, 1)coloured(0,0,0) ENDIF RETURN Close, AFR, AFR2, AFR3, AFR4, AFR5 |
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