ESTRATEGIA SIMPLE RSI

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #77042 quote
    AntuanAntuan
    Participant
    Senior

    Buenas tardes…seguro que se puedo optimizar esta simple estrategia de dos medias y un rsi..ojo..prt esta modificado solo con periodo de negociacion..las medias y el oscilador cambia tremendamente..si Sr. Nicolas la puede optimizar seria grato para mi..acumular posiciones ..aumentar tamaño de ordenes..no se..volatilidad..atr..acepto todo ..no se abrir canal con estrategia ..si podeis abrir hilo..

    //—————————OSUPERO——————————————————//
    //—————————DAX MODIFICADO PRT 09:00/17.30——————————-//
    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada
    // Anular todas las órdenes pendientes y cerrar todas las posiciones a la hora “FLATAFTER”
    DEFPARAM FLATAFTER = 173000
    
    // Impide al sistema lanzar nuevas órdenes para entrar al mercado o aumentar el tamaño de la posición después 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
    indicator1 = WeightedAverage[34](close)
    c1 = (indicator1 < close)
    indicator2 = RSI[21](close)
    c2 = (indicator2 < 50)
    
    IF (c1 AND c2) AND timeEnterAfter AND not daysForbiddenEntry THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Condiciones de entrada de posiciones cortas
    indicator3 = WeightedAverage[34](close)
    c3 = (indicator3 > close)
    indicator4 = RSI[21](close)
    c4 = (indicator4 > 50)
    
    IF (c3 AND c4) AND timeEnterAfter AND not daysForbiddenEntry THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Stops y objetivos
    SET STOP pLOSS 30
    SET TARGET pPROFIT 20
    DAX_RSI_5_Min.png DAX_RSI_5_Min.png
    #77046 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Para escribir el código , utilice el botón <> “insert PRT code”. Gracias.

    Trasladé la publicación al soporte de ProOrder, en lugar de ProBuilder.

    #77048 quote
    AntuanAntuan
    Participant
    Senior

    Ok..es cierto..gracias

    #77429 quote
    AntuanAntuan
    Participant
    Senior

    Nadie la ha probado?  …hay alguien que podria hacer un backtesting de mas barras o incluso de mas años? la veo muy interesante..espero alguna respuesta de alguien.  Sr. Nicolas si es posible.  mi correo es …………

    #77495 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Está prohibido publicar referencias personales e información, como correo electrónico, teléfono, dirección, sitio …
    Nicolas tiene tu dirección de correo electrónico, en caso de que él se contacte contigo.

    #77529 quote
    AntuanAntuan
    Participant
    Senior

    Ok Robertogozzi.. cada foro tiene sus normas..desconocía…

    #77712 quote
    NicolasNicolas
    Keymaster
    Legend

    A continuación, encontrará la prueba con más de 200.000 compases de la historia. ¡No es tan bueno como en el último período que lo has probado! lo siento.

    test-with-200k-bars.png test-with-200k-bars.png
Viewing 7 posts - 1 through 7 (of 7 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

ESTRATEGIA SIMPLE RSI


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Antuan @osupero Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by NicolasNicolas
8 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 07/29/2018
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...