Filtrar momentum semanal en grafico horario (1h)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7718 quote
    Carlos GC
    Participant
    Average

    Hola,

    Estoy desarrollando un sistema en gráficos 1H y funciona bien hasta que llegan las fuertes bajadas. Para pausar mi sistema quiero que tengan en cuenta el momentum del grafico semanal. Por debajo de 70 (momentum semanal) pausar/parar sistema de 1H.

    Mi segunda pregunta es sobre el backtesting de lo anterior mencionado. Como puedo eliminar periodos de tiempo del backtesting como si el sistema hubiese estado pausado.

     

    muchas gracias

    #7723 quote
    Adolfo
    Participant
    Senior

    Buenos dias CarlosGC,

    Con respecto al momentum en otro TF me parece que de momento no se puede (que me corrijan si me equivoco).

    Para la segunda pregunta, si quieres que el sistema se detenga entre fechas, debes especificarlas, sería algo así:

    // REM NO OPERAR EN FEBRERO
    IF month=2 THEN
    trading = 0
    ELSE
    trading = 1
    ENDIF
    
    // REM NO OPERAR LUNES NI VIERNES
    IF day=1 OR day=5 THEN
    trading = 0
    ELSE
    trading = 1
    ENDIF
    
    IF trading = 1 then
    buy or sell.........
    endif

    Buen trading!

    #7781 quote
    RICHARDYUSTE
    Participant
    Junior

    Hola Adolfo.

    Te dejo mi mail: bolsa@richardyuste.com

    Quiero realizarte una consulta personal

    #8065 quote
    Carlos GC
    Participant
    Average

    Hola

    GRACIAS POR TU AYUDA ADOLFO!

    Las fechas en las que no quiero operar son concretas, por ejemplo DESDE 19 de agosto del 2015 a las 9:00 am HASTA 01 de Septiembre del 2015 a las 7:00 am

    Ver imagen adjunta por favor,[attachment file=8066]

    EEUU-500-al-contado-E1-Contrato-.png EEUU-500-al-contado-E1-Contrato-.png
    #8080 quote
    Adolfo
    Participant
    Senior

    Entonces sería algo así:

    DEFPARAM CUMULATEORDERS = FALSE 
    
    // REM NO OPERAR A PARTIR DEL 19 DE AGOSTO A LAS 09:00 AM
    IF month=8 AND DAY >= 19 AND TIME >090000 THEN
    trading = 0
    ENDIF
    
    // REM OPERAR DE NUEVO EL 1 DE SEPTIEMBRE A LAS 07:00 AM
    IF MONTH = 9 AND DAY >= 1 AND TIME >= 070000 THEN
    trading = 1
    ENDIF
    
    //EJEMPLO PARA TESTEAR 
    // ################
    IF trading = 1 then
    IF CLOSE>CLOSE[1] THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    endif
    
    SET STOP PLOSS 30
    SET TARGET PROFIT 50
    // #################

    Saludos!

    vacaciones-en-agosto.png vacaciones-en-agosto.png
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Filtrar momentum semanal en grafico horario (1h)


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Carlos GC @carlos_gc Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Adolfo
9 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 05/22/2016
Status: Active
Attachments: No files
Logo Logo
Loading...