Screener Heikin-Ashi con RSI y con MM14

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

    Hola.

    Estoy intentando diseñar un screener para velas Heikin-Ashi con las siguientes condiciones:

    • Una media movil (MM) de 14 sesiones.
    • Un RSI[14]
    • Que la tendencia del valor sea ascendente.
    • Que la vela del cierre actual formato Heikin Ashi sea tal que no tenga sombra inferior; es decir, que su apertura y mínimo coincidan.
    • Que la vela del cierre actual sin sombra inferior tenga su mínimo por encima de la MM14 o bien que el cierre de la vela coincida con un RSI>50 (cualquiera de las 2 condiciones).

    He intentado lo siguiente:

    if barindex>1 then
    HAclose=(open+close+low+high)/4
    HAopen=(HAopen[1]+HAclose[1])/2
    xHigh = Max(HAOpen, HAClose)
    xLow = Min(HAOpen, HAClose)
    HAhigh = Max(High,xHigh)
    HAlow = Min(Low,xLow)
    endif

    c1=movingaverage[14]

    HAsinsombra=HAopen=HAlow and HAhigh>HAclose

    c2=HAopen >c1

    screener[c1 and c2]

    sólo para la MM14 con la idea de ver si funcionaba y luego añadirle el RSI pero me falla y no sé por qué.

    Agradecería ayuda al respecto.

    #228228 quote
    Iván González
    Moderator
    Legend

    Buenas
    Aquí tienes la primera parte que estabas intentando sacar.

    //////heikin Ashi
    once haopen=open
    
    haclose=(open+close+high+low)/4
    if barindex > 0 then
    haopen=(haopen+haclose[1])/2
    endif
    halow=min(low,min(haclose,haopen))
    //hahigh=max(high,max(haclose,haopen))
    
    ////Media movil simple
    avg = average[14](haclose)
    
    ////Condiciones
    //Vela sin sombra inferior
    c1 = haopen = halow
    //minimo por encima de su media
    c2 = halow > avg
    
    screener [c1 and c2]
    #228229 quote
    JEA
    Participant
    New

    Muchas gracias por tu rápida respuesta y por lo bien que funciona.

Viewing 3 posts - 1 through 3 (of 3 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

Screener Heikin-Ashi con RSI y con MM14


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
JEA @jea Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by JEA
2 years, 7 months ago.

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 02/15/2024
Status: Active
Attachments: No files
Logo Logo
Loading...