RSI below/over 40

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #99402 quote
    Geons
    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
    robertogozzi
    Moderator
    Master

    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
    Geons
    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.

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 Geons
6 years, 8 months ago.

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