Ayuda con condición de entrada a sistema con Ichimoku

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

    Buenos días,

    Estoy preparando un sistema basado en el indicador ICHIMOKU, y una de las condiciones que quiero incorporar es que se tiene que producir dentro de las 6 velas siguientes desde que el precio cruza la nube (Span A). Alguien puede ayudarme a programarlo?

    Un saludo

    #61564 quote
    NicolasNicolas
    Keymaster
    Legend

    Este es el código para probar si el precio cruza el Span A dentro de los últimos 6 períodos.

    p1=9
    p2=26
    p4=26
    
    REM Tenkan-Sen = (Highest High + Lowest Low) / 2, for the past 9 days
    Upper1 = HIGHEST[p1](HIGH)
    Lower1 = LOWEST[p1](LOW)
    Tenkan = (Upper1 + Lower1) / 2
    
    REM Kijun-Sen = (Highest High + Lowest Low) / 2, for the past 26 days
    Upper2 = HIGHEST[p2](HIGH)
    Lower2 = LOWEST[p2](LOW)
    Kijun = (Upper2 + Lower2) / 2
    
    REM Senkou Span A = (Tenkan + Kijun) / 2, plotted 26 days ahead of today
    SpanA = (Tenkan[p4] + Kijun[p4]) / 2
    
    condition = summation[6](close crosses over SpanA or close crosses under SpanA)>0
    
    return condition
    #62942 quote
    davidcab10davidcab10
    Participant
    New

    Gracias! funcionó!

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

Ayuda con condición de entrada a sistema con Ichimoku


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
davidcab10 @davidcab10 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 02/04/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...