prezzo incroci Kijun Ichimoku

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #125939 quote
    lowbatlowbat
    Participant
    Senior

    Buongiorno a tutti,

    sarebbe possibile creare uno script che visualizza sul grafico (su qualsiasi time frame) con una freccia, quando il prezzo, a candela chiusa, incrocia al rialzo o al ribasso la linea della Kijun (Ichimoku).

     

    grazie

    #125965 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    // settaggi e parametri Ichimoku
    //
    Offset      = 35 * pipsize
    //Tenkansen = (highest[9](high)  + lowest[9](low))  / 2        //media Veloce
    Kijunsen    = (highest[26](high) + lowest[26](low)) / 2        //media LENTA
    //SpanA     = (tenkansen[26] + kijunsen[26]) / 2
    //SpanB     = (highest[52](high[26]) + lowest[52](low[26])) / 2
    //Chikou    = close[26]
    IF close CROSSES OVER Kijunsen THEN
       DRAWARROWUP(BarIndex,low - Offset) coloured(0,255,0,255)
    ELSIF close CROSSES UNDER Kijunsen THEN
       DRAWARROWDOWN(BarIndex,high + Offset) coloured(255,0,0,255)
    ENDIF
    RETURN
    x-11.jpg x-11.jpg
    #135783 quote
    max1775max1775
    Participant
    Average

    ho provato ad installarlo a mi da errore  di sintassi Linea 5 carattere 78

    #135877 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non ci sono 78 caratteri alla linea 5.

    Verifica di avere scritto bene.

    Che versione hai della piattaforma?

    #135933 quote
    loris75loris75
    Participant
    Junior

    anche a me da lo stesso problema  ho la versione  11.      ho fatto copia incolla

    #135984 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, il problema è che la v11 ha già alcune parole riservate relative ad Ichimoku, per cui era un problema di sintassi che ho risolto aggiungendo una X ai nomi:

    // settaggi e parametri Ichimoku
    //
    Offset      = 35 * pipsize
    //TenkansenX= (highest[9](high)  + lowest[9](low))  / 2        //media Veloce
    KijunsenX   = (highest[26](high) + lowest[26](low)) / 2        //media LENTA
    //SpanA     = (tenkansenX[26] + kijunsenX[26]) / 2
    //SpanB     = (highest[52](high[26]) + lowest[52](low[26])) / 2
    //Chikou    = close[26]
    IF close CROSSES OVER KijunsenX THEN
       DRAWARROWUP(BarIndex,low - Offset) coloured(0,255,0,255)
    ELSIF close CROSSES UNDER KijunsenX THEN
       DRAWARROWDOWN(BarIndex,high + Offset) coloured(255,0,0,255)
    ENDIF
    RETURN
    #145759 quote
    lowbatlowbat
    Participant
    Senior

    buonasera , sarebbe possibile creare uno Screener di questo template?

    grazie

    #145789 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco lo screener, restituisce 1 quando rialzista, 2 quando ribassista:

    // settaggi e parametri Ichimoku
    //
    //Offset    = 35 * pipsize
    //TenkansenX= (highest[9](high)  + lowest[9](low))  / 2        //media Veloce
    KijunsenX   = (highest[26](high) + lowest[26](low)) / 2        //media LENTA
    //SpanA     = (tenkansenX[26] + kijunsenX[26]) / 2
    //SpanB     = (highest[52](high[26]) + lowest[52](low[26])) / 2
    //Chikou    = close[26]
    Risultato = 0
    IF close CROSSES OVER KijunsenX THEN
       //DRAWARROWUP(BarIndex,low - Offset) coloured(0,255,0,255)
       Risultato = 1
    ELSIF close CROSSES UNDER KijunsenX THEN
       //DRAWARROWDOWN(BarIndex,high + Offset) coloured(255,0,0,255)
       Risultato = 2
    ENDIF
    SCREENER[Risultato](Risultato AS "1=↑, 2=↓")
Viewing 8 posts - 1 through 8 (of 8 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

prezzo incroci Kijun Ichimoku


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
lowbat @lowbat Participant
Summary

This topic contains 7 replies,
has 4 voices, and was last updated by robertogozzirobertogozzi
6 years ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 04/13/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...