RSI with candlestick

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

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

    #31725 quote
    NicolasNicolas
    Keymaster
    Legend

    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"
    candlesticks-rsi.png candlesticks-rsi.png
    #31783 quote
    Francesco78Francesco78
    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.
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

RSI with candlestick


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Francesco78Francesco78
9 years, 5 months ago.

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