This indicator uses candlestick configurations to output multiple results.
It calculates according to the body and wicks of the candle their meaning, e.g. a small bullish body with a large high wick indicates an effort of the salesman on the candle in the yard, etc…
All the configurations are given on the “Trend Action” histogram.
With the results, the indicator makes a mean calculation based on the hull method and a standard deviation to give the cloud.
the cloud is composed of two lines, UP which translates the buying power of the last 9/26/52 period and DW which translates the selling power of the same period, the cloud then gives the dominant meaning
In the cloud, a line named force and calculate on UP + DW / 2, in this way, the line becomes green when the opponent becomes dominant and red when the take is undecided for the direction
It is therefore added on the price another indicator to see the information given on the price directly.
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 |
// //============================== Trend Haussier //Configuration haussière if close > open then UValeur1 = 0 + (close-open) DValeur1 = 0 UValeur2 = UValeur1 + (open-low) DValeur2 = 0 DValeur3 = 0 - (high-close) UValeur3 = 0 XValeur1 = 0 XValeur2 = 0 endif //Valeur Absolue Haussière VHAbsolu = 0 + (UValeur1+UValeur2+UValeur3+XValeur1) HMM1 = 2*WeightedAverage[round(20/2)](VHAbsolu) - WeightedAverage[20](VHAbsolu) HMM = WeightedAverage[round(SQRT(20))](HMM1) UP1 = HMM+STD[9]*1 UP2 = HMM+STD[26]*1 UP3 = HMM+STD[52]*1 UP = (UP1+UP2+UP3)/3 //============================== Trend Baissier //Configuration baissière if close < open then DValeur1 = 0 - (open-close) UValeur1 = 0 DValeur2 = DValeur1 - (high-open) UValeur2 = 0 UValeur3 = 0 + (close-low) DValeur3 = 0 XValeur1 = 0 XValeur2 = 0 endif //Valeur Absolue Baissière VBAbsolu = 0 - (DValeur1+DValeur2+DValeur3+XValeur2) BMM1 = 2*WeightedAverage[round(20/2)](VBAbsolu) - WeightedAverage[20](VBAbsolu) BMM = WeightedAverage[round(SQRT(20))](BMM1) BP1 = BMM+STD[9]*1 BP2 = BMM+STD[26]*1 BP3 = BMM+STD[52]*1 DW = (BP1+BP2+BP3)/3 //============================== Trend Neutre //Configuration Neutre if close = open then XValeur1 = 0 + (high-open) XValeur2 = 0 - (open-low) UValeur1 = 0 UValeur2 = 0 DValeur1 = 0 DValeur2 = 0 endif //============================== Calcul Secondaire //Nuage du Trend if UP > DW then drawcandle (DW,UP,DW,UP) coloured (36,147,219,90) elsif UP < DW then drawcandle (DW,UP,DW,UP) coloured (101,101,101,90) endif //Force du Trend Force = (UP+DW)/2 if Force > Force[1] then R = 8 G = 126 B = 22 elsif Force < Force[1] then R = 162 G = 8 B = 8 endif //============================== Fin return XValeur1 coloured (36,147,219,50) style (histogram,1) as "XValeur1" , XValeur2 coloured (101,101,101,50) style (histogram,1) as "XValeur2" , UValeur1 coloured (36,147,219) style (histogram,1) as "UValeur1" , DValeur1 coloured (101,101,101) style (histogram,1) as "UValeur1" , UValeur2 coloured (36,147,219,50) style (histogram,1) as "UValeur2" , DValeur2 coloured (101,101,101,50) style (histogram,1) as "UValeur2" , UValeur3 coloured (36,147,219,50) style (histogram,1) as "UValeur3" , DValeur3 coloured (101,101,101,50) style (histogram,1) as "UValeur3" , Force coloured (R,G,B) style (line,2) as "Force" |
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 |
// //============================== Trend Haussier //Configuration haussière if close > open then UValeur1 = 0 + (close-open) DValeur1 = 0 UValeur2 = UValeur1 + (open-low) DValeur2 = 0 DValeur3 = 0 - (high-close) UValeur3 = 0 XValeur1 = 0 XValeur2 = 0 endif //Valeur Absolue Haussière VHAbsolu = 0 + (UValeur1+UValeur2+UValeur3+XValeur1) HMM1 = 2*WeightedAverage[round(20/2)](VHAbsolu) - WeightedAverage[20](VHAbsolu) HMM = WeightedAverage[round(SQRT(20))](HMM1) UP1 = HMM+STD[9]*1 UP2 = HMM+STD[26]*1 UP3 = HMM+STD[52]*1 UP = (UP1+UP2+UP3)/3 //============================== Trend Baissier //Configuration baissière if close < open then DValeur1 = 0 - (open-close) UValeur1 = 0 DValeur2 = DValeur1 - (high-open) UValeur2 = 0 UValeur3 = 0 + (close-low) DValeur3 = 0 XValeur1 = 0 XValeur2 = 0 endif //Valeur Absolue Baissière VBAbsolu = 0 - (DValeur1+DValeur2+DValeur3+XValeur2) BMM1 = 2*WeightedAverage[round(20/2)](VBAbsolu) - WeightedAverage[20](VBAbsolu) BMM = WeightedAverage[round(SQRT(20))](BMM1) BP1 = BMM+STD[9]*1 BP2 = BMM+STD[26]*1 BP3 = BMM+STD[52]*1 DW = (BP1+BP2+BP3)/3 //============================== Trend Neutre //Configuration Neutre if close = open then XValeur1 = 0 + (high-open) XValeur2 = 0 - (open-low) UValeur1 = 0 UValeur2 = 0 DValeur1 = 0 DValeur2 = 0 endif //============================== Calcul Secondaire if barindex>1 then haclose=(open+close+low+high)/4 haopen=(haopen[1]+haclose[1])/2 endif //Force du Trend Force = (UP+DW)/2 if Force > Force[1] then ST = 1 elsif Force < Force[1] then ST = 0 endif //Up U1 = haclose => haopen and UP > DW U2 = ST = 1 if U1 and U2 then signalU = 1 else signalU = 0 endif //Up XU1 = close => open and UP > DW XU2 = ST = 1 if XU1 and XU2 then XsignalU = 1 else XsignalU = 0 endif if signalU = 1 and Heinkin then drawcandle(haopen,high,low,haclose)coloured(36,147,219) endif if XsignalU = 1 and Chandelier then drawcandle(open,high,low,close)coloured(36,147,219) endif //Down D1 = haclose =< haopen and DW > UP D2 = ST = 1 if D1 and D2 then signalD = 1 else signalD = 0 endif //Down XD1 = close =< open and DW > UP XD2 = ST = 1 if XD1 and XD2 then XsignalD = 1 else XsignalD = 0 endif if signalD = 1 and Heinkin then drawcandle(haopen,high,low,haclose)coloured(101,101,101) endif if XsignalD = 1 and Chandelier then drawcandle(open,high,low,close)coloured(101,101,101) endif //============================== Fin 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 :
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
Thank you! Great work
V2 is coming
is this code working for on tradingview plartform?
No. All our codes are made to be used with ProRealTime trading platform: https://www.prorealtime.com