ConnorsRSI in ProBuilder

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10698 quote
    HenryHenry
    Participant
    Average

    A request that was addressed to ProRealTime:

     

    I have a function ConnorsRSI in AmiBroker and would like to convert to ProRealCode

    Can you help me?

    Suggestion for an anwser:

    PeriodRSI=3
    PeriodUpdownlength=2
    PeriodROC=100
    
    Once UpLenght=0
    Once DownLenght=0
    Once updownDays=0
    
    MyRSI=RSI[PeriodRSI](close)
    MyROC=ROC[PeriodROC](close)
    
    if barindex > 0 then
    if close > close[1] then
    upDay=1
    downDay=0
    elsif close < close[1] then
    downDay=1
    upDay=0
    else
    downDay=0
    upDay=0
    endif
    if upDay <> 0 then
    UpLenght=UpLenght[1] + upDay
    else
    UpLenght=0
    endif
    
    if downDay <> 0 then
    DownLenght=DownLenght[1] + downDay
    else
    DownLenght=0
    endif
    updownDays = UpLenght + DownLenght
    endif
    
    MyRSILenght=RSI[PeriodUpdownlength](updownDays)
    
    ConnorsRSI=(MyRSI+MyROC+MyRSILenght )/3
    
    return ConnorsRSI
    
Viewing 1 post (of 1 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

ConnorsRSI in ProBuilder


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Henry @henry Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/20/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...