Colored barchart and candlesticks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #119145 quote
    Hans63Hans63
    Participant
    Average

    Vorrei poter colorare le barchart su questo indicatore definendone lo spessore. Cosa bisogna aggiungere?

    //PRC_TrendColored | indicator
    //21.11.2018
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings 
    period1 = 10
    MA1type = 2
    period2 = 50
    MA2type= 2
    // --- end of settings 
    
    avg1 = average[period1,MA1type]
    avg2 = average[period2,MA2type]
    
    if avg1>avg2 then 
     r=0
     g=255
     b=0
     if avg1<avg1[1] then 
      r=0
      g=128
      b=0
     endif
    elsif avg1<avg2 then 
     r=255
     g=0
     b=0
     if avg1>avg1[1] then 
      r=255
      g=99
      b=71
     endif
    endif
    
    drawcandle(open,high,low,close) coloured(r,g,b)
    
    return

    Inoltre per gli altri indicatori come il Supertrend o il PRC_Adaptive-ATR-ADX-Trend ĆØ possibile colorare barre e candele?

    Grazie

    #119149 quote
    Hans63Hans63
    Participant
    Average

    Ok trovato scusate šŸ™‚

    Rimane solo come colorare le barre con il Super Trend e il PRC_Adaptive-ATR-ADX-Trend

    #119151 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non si può, puoi solo usare il colore del bordo, aggiungi

     BORDERCOLOR(0,0,0,255)

    alla fine della riga 36 (nel mio esempio ĆØ nero).

    Tabella colori completa http://cloford.com/resources/colours/500col.htm.

    Hans63 thanked this post
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

Colored barchart and candlesticks


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Hans63 @hans63 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/10/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...