Traducción de indicador "WRBHG" a PRT
Forums › ProRealTime foro Español › Soporte ProBuilder › Traducción de indicador "WRBHG" a PRT
- This topic has 6 replies, 2 voices, and was last updated 7 years ago by
Nicolas.
-
-
09/04/2018 at 5:44 PM #79776
Hola, alguien puede traducir el código?
Lo he sacado de aquí:
https://www.tradingview.com/script/UIOunhsx-WRBHG/Gracias
estudio (“WRBHG”, superposición = verdadero)
cuerpo = abs (abrir-cerrar)
wrb = cuerpo> cuerpo [1] y cuerpo> cuerpo [2] y cuerpo> cuerpo [3]? avg (abrir, cerrar): na
hg = (wrb [1] y (bajo> alto [2] o alto <bajo [2]))? wrb [1]: na
plot (hg, title = ‘HG’, linewidth = 4, color = black, offset = -1, style = circles)
plot(wrb, title=’WRB’, linewidth=2, color=aqua, style=circles)09/05/2018 at 12:17 PM #79808Usted tradujo el código al español, ¿por qué?
Agregue capturas de pantalla la próxima vez que solicite una traducción de indicador, como ya le pregunté cada vez que realiza una solicitud de traducción de codificación 🙂 Por favor …
Copie / pegue el código en su idioma original de codificación, no en español. Gracias.
09/05/2018 at 12:28 PM #79812123456study("WRBHG", overlay=true)body = abs(open-close)wrb = body>body[1] and body>body[2] and body>body[3] ? avg(open,close) : nahg = (wrb[1] and (low>high[2] or high<low[2]))? wrb[1] : naplot(hg, title='HG', linewidth=4, color=black, offset=-1, style=circles)plot(wrb, title='WRB', linewidth=2, color=aqua, style=circles)Disculpe Nicolás,el traductor de google es automático y por eso se traducen los códigos………….
09/05/2018 at 5:11 PM #79821Por favor prueba este código:
1234567891011body = abs(open-close)if body>body[1] and body>body[2] and body>body[3] thenwrb = (open+close)/2drawtext("●",barindex,wrb,dialog,bold,20) coloured(100,100,100)endifif (wrb[1] and (low>high[2] or high<low[2])) thenhq = wrb[1]drawtext("●",barindex,hq,dialog,bold,14) coloured(0,255,255)endifreturn09/05/2018 at 8:53 PM #7983409/06/2018 at 7:34 AM #79852Hay algo mal con la condición booleana y no sé por qué. De todos modos, esta versión es completamente funcional:
12345678910111213body = abs(open-close)if body>body[1] and body>body[2] and body>body[3] thenwrb = (open+close)/2drawtext("●",barindex,wrb,dialog,bold,20) coloured(100,100,100)elsewrb=0endifif (wrb[1]>0 and (low>high[2] or high<low[2])) thenhq = wrb[1]drawtext("●",barindex[1],hq,dialog,bold,10) coloured(0,255,255)endifreturn (wrb[1]>0 and (low>high[2] or high<low[2]))09/06/2018 at 8:00 AM #79863Agregado a nuestra biblioteca de códigos para futura referencia:
-
AuthorPosts
Find exclusive trading pro-tools on 