Limitar a una operación al dia

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #203509 quote
    Javi PiñeroJavi Piñero
    Participant
    New

    Buenos días, quiero programar lo siguiente:

    • Si abro una posición y  se cierra, NO quiero que se vuelva a abrir otra operación hasta el día siguiente. Es decir: quiero limitar las operaciones a una por día.
    • Si abro una posición, quiero que si en un número determinado de velas la operación no va hacia mi objetivo, que la posición se cierre automáticamente.

    Me ayudaría mucho a seguir aprendiendo con mis sistemas, gracias por adelantado a las personas del foro.

    Un saludo.

    Javier

    #203515 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Agregue esta línea ANTES de que se use como condición:

    OTD = (Barindex - TradeIndex(1) > IntradayBarIndex)

    luego agregue la siguiente parte a sus condiciones de entrada:

    and OTD

    ejemplo:

    IF MisCondicionesLargas and OTD and Not OnMarket THEN
       BUY 1 Contact at Market
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 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

Limitar a una operación al dia


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 11/04/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...