This indicator shows a trend band of the price with variable indicator parameters to control the bandwidth.
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 |
p = 5 //percent bandwidth q = 3 //channel percent bandwidth MyHigh = close + close * p/100 MyLow = close - close * p/100 ONCE AFR = close IF MyLow > AFR THEN AFR = MyLow ENDIF IF MyHigh < AFR THEN AFR = MyHigh ENDIF IF AFR = AFR[1] THEN r=0 g=0 b=0 ELSIF AFR > AFR[1] THEN r=0 g=153 b=255 ELSE r=255 g=0 b=255 ENDIF IF close > AFR THEN DRAWSEGMENT(barindex, high, barindex, low) coloured(0,0,255) DRAWPOINT(barindex, close, 1) coloured(0,0,255) ELSE DRAWSEGMENT(barindex, high, barindex, low) coloured(255,0,255) DRAWPOINT(barindex, close, 1)coloured(255,0,255) ENDIF RETURN close, AFR, AFR + AFR * q/100, AFR - AFR * q/100 |
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