Fisher indicator on positive / negative green / red histogram or colors to choose.
Variable p can be modified from properties
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 50 51 52 53 54 55 56 57 |
// variable p = 89 //Fisher indicator en histograma verde/rojo positivo/negativo o colores a elegir. //variable p puede modificarse desde propiedades Once period = p Once priceSmoothing = 0.3 Once indexSmoothing = 0.3 cero = 0 lowestLow = Lowest[period](Low) highestHigh = Highest[period](High) periodRange = highestHigh - lowestLow midPrice = (High + Low) / 2 priceLocation = 2.0 * ((midPrice - lowestLow) / periodRange) - 1.0 If smoothedLocation[1] then smoothedLocation = priceSmoothing*smoothedLocation[1] + (1.0 - priceSmoothing)*priceLocation Else smoothedLocation = (1.0 - priceSmoothing)*priceLocation Endif If smoothedLocation > 0.99 then smoothedLocation = 0.99 Elsif smoothedLocation < -0.99 then smoothedLocation = -0.99 Endif fishIndex = Log((1+smoothedLocation)/(1-smoothedLocation)) If smoothedFish[1] then smoothedFish = indexSmoothing*smoothedFish[1] + (1.0 - indexSmoothing)*fishIndex Else smoothedFish = (1.0 - indexSmoothing)*fishIndex Endif Return smoothedFish as "Fisher Index", cero |
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