Dax30 sólo Largo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #169820 quote
    Roberto BlázquezRoberto Blázquez
    Participant
    New
    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada
    // El sistema anulará todas las órdenes pendientes y cerrará todas las posiciones a las 0:00. No se permitirá ninguna nueva orden ni posición después de la hora "FLATBEFORE".
    DEFPARAM FLATBEFORE = 165900
    // Anular todas las órdenes pendientes y cerrar todas las posiciones a la hora "FLATAFTER"
    DEFPARAM FLATAFTER = 230000
    
    // Impide al sistema crear nuevas órdenes para entrar al mercado a aumentar el tamaño de la posición antes de una hora precisa
    noEntryAfterTime = 173000
    timeEnterAfter = time < noEntryAfterTime
    
    // Impide al sistema operar en días precisos de la semana
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    
    // Condiciones para entrada de posiciones largas
    c1 = (close > 0)
    indicator1 = Average[27](close)
    c2 = (close > indicator1)
    
    IF (c1 AND c2) AND timeEnterAfter AND not daysForbiddenEntry THEN
    BUY 0.5 CONTRACT AT MARKET
    ENDIF
    
    // Stops y targets
    SET STOP pLOSS 25
    SET TARGET pPROFIT 324
    estadisticas-16211824934lp8c.png estadisticas-16211824934lp8c.png estadisticas-16211824934lp8c1.png estadisticas-16211824934lp8c1.png
    #170576 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Gracias por compartir tu idea, es un comienzo y espero que puedas seguir haciéndolo en el futuro 🙂

    ¿Hay alguna razón en particular por la que elegiste un promedio de 27 en lugar de 20 o 50 …?

    La condición en la línea 16 está bien, pero es superflua, ¡imagínese lo que sucedería si el DAX cotizara -5!

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

Dax30 sólo Largo


ProOrder: Trading Automático y Backtesting

New Reply
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by robertogozzirobertogozzi
5 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 05/27/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...