Canal de potencia de soporte y resistencia
Forums › ProRealTime foro Español › Soporte ProScreener › Canal de potencia de soporte y resistencia
- This topic has 4 replies, 2 voices, and was last updated 2 weeks ago by
jacquesgermain.
-
-
10/11/2025 at 8:14 AM #252466Hola Iván, me dirijo a ti puesto que fuiste quién subió el último indicador y eres un “máquina”; me gustaría un ProScreener de este indicador pero con un “arreglillo” que creo lo haría ideal para mi manera de verlo y es que en vez de señalar un punto y luego una flecha en el techo o suelo más bajo, estas señales se produjeran en una segunda cumbre o suelo a continuación de dichas cumbres o suelos, no sé si me explico, sería como avisando de una supuesta onda impulsiva o correctiva tras dichos techo o suelo que antes hubiese dibujado, que confirmarían la tendencia, (ya que a menudo dichos techos o suelos aunque avisen con puntos y flechas son violados a continuación); sería algo creo muy importante y que por fin aliviaría mis ansias por encontrar “el santo grial de los indicadores”; dejo abajo el código y a ver si hay suerte y puedes hacer que creo que sí, porque como dije al principio eres un “máquina” en el tema, te agradezco todo el trabajo que haces que seguro ayuda a mucha gente, saludos:// ———————————————–// PRC_Support and Resistance Power Channel [ChartPrime]//version = 0//07.10.2025//Iván González @ http://www.prorealcode.com//Sharing ProRealTime knowledge// ———————————————–// INPUTS// ———————————————–DEFPARAM DRAWONLASTBARONLY = truelength = 130extend = 30// COLOURStcolR = 255tcolG = 0tcolB = 255bcolR = 0bcolG = 255bcolB = 0alpha = 60// ———————————————–// CALCULATION SUPPORT AND RESISTANCE AREA// ———————————————–// ATRatr = AverageTrueRange[200] * 0.5// HIGHEST AND LOWEST PRICEmaxVal = HIGHEST[length](high)minVal = LOWEST[length](low)midVal = (maxVal + minVal) / 2// ———————————————–// DRAW SUPPORT AND RESISTANCE AREA// ———————————————–if islastbarupdate thenmaxOffset = barssince(high=maxVal)minOffset = barssince(low=minVal)// RESISTANCE AREADRAWRECTANGLE(barindex – length, maxVal + atr, barindex + extend, maxVal – atr) fillcolor(tcolR, tcolG, tcolB, alpha)COLOURED(tcolR, tcolG, tcolB,0)DRAWSEGMENT(barindex – length, maxVal + atr, barindex + extend + 30, maxVal + atr) COLOURED(tcolR, tcolG, tcolB)DRAWTEXT(“▲ #maxVal#”, barindex + extend + 10, maxVal)// SUPPORT AREADRAWRECTANGLE(barindex – length, minVal + atr, barindex + extend, minVal – atr) fillcolor(bcolR, bcolG, bcolB, alpha)COLOURED(bcolR, bcolG, bcolB, 0)DRAWSEGMENT(barindex – length, minVal – atr, barindex + extend + 30, minVal – atr) COLOURED(bcolR, bcolG, bcolB)DRAWTEXT(“▼ #minVal#”, barindex + extend + 10, minVal)// MIDDLE LINEDRAWSEGMENT(barindex – length, midVal, barindex + extend, midVal) COLOURED(128, 128, 128) STYLE(DOTTEDLINE, 1)DRAWTEXT(“▶ #midVal#”, barindex + extend + 10, midVal) COLOURED(128, 128, 128)// BUY AND SELL POWERbuyPower = 0sellPower = 0FOR i = 0 TO length – 1 DOIF close[i] > open[i] THENbuyPower = buyPower + 1ELSIF close[i] < open[i] THENsellPower = sellPower + 1ENDIFNEXTtextPosX = barindex + round(extend*0.5)DRAWTEXT(“Sell Power: #sellpower#”, textPosX, maxVal)DRAWTEXT(“Buy Power: #buypower#”, textPosX, minVal)// DRAW SUPPORT AND RESISTANCE TESTStopOfSupport = minVal + atrbottomOfResistance = maxVal – atrFOR i = 0 TO length – 1 DOIF low[i+1] <= topOfSupport AND low[i] > topOfSupport THENDRAWARROWUP(barindex – i, minval – atr*1.5) COLOURED(bcolR, bcolG, bcolB)ENDIFIF high[i+1] >= bottomOfResistance AND high[i] < bottomOfResistance THENDRAWARROWDOWN(barindex – i, maxval + 1.5*atr) COLOURED(tcolR, tcolG, tcolB)ENDIFif high[i]=maxval thendrawpoint(barindex[i],maxval,3)coloured(tcolR, tcolG, tcolB)endifif low[i]=minval thendrawpoint(barindex[i],minval,3)coloured(bcolR, bcolG, bcolB)endifNEXTendifreturn10/11/2025 at 9:56 AM #252469
Hola de nuevo, he estado dándole vueltas a la cabeza con el tema y puede que no sea tan simple de hacer como te lo he expuesto, porque pienso en lo siguiente: Y como se sabe cuál es la segunda cumbre más baja o suelo!?, ya que si en un gráfico, este se ampliara, pueden aparecer nuevos picos o suelos más altos o bajos… por eso pensando creo que la solución podría estar en un ProScreener que me hiciste hace unos meses, te pedí que me avisara cuando se diera un CHoCH bajista o alcista del indicador Smart Money Concepts:
//——————————————————————————–////Screener_Smart Money Concepts//version = 1//29.07.2024//Iván González @ http://www.prorealcode.com//Sharing ProRealTime knowledge//——————————————————————————–////—–Inputs———————————————————————//length=50showbull=3//1=all 2=bos 3=CHoCHshowbear=3//1=all 2=bos 3=CHoCH//——————————————————————————–////—–Swings———————————————————————////—Swing lengthos=0upper=highest[length](high)lower=lowest[length](low)if high[length]>upper thenos=0elsif low[length]<lower thenos=1elseos=os[1]endifif os=0 and os[1]<>0 thenmytop=high[length]elsemytop=0endifif os=1 and os[1]<>1 thenmybot=low[length]elsemybot=0endif//——————————————————————————–////—–Pivot High—————————————————————–//if mytop thentopcross=1topy=mytopendif//——————————————————————————–////—–Pivot Low——————————————————————//if mybot thenbotcross=1boty=mybotendif//Detect bullish StructuresignalLong=0if close crosses over topy and topcross thenchoch=undefinedif trend<0 thenchoch=1endifif showbull=1 or (showbull=2 and not choch) or (showbull=3 and choch) thensignalLong=1endiftopcross=0trend=1endif//Detect Bullish Strcuturesignalshort=0if close crosses under boty and botcross thenchoch=undefinedif trend>0 thenchoch=1endifif showbear=1 or (showbear=2 and not choch) or (showbear=3 and choch) thensignalshort=1endifbotcross=0trend=–1endifscreener[signalLong or signalShort](signalLong as “long”,signalShort as “short”)Por eso el ProScreener que te voy a pedir sería que tras un CHoCH alcista o bajista viniera el punto y flecha del indicador que te indiqué al principio de la petición, espero no te haya resultado muy liosa la explicación, saludos.10/11/2025 at 10:06 AM #252470Y quiero recalcar, que la flecha alcista sólo avise cuando el CHoCH es alcista o flecha bajista con CHoCH bajista; sé que puedo parecer un poco pesado, pero es que creo que esta sea una de las mejores formas de poder encontrar la famosa 3º onda de Elliot.
10/11/2025 at 12:27 PM #252480Buenas de nuevo Iván, sé que es fin de semana y por eso mismo ni tan siquiera creo hayas leído ninguno de los mensajes que he escrito (mejor), porque de lo que te pido veo puede ser muy engorroso y por eso te pido simplemente que el ProScreener avise cuando se dé la flecha en cuestión, ya veré como sacarle la mejoría pensando en como hacerlo, gracias y disculpa los varios post, saludos.
10/11/2025 at 6:43 PM #252490 -
AuthorPosts
Find exclusive trading pro-tools on 