This indicator is based on adjustable artificial high and low values. The average filter regression is a kind of smoothed path between the price movements particular at higher percentages of high and low
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 |
p = 10 percentage = p/100 MyHigh = close + close * percentage MyLow = close - close * percentage ONCE AFR = medianprice IF MyLow > AFR THEN AFR = MyLow ENDIF IF MyHigh < AFR THEN AFR = MyHigh ENDIF IF Close > AFR THEN DRAWPOINT(barindex, close, 1)coloured(0,51,255) DRAWSEGMENT(barindex, high, barindex, low)coloured(0,0,255) ELSE DRAWPOINT(barindex, close, 1)coloured(251,0,255) DRAWSEGMENT(barindex, high, barindex, low)coloured(255,0,255) ENDIF RETURN Close, AFR |
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