Buenos días,estoy intentando hacer una adaptación de este indicador aparecido en la plataforma Tradinview :https://es.tradingview.com/script/FnFOxVIY-Range-Identifier-LazyBear/
Agradecería a alguien que me pueda verificar si el código es correcto o necesita alguna modificación.
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
|
REM IDENTIFICADOR DE RANGO //basado en el indicador range identifier de LazyBear para la plataforma Tradingview //adaptación para Prorealtime v10.3 //en cuadro de variables nz = tipo boleano if barindex>1 then up=close<up[nz] and close>down[1] if up[nz] then up=up[1] else up=high endif if up=up[nz] then u1=up endif down=close<up[nz] and close>down[1] if down[nz] then down=down[1] else down=low endif if down=down[nz] then l1=down endif endif return u1 STYLE(point,3), l1 STYLE(point,3) |
2 users thanked author for this post.