RSI with candlestick

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31710 quote
    Francesco78
    Participant
    Master

    Hello everyone, have you ever coded by any chances an RSI indicator based on candlesticks instead then simple lines?

    #31725 quote
    Nicolas
    Keymaster
    Master

    Just did it for you. Candlesticks are based on OHLC made from RSI calculation:

    p = 14 //rsi period
    
    o = rsi[p](open)
    hh = rsi[p](high)
    ll = rsi[p](low)
    c = rsi[p]
    
    if c>o then
    drawcandle(o,hh,ll,c) coloured(0,200,0)
    else
    drawcandle(o,hh,ll,c) coloured(200,0,0)
    endif
    
    RETURN 30 as "30", 70 as "70", 50 coloured(100,100,100) as "50"
    #31783 quote
    Francesco78
    Participant
    Master

    wow thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

RSI with candlestick


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/11/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...