indicatore Doji

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29617 quote
    Nuccio92Nuccio92
    Participant
    Junior

    Volevo creare un indicatore basandomi sulle doji con panoramica settimanale.

    Quando la chiusura del giorno dopo  è superiore  alla chiusura della  doji il mio indicatore mi rimandera a 1 mentre quando la chiusura è inferiore mi rimandera a -1.

    A livello grafico voglio avere una retta lungo il valore 0 e una barra istogramma verde se è +1 o rossa se è-1

    grazie mille, confido in una pronta risposta.

    Nuccio92

    #29997 quote
    NicolasNicolas
    Keymaster
    Legend

    Credo di aver capito la tua domanda. Il codice sotto evidenziare segnali quando:
    un Doji è verificato nell’ultimo bar
    segnale verde = barra seguente chiudere sopra Doji alta
    segnale rosso = barra seguente chiudere sotto Doji partire
    È corretto ?

    // --- parameters
    DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
    // ---
    
    data=(abs(open - close) <= (high - low) * DojiSize/100)
    
    if data[1] and close>high[1] then
    signal = 1
    r=0
    g=200
    elsif data[1] and close<low[1] then
    signal = -1
    r=200
    g=0
    else
    signal = 0
    endif
    
    return signal coloured (r,g,0) style(histogram) as "signal", 0 as "zero line"
    
    doji-signals-indicator.png doji-signals-indicator.png
    #30188 quote
    Nuccio92Nuccio92
    Participant
    Junior

    Grazie mille nicolas.

    Le tue sono nozioni utilissime.

    #30595 quote
    Nuccio92Nuccio92
    Participant
    Junior

    ho provato a fare la programmazione che mi hai inviato ma a livello grafico non risulta identico al tuo allegato. riesci a darmi una mano??

    #30602 quote
    ALEALE
    Moderator
    Master

    Ciao Nuccio

    Dovresti avere lo stesso risultato copiando e incollando il codice di Nicolas

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

indicatore Doji


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Nuccio92 @nuccio92 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/23/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...