I present this new “Dynamic Indicator”.
Aesthetics is in the form of a histogram for more simplicity, it is as useful as my last indicator “Volatility and Amplitude“.
Using a range indicator, Dynamic Indicator is able to calculate price volatility and the amplitude of a movement.If the amplitude is less than the volatility, then the indicator detects a non-dynamic phase, these phases are represented by the red candlesticks.
Conversely, if the amplitude is good, then the indicator returns a green candlestick.
The current setting is fine, I use this indicator on three different timeframes to avoid using too high volatility parameters and miss the start of opportunities.
I find that in this form it gives its full potential.However, as an external variable, you can change the volatility parameters.
The rectangles were drawn manually to image the information of the indicator on the three temporalities.
To sum up, it is not advisable to take opportunities in non-directional phases.
IV
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
// //=/===============/=//=/===============/=//=/ Management // Value = 0.45 // //=/===============/=//=/===============/=//=/ Range Fast // once FxRRange=close Fxscale = 2.338*average[14,1](abs(close-close[1])) FxR = average[27,1](FxScale) FxHH = close FxLL = close if FxHH > FxRRange[1] then if (FxHH-FxR) < FxRRange[1] then FxRRange = FxRRange[1] else FxRRange = (FxHH-FxR) endif elsif (FxLL+FxR) > FxRRange[1] then FxRRange = FxRRange[1] else FxRRange = (FxLL+FxR) endif FxTrend = FxRRange FxURange = FxRRange + FxR FxDRange = FxRRange - FxR // //=/===============/=//=/===============/=//=/ Range Low // once LxRRange=close LxR = 2.338*average[14,1](abs(close-close[1])) LxHH = high LxLL = low if LxHH > LxRRange[1] then if (LxHH-LxR) < LxRRange[1] then LxRRange = LxRRange[1] else LxRRange = (LxHH-LxR) endif elsif (LxLL+LxR) > LxRRange[1] then LxRRange = LxRRange[1] else LxRRange = (LxLL+LxR) endif LxTrend = LxRRange LxURange = LxRRange + LxR LxDRange = LxRRange - LxR // //=/===============/=//=/===============/=//=/ Trend Line // //=/ Trend Line TLr = (FxTrend+LxTrend)/2 AvTrD1 = (TLr+TLr[1])/2 AvTrD2 = (AvTrD1-TLr)/15 TrDL = AvTrD1-AvTrD2 //=/ Up Range XURange = ((FxURange+LxURange)/2) //=/ Dw Range XDRange = ((FxDRange+LxDRange)/2) // //=/===============/=//=/===============/=//=/ Volatility & Amplitude Settings // //=/ Decompte Haussier UAmp = 0 if close > TrDL then UAmp = UAmp[1]+1 endif //=/ Decompte Baissier DAmp = 0 if close < TrDL then DAmp = DAmp[1]+1 endif //=/ Decompte Global Amp = UAmp+DAmp if Amp < Amp[1]-1 then Amp = Amp[Amp]-Amp endif VRange = 0 if TrDL = TrDL[1] then VRange = VRange[1]+1 endif //=/ Decompte Amplitude OAmp = (Amp-VRange)-VRange if OAmp < 0 then OAmp = 0 endif if OAmp < OAmp[1]-1 then OAmp = OAmp[1]-1 endif if OAmp > OAmp[1]+1 then OAmp = OAmp[1]+1 endif //=/ Decompte final if VRange > OAmp then OAmp = VRange endif P = round(OAmp) //=/ Volatility Volatilite = ((XURange*Value)-(XDRange*Value)) //=/ Amplitude if close > open then XLow = open XHigh = close elsif close < open then XLow = close XHigh = open endif if close > TrDL then Amplitude = close-Lowest[P](Xlow) elsif close < TrdL then Amplitude = Highest[P](Xhigh)-close endif // //=/===============/=//=/===============/=//=/ Color // if Amplitude > Volatilite then HXAmp = 1 BXAmp = 0 elsif Amplitude < Volatilite then BXAmp = 0.5 HXAmp = 0 endif drawcandle(BXAmp,HXAmp,BXAmp,HXAmp) return |
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