Intento implementar en el Screener una limitación de tiempo

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #66136 quote
    Rafa
    Participant
    Senior

    Hola a todos, por qué este código no funciona en el SCREENER? Lo he intentado de muchas maneras y no sale.

    La idea es sencilla, quiero que el screener empiece a funcionar a partir de una hora determinada y finalice a partir de otra.

    Muchas gracias de antemano

    // ===== VALORES MODIFICABLES =====
    
    // --- Relativo a la hora ---
    
    noEntryBeforeTime = 050000
    noEntryAfterTime  = 220000
    
    TimeEnterBefore = Time >= noEntryBeforeTime
    TimeEnterAfter  = Time  > noEntryAfterTime
    
    // --- Relativo al RSI ---
    
    ValorRSI       = 9
    ValorEMA       = 5
    
    // --- Relativo al ADX ---
    
    ValorADX = 11
    
    // ===== A partir de aquí no se toca el código =====
    
    // ***** Reglas de tiempo *****
    
    
    // --- Variables de la estrategia ---
     
    MiRSI        = RSI[ValorRSI](close)
    MiEMARSI     = ExponentialAverage[ValorEMA](MiRSI)
    
    MiDIPositivo = DIplus [ValorADX]
    MiDINegativo = DIminus[ValorADX]
    
    // --- Condiciones de Posiciones Largas ---
    
    Condicion1Larga = MiDIPositivo[1] < MiDIPositivo
    
    // -- Condiciones de Posiciones Cortas ---
     
    Condicion1Corta = MiDIPositivo[1] > MiDINegativo
    
    // ********** ESTRATEGIA  **********
    
    CruceLargo = MiRSI CROSSES OVER MiEMARSI  AND (TimeEnterBefore AND TimeEnterAfter AND Condicion1Larga)
    
    CruceCorto = MiRSI CROSSES UNDER MiEMARSI AND (TimeEnterBefore AND TimeEnterAfter AND Condicion1Corta)
     
    // ===== SCREENER =====
    
    SCREENER [CruceLargo OR CruceCorto]
    
Viewing 1 post (of 1 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

Intento implementar en el Screener una limitación de tiempo


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
Rafa @rafa Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 03/23/2018
Status: Active
Attachments: No files
Logo Logo
Loading...