supertrend panel indicatore

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #204779 quote
    Gabriele Battista
    Participant
    Senior

    Ciao ho fatto questo indicatore che mi restituisce in un TF m1 il valore del Super Trend in tutti gli altri TF fino al weekly , mi piacerebbe migliorare l’estetica e la grafica. E’ possibile scrivere anche il livello oltre all’informazione che ha attualmente, magari tutto nella forma “inquadrata”?

    ast.png ast.png gb_supertrend-panel.itf
    #204785 quote
    robertogozzi
    Moderator
    Master

    Se vuoi tentare da solo, magari chiedendo spiegazioni dove trovi difficoltà, questo è un indicatore che ho modificato in modo da stampare i dati in una finestra fissa in un punto ben preciso del grafico: https://www.prorealcode.com/topic/tsr-adr-indikators-display-anderung/#post-204588.

    Ad ogni modo, se mi fai uno schema di come vorresti vedere i dati, riesco a dirti se è possibile.

    #204801 quote
    Gabriele Battista
    Participant
    Senior

    Grazie ne farò buon uso, ma sono molto lento nella comprensione dei codici purtroppo. Quello che mi serviva è una cosa relativamente semplice come ti ho schizzato (per un paio di livelli a “campione”) sul grafico che ti riallego. grazie ancora

    Inkedast.jpg Inkedast.jpg
    #204970 quote
    robertogozzi
    Moderator
    Master

    Te li ho messi sulla stessa linea:

    DEFPARAM DRAWONLASTBARONLY=TRUE
    timeframe(1 week,updateonclose)
    STW1=Supertrend[mult,cdl]
    timeframe(1 day,updateonclose)
    STD1=Supertrend[mult,cdl]
    timeframe(4 hour,updateonclose)
    STH4=Supertrend[mult,cdl]
    timeframe(1 hour,updateonclose)
    STH1=Supertrend[mult,cdl]
    timeframe(30 minute,updateonclose)
    STm30=Supertrend[mult,cdl]
    timeframe(15 minute,updateonclose)
    STm15=Supertrend[mult,cdl]
    timeframe(10 minute,updateonclose)
    STm10=Supertrend[mult,cdl]
    timeframe(5 minute,updateonclose)
    STm5=Supertrend[mult,cdl]
    timeframe(3 minute,updateonclose)
    STm3=Supertrend[mult,cdl]
    timeframe(default)
    if close>STW1 then
    drawtext("ST(W1) = LONG #STW1#",barindex+20,STW1)coloured(0,128,0)
    else
    drawtext("ST(W1) = SHORT #STW1#",barindex+20,STW1)coloured(255,99,71)
    ENDIF
    if close>STD1 then
    drawtext("ST(D1) = LONG #STD1#",barindex+20,STD1)coloured(0,128,0)
    else
    drawtext("ST(D1) = SHORT #STD1#",barindex+20,STD1)coloured(255,99,71)
    ENDIF
    if close>STH4 then
    drawtext("ST(H4) = LONG #STH4#",barindex+20,STH4)coloured(0,128,0)
    else
    drawtext("ST(H4) = SHORT #STH4#",barindex+20,STH4)coloured(255,99,71)
    ENDIF
    if close>STH1 then
    drawtext("ST(H1) = LONG #STH1#",barindex+20,STH1)coloured(0,128,0)
    else
    drawtext("ST(H1) = SHORT #STH1#",barindex+20,STH1)coloured(255,99,71)
    ENDIF
    if close>STm30 then
    drawtext("ST(m30) = LONG #STm30#",barindex+20,STm30)coloured(0,128,0)
    else
    drawtext("ST(m30) = SHORT #STm30#",barindex+20,STm30)coloured(255,99,71)
    ENDIF
    if close>STm15 then
    drawtext("ST(m15) = LONG #STm15#",barindex+20,STm15)coloured(0,128,0)
    else
    drawtext("ST(m15) = SHORT #STm15#",barindex+20,STm15)coloured(255,99,71)
    ENDIF
    if close>STm10 then
    drawtext("ST(m10) = LONG #STm10#",barindex+20,STm10)coloured(0,128,0)
    else
    drawtext("ST(m10) = SHORT #STm10#",barindex+20,STm10)coloured(255,99,71)
    ENDIF
    if close>STm5 then
    drawtext("ST(m5) = LONG #STm5#",barindex+20,STm5)coloured(0,128,0)
    else
    drawtext("ST(m5) = SHORT #STm5#",barindex+20,STm5)coloured(255,99,71)
    ENDIF
    if close>STm3 then
    drawtext("ST(m3) = LONG #STm3#",barindex+20,STm3)coloured(0,128,0)
    else
    drawtext("ST(m3) = SHORT #STm3#",barindex+20,STm3)coloured(255,99,71)
    ENDIF
    RETURN STm30 as "SuperTrend m30",STH4 as "SuperTrend H4", STH1 as "SuperTrend H1",STD1 as "SuperTrend D1", STW1 as "SuperTrend W1",STm15 as "SuperTrend m15", STm3 as "SuperTrend m3",STm10 as "SuperTrend m10", STm5 as "SuperTrend m5"
    Gabriele Battista thanked this post
    gb_supertrend-panel-2.itf
    #204987 quote
    Gabriele Battista
    Participant
    Senior

    perfetto grazie!

    #204989 quote
    Gabriele Battista
    Participant
    Senior

    E’  possibile mettere un check box di input per far in modo che ad esempio se provo a metterlo su m3 non mi dia errore perchè ho nell’indicatore m1? altrimenti dovrei entrare nel codice e “commentare” quello che riguarda m1. Grazie

    #205008 quote
    robertogozzi
    Moderator
    Master

    Devi entrare nel codice e commentare.

    Non si possono indicare i vari timeframe con variabili.

    Gabriele Battista thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

supertrend panel indicatore


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 11/24/2022
Status: Active
Attachments: 4 files
Logo Logo
Loading...