RSI below/over 40

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

    Hi! I want a little help to write this one as an indicator:

    If a 14-day RSI fluctuates between 40 and 100 for at least 14 days, then return 1,
    If a 14-day RSI moves below 40, then return -1

    Thanks!

    #99403 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Try this (not tested):

    MyRsi  = Rsi[14](close)
    Result = -1
    IF summation[14](MyRsi >= 40) = 14 THEN
       Result = 1
    ENDIF
    RETURN Result,0
    Geons thanked this post
    #99497 quote
    GeonsGeons
    Participant
    Average

    Thank you! It works!!

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 below/over 40


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Geons @geons Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/24/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...