Posición no abierta

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #179207 quote
    xj457xj457
    Participant
    New

    Hola,

    Me gustaría saber por qué no se ha abierto la posición en la vela de las 21:00h (ver foto adjunta). La vela abre en 21.70 y cierra en 21.55, cruzando 21.65 que es la condición de apertura.

    El código es el siguiente:

    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada
    
    
    // Condiciones para entrada de posiciones largas
    c1 = (low CROSSES UNDER 21.65)
    
    IF c1 THEN
    SELLSHORT 5 CONTRACT AT MARKET
    ENDIF
    
    // Condiciones de salida de posiciones cortas
    SET TARGET PROFIT 0.5

    Gracias

    vela.png vela.png
    #179211 quote
    robertogozzi
    Moderator
    Master

    Porque en la línea 6 escribiste LOW, que evidentemente ya estaba por debajo o igual a 21,65, por lo que no hubo cruce.

    Se habría abierto si hubiera escrito CLOSE.

    xj457xj457 thanked this post
    #179218 quote
    xj457xj457
    Participant
    New

    Muchas gracias, me ha quedado perfectamente claro.

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

Posición no abierta


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
xj457xj457 @xj457xj457 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by xj457xj457
4 years, 5 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 10/07/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...