problema con summation antes de entrada Long

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #229021 quote
    gustavobpgustavobp
    Participant
    New

    Buenos dias amigos,

    Intento en mi estrategia que se cumpla la condicion de que antes de la entrada LONG revisar que haya UN MAXIMO DE 4 VELAS VERDES antes de la entrada, he realizado el siguiente codigo pero parece no estar correcto:

    Max4velasVerdesAntesDeLong = summation[2](haclose>haopen) < 5

    ¿Cual es el error?

    Muchas gracias a todos!!!

    #229022 quote
    GraHalGraHal
    Participant
    Master
    Max4velasVerdesAntesDeLong = summation[5](haclose>haopen) < 5
    robertogozzi thanked this post
    #229023 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Este comprueba las últimas 5 velas, la que acaba de cerrar y las 4 anteriores.
    Ingrese al comienzo de la siguiente vela.

    Max4velasVerdesAntesDeLong = summation[5](haclose>haopen) < 5

    Si quieres empezar a contar desde la vela anterior hasta la que acaba de cerrar, debes escribir:

    Max4velasVerdesAntesDeLong = summation[5](haclose[1]>haopen[1]) < 5
    GraHal thanked this post
    #229024 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ¡Dos respuestas son mejores que ninguna! 🙂

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

problema con summation antes de entrada Long


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
gustavobp @gustavobp Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
2 years, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 03/01/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...