The TrendRisk bands indicator is a simple channel indicator made of 2 custom averages of candlesticks ranges calculated within the variable “BandsBars” period.
Upper and lower channel bands width can be adjusted with the “Deviation” variable, which act as a simple factor to enlarge the spread between them.
- When Close crosses over the upper band, it is a bullish signal and candlesticks are painted in green
- When Close crosses under the lower band, it’s a bearish signal and candlesticks are painted in red
Indicator converted from MT4 version by a request on the french forum.
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 |
//PRC_Trend Risk indicator | indicator //29.05.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //translated from MT4 code // --- settings //BandsBars=28 //Deviation=3.5 // --- end of settings once SmoothPrice=close once SmoothRange=range if barindex>1 then SmoothPrice=(SmoothPrice[1]*(BandsBars-1)+Close)/BandsBars SmoothRange=(SmoothRange[1]*(BandsBars-1)+High-Low)/BandsBars Top=SmoothPrice+SmoothRange*Deviation Bottom=SmoothPrice-SmoothRange*Deviation endif T=1 D=1 N=1 if (Close< Top) then T=0 endif if (Close> Bottom ) then D=0 endif if ( Close < Bottom or Close> Top ) then N=0 endif if (T= 1) then r=0 g=255 b=0 endif if (D= 1) then r=255 g=0 b=0 endif if (N= 1) then r=150 g=150 b=150 endif DRAWCANDLE(open,high,low,close)coloured(r,g,b) RETURN Top as "Top channel", Bottom as "Bottom channel" |
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
Gracias Nicolas , muy buen indicador , excelente para hacer sistemas, muy buenos resultados, de por si todos sus indicadores son los mejores.
cordial saludo NICOLAS , gracias por excelente indicador. ¿ es posible obtenerlo en MT4 ? Lo tienes ?
Gracias
diego
Lo siento, pero no estoy trabajando para ayudar a la gente aquí de forma gratuita para promover otro software …
Nicolas , gracias por tu atención. La pregunta era por curiosidad (yo no trabajo ni manejo MT4),: siempre he tenido muy claro y he respetado el trabajo de las demás personas , especialmente el tuyo el cual considero muy bueno, por eso mismo en mi pregunta nunca mencioné la palabra gratuita.