Indicatore stile istogramma

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59383 quote
    traderwintraderwin
    Participant
    Average
    singleRSI = 0 //boolean value 0=false, 1=true
    periodRSI = 14
    periodTMArsi = 4
    typeMA1 = 0 //MA type selection
    periodMA1 = 4
    shiftMA1 = 0
    typeMA2 = 0 //MA type selection
    periodMA2 = 5
    shiftMA2 = 0
    typeMA3 = 0 //MA type selection
    periodMA3 = 13
    shiftMA3 = 2
    // --- end of settings
     
    indi = RSI[periodRSI](customclose)
    TEMArsi = TEMA[periodTMArsi](indi)
    MA1 = average[periodMA1,typeMA1](indi)[shiftMA1]
    MA2 = average[periodMA2,typeMA2](indi)[shiftMA2]
    MA3 = average[periodMA3,typeMA3](indi)[shiftMA3]
     
    if singleRSI then
    final = TEMArsi
    else
    final = (TEMArsi+MA1+MA2+MA3)/4
    endif
     
    //return final as "TradeNavigator RSI",30,40,60,70
     
    if final > 60 then
    backgroundcolor (10,255,10,100)
    elsif final<40 then
    backgroundcolor(255,10,10,100)
    endif
     
    return
    

    Salve, come si fa a ottenere questo indicatore di pressione buy sell in stile istogramma?

    Nel senso che mi deve essere disegnato in un una nuova finestra sotto in stile istogramma e non sul grafico. Grazie

    #59408 quote
    maximus78maximus78
    Participant
    Senior

    Te lo inserisce già sotto il grafico, in pratica la visualizzazione è come quella del classico RSI.

    Se vuoi vedere l’istogramma invece della linea devi cambiare il settaggio nella finestra opzioni dell’indicatore.

    Max

    #59504 quote
    traderwintraderwin
    Participant
    Average

    Ciao Maximus, cosi’ come è settato ora, mi colora lo sfondo del grafico. Io invece lo vorrei sotto a stile istogramma con barre +1 verdi e -1 rosse

    #59532 quote
    maximus78maximus78
    Participant
    Senior

    Ah ok, allora scrivi questo e cambia i colori nel settaggio dell’indicatore
    <pre class=”lang:probuilder decode:true “>singleRSI = 0 //boolean value 0=false, 1=true
    periodRSI = 14
    periodTMArsi = 4
    typeMA1 = 0 //MA type selection
    periodMA1 = 4
    shiftMA1 = 0
    typeMA2 = 0 //MA type selection
    periodMA2 = 5
    shiftMA2 = 0
    typeMA3 = 0 //MA type selection
    periodMA3 = 13
    shiftMA3 = 2
    // — end of settings

    indi = RSI[periodRSI](customclose)
    TEMArsi = TEMA[periodTMArsi](indi)
    MA1 = average[periodMA1,typeMA1](indi)[shiftMA1]
    MA2 = average[periodMA2,typeMA2](indi)[shiftMA2]
    MA3 = average[periodMA3,typeMA3](indi)[shiftMA3]

    if singleRSI then
    final = TEMArsi
    else
    final = (TEMArsi+MA1+MA2+MA3)/4
    endif

    if final > 60 then
    result=1
    elsif final<40 then
    result=-1
    else
    result=0
    endif

    return result STYLE(histogram,1), 0

    #59533 quote
    maximus78maximus78
    Participant
    Senior
    singleRSI = 0 //boolean value 0=false, 1=true
    periodRSI = 14
    periodTMArsi = 4
    typeMA1 = 0 //MA type selection
    periodMA1 = 4
    shiftMA1 = 0
    typeMA2 = 0 //MA type selection
    periodMA2 = 5
    shiftMA2 = 0
    typeMA3 = 0 //MA type selection
    periodMA3 = 13
    shiftMA3 = 2
    // --- end of settings
     
    indi = RSI[periodRSI](customclose)
    TEMArsi = TEMA[periodTMArsi](indi)
    MA1 = average[periodMA1,typeMA1](indi)[shiftMA1]
    MA2 = average[periodMA2,typeMA2](indi)[shiftMA2]
    MA3 = average[periodMA3,typeMA3](indi)[shiftMA3]
     
    if singleRSI then
    final = TEMArsi
    else
    final = (TEMArsi+MA1+MA2+MA3)/4
    endif
    
    if final > 60 then
    result=1
    elsif final < 40 then
    result=-1
    else
    result=0
    endif
    
    return result STYLE(histogram,1), 0
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 stile istogramma


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
traderwin @traderwin Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/13/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...