Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

2 Day RSI(2) Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    2 Day RSI(2) Indicator

    I am looking for help in creating a new indicator based off the existing RSI indicator.

    The only difference is the new indicator is the sum of the last 2 days of the RSI.

    I made a copy of the RSI and tried modifying it but cannot get it to work or plot on the graph. The goal is to use this for auto-trading.

    Any help would be greatly appreciated.

    Bryan

    #2
    Hi Bryan,

    The math shouldn't be too difficult and you don't need to modify the existing RSI. Could create a new script and then set the plot accordingly.

    if(CurrentBar > 1)
    Value.Set(RSI(14, 3)[0] + RSI(14, 3)[1]);

    The [0] + [1] adds the current and previous RSI value. Indexing is always based on bars, not days. You could apply this script to a daily chart or work with our multiseries framework to base it on a specific interval.
    Last edited by NinjaTrader_RyanM1; 10-25-2011, 10:54 AM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by blconnell View Post
      I am looking for help in creating a new indicator based off the existing RSI indicator.

      The only difference is the new indicator is the sum of the last 2 days of the RSI.

      I made a copy of the RSI and tried modifying it but cannot get it to work or plot on the graph. The goal is to use this for auto-trading.

      Any help would be greatly appreciated.

      Bryan
      Maybe if you showed us what you have done so far, we can complete it for you?

      Comment


        #4
        Thanks for the quick replies. I will review again tonight and see if I can get it working. If not, I'll post what I have so far and look for your expertise in getting it working.

        Thanks again,

        Bryan

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        150 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post tkaboris  
        Working...
        X