Hi all,
Here is a code from one of the visitors of my website : “Winnie37”.
He asked me to make a code of Fibonacci Bands with ATR, but I didn’t have the time to create it within the week, and I didn’t knew the formula.
So he coded it himself (congratulations !), and allowed me to publish it.
Here it is, simple and effective.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
period = 20 // à changer selon convenance indicator1 = ExponentialAverage[period](close) indicator2 = AverageTrueRange[period](close) INDICATOR3= INDICATOR2*4.23 INDICATOR4=INDICATOR2*2.62 INDICATOR5=INDICATOR2*1.62 INDICATOR6=INDICATOR2*1 upperBand4 = INDICATOR1 + INDICATOR3 upperBand3 = INDICATOR1 + INDICATOR4 upperBand2 = INDICATOR1 + INDICATOR5 upperBand1 = INDICATOR1 + INDICATOR6 lowerBand4 = INDICATOR1 - INDICATOR3 lowerBand3 = INDICATOR1 - INDICATOR4 lowerBand2 = INDICATOR1 - INDICATOR5 lowerBand1 = INDICATOR1 - INDICATOR6 RETURN upperBand4 coloured(0,0,0),upperBand3 coloured(255,0,255),upperBand2 coloured(255,153,0),upperBand1 coloured(255,255,0),lowerBand4 coloured(0,0,0),lowerBand3 coloured(255,0,255),lowerBand2 coloured(255,153,0),lowerBand1 coloured(255,255,0) |
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
La periode de la moyenne et de l’ATR est identique (20), est ce normal ? un ATR standart tourne autour de 12 il me semble
un avis ?
A chacun de définir les périodes de son choix.
I downloaded this but will only open in a separate window. Can anyone explain how to show on the main chart as illustrated?
Use the wrench of the price chart! Upper left of the window
The wrench shows options for the components of the indicator not how to show in the main chart window. Don’t understand Nicolas.
http://www.prorealcode.com/topic/overlapping-indicators/