buy in a daily period of time without selling the open positions

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #185945 quote
    jfrodriguezjfrodriguez
    Participant
    New
    <span class="Y2IQFc" lang="es">Hola a todos
    
    Soy nuevo en esto (principiante)
    
    Quiero abrir posiciones entre las 11:00 y las 11:30 si se cumplen algunas condiciones, pero si abro una posición durante ese tiempo, no quiero cerrar las posiciones hasta que se cumplan las condiciones de cierre.
    
    el problema es que si utilizo DEFPARAM FLATBEFORE = 110000  y  DEFPARAM FLATAFTER = 113000, la posición se cierra a las 11:30 y no quiero que se cierre.
    
    alguien me puede ayudar a solucionar esto?
    
    Gracias</span>
    
    Hi all

    I am new on this (beguinner)

    I want to open positions between 11 0’clock to 11:30 if some conditions are met, but if I open a position during that time, I do not want to close the positions until the closing conditions are meet,

    the problem is that if I use DEFPARAM FLATBEFORE = 110000   and   DEFPARAM FLATAFTER = 113000 the position are closed at 11:30 and i don’t want to close it

    can somebody help me to solve this ?

    thanks

    Hola a todos Soy nuevo en esto (principiante) Quiero abrir posiciones entre las 11:00 y las 11:30 si se cumplen algunas condiciones, pero si abro una posición durante ese tiempo, no quiero cerrar las posiciones hasta que se cumplan las condiciones de cierre. el problema es que si utilizo DEFPARAM FLATBEFORE = 110000  y  DEFPARAM FLATAFTER = 113000, la posición se cierra a las 11:30 y no quiero que se cierre. alguien me puede ayudar a solucionar esto? Gracias

    #185950 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Publica solo en el idioma del foro en el que publicas. Por ejemplo, inglés solo en foros en inglés y español solo en foros en español.

    No inserte HTML o BBCode en el texto, de lo contrario será ilegible.

    #185951 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Aquí está la solución:

    IF Time >= 110000 AND Time <= 113000 THEN
      .
      Escribe tu código dentro de este IF... ENDIF
      .
    ENDIF
Viewing 3 posts - 1 through 3 (of 3 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

buy in a daily period of time without selling the open positions


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 01/19/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...