Error en código indicador Darvas Boxes en ProRealTime

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #257718 quote
    jorge242
    Participant
    Junior

    HOLA BUENAS TARDES, E CREADO ESTE INDICADOR Y ME DA UN ERROR, SABEIS QUE PUEDE ESTAR MAL O SI HAY ALGO MAL PLANTEADO


    // — Configuración Darvas Boxes —

    // Período de consolidación

    boxp = 5


    // — Lógica del indicador —

    LL = lowest[boxp](low)

    k1 = highest[boxp](high)

    k2 = highest[max(1, boxp-1)](high)

    k3 = highest[max(1, boxp-2)](high)


    NH = valuewhen(high > k1[1], high, 0)

    box1 = k3 < k2


    // Definición de las líneas superior e inferior de la caja

    TopBox = valuewhen(barssince(high > k1[1]) == boxp-2 and box1, NH, 0)

    BottomBox = valuewhen(barssince(high > k1[1]) == boxp-2 and box1, LL, 0)


    // — Visualización —

    RETURN TopBox AS “Techo Caja”, BottomBox AS “Suelo Caja”

    20:09

    2

    #257732 quote
    Iván González
    Moderator
    Master

    Hola. Veo varios errores…

    No existe la funcion valuewhen. Para esto quizás podrías utilizar un bucle for.

    Tampoco puedes utilizar la expresión “==”.

    Puedes echar un vistazo a este indicador que calcula también las “cajas” de Darvas.

    Mastering Trends with Nicholas Darvas Boxes

    #257735 quote
    jorge242
    Participant
    Junior

    Gracias ivan le echare un ojo

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Error en código indicador Darvas Boxes en ProRealTime


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
jorge242 @jorge242 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by jorge242
1 week, 3 days ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 02/09/2026
Status: Active
Attachments: No files
Logo Logo
Loading...