CONVERSION INDICADOR TRADINGVIEW
Forums › ProRealTime foro Español › Soporte ProBuilder › CONVERSION INDICADOR TRADINGVIEW
- This topic has 2 replies, 2 voices, and was last updated 7 months ago by sanchota.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
04/10/2024 at 4:19 PM #231360
¿Sería posible convertir este indicador a Prorrealtime?
https://www.tradingview.com/script/fpWwOup4-Reversal-and-Breakout-Signals-AlgoAlpha/
Muchas gracias.
04/11/2024 at 11:06 AM #231401Hola
Aquí tienes el código:
https://www.prorealcode.com/prorealtime-indicators/reversal-breakout-signals-indicator/12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697//----------------------------------------------------------------------////PRC_Reversal&Breakout Signals//version = 0//11.04.24//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------------------------------////-----Inputs-----------------------------------------------------------//len=20//Indicator periodvlen=20//Volume Strength periodthreshold=1.5//Stong Volume Thresholdtrnd=1//Colour Candles During Trends//----------------------------------------------------------------------////-----Hull moving average----------------------------------------------//hma=hullaverage[30](close)//----------------------------------------------------------------------////-----Volume conditions------------------------------------------------//rvol=volume/average[vlen](volume)strongvol=rvol>threshold//----------------------------------------------------------------------////-----Weighted moving average------------------------------------------//sh=weightedaverage[len](high)sl=weightedaverage[len](low)//----------------------------------------------------------------------////-----Channel----------------------------------------------------------//ch=highest[len](sh)cl=lowest[len](sl)//----------------------------------------------------------------------////-----High and Low Levels definition-----------------------------------//if not (ch<ch[1] or ch>ch[1]) thenhstore=ch[1]elsif not (cl<cl[1] or cl>cl[1]) thenlstore=cl[1]endifmidline=(hstore+lstore)/2//----------------------------------------------------------------------////-----Candle direction-------------------------------------------------//if close > open thencandledir = 1elsecandledir = -1endif//----------------------------------------------------------------------////-----Breaks and Reversals Definition---------------------------------//breakout=candledir and close>hstore and open<hstorebreakdown=candledir=-1 and close<lstore and open>lstore//-----Bullish BreakOutbullishbreakout= (breakout or ((breakout[1] or breakout[2] or breakout[3] or breakout[4]) and candledir = 1)) and strongvol and not (bullishbreakout[1] or bullishbreakout[2] or bullishbreakout[3])//-----Bearish BreakOutbearishbreakout = (breakdown or ((breakdown[1] or breakdown[2] or breakdown[3] or breakdown[4]) and candledir = -1)) and strongvol and not (bearishbreakout[1] or bearishbreakout[2] or bearishbreakout[3])//-----Bullish Reversalbullishrej = (low < lstore and close > lstore) and not (bullishrej[1] or bullishrej[2] or bullishrej[3] or bullishrej[4])//-----Bearish Reversalbearishrej = (high > hstore and close < hstore) and not (bearishrej[1] or bearishrej[2] or bearishrej[3] or bearishrej[4])//-----Trend Statusif bullishbreakout thenstate=1elsif bearishbreakout thenstate=-1elsif (low crosses over lstore and state=-1) or (high crosses under hstore and state=1) thenstate=0endif//------------------------------------------------------------------------////-----Plot Trend Tracker and color Candles-------------------------------//if state=-1 thenTrendTracker=hmadrawpoint(barindex,TrendTracker,1)coloured("red")if trnd thenDRAWCANDLE(open, high, low, close)coloured("red")endifelsif state=1 thenTrendTracker=hmadrawpoint(barindex,TrendTracker,1)coloured("green")if trnd thenDRAWCANDLE(open, high, low, close)coloured("green")endifelseTrendTracker=0endif//------------------------------------------------------------------------////-----Show Bullish and Bearish Reversals---------------------------------//if bullishrej and not (state=-1) thendrawtext("▲",barindex,low-0.25*tr)coloured("green")elsif bearishrej and not (state=1) thendrawtext("▼",barindex,high+0.25*tr)coloured("red")endif//------------------------------------------------------------------------////-----Show Bullish and Bearish Breakouts---------------------------------//if bullishbreakout thendrawtext("♦",barindex,low-0.25*tr)coloured("yellow")DRAWCANDLE(open, high, low, close)coloured("yellow")elsif bearishbreakout thendrawtext("♦",barindex,high+0.25*tr)coloured("yellow")DRAWCANDLE(open, high, low, close)coloured("yellow")endif//----------------------------------------------------------------------//return hstore as "Upper Level" coloured("red",50)style(line,2), lstore as "Lower Level" coloured("green",50)style(line,2), midline as "Midline"coloured("grey",50)04/11/2024 at 12:24 PM #231407 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
Find exclusive trading pro-tools on
Similar topics: