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

Can I combine two indicators to make one? RSI & TSI

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

    Can I combine two indicators to make one? RSI & TSI

    I am trying to combine two indicators to make one. Is this possible? If so, can someone help me out? Trying to combine RSI & TSI to show overbought/sold. Thanks for your help.

    #2
    Hello ckodad,

    Thank you for your post.

    This is in fact possible. Are you trying to combine the plots together? If so, based on what calculation? An average or percentage?

    Comment


      #3
      The Percentage..

      Comment


        #4
        Forgot to also mention that YES I am trying to plot them together. Sorry.

        Comment


          #5
          Hello ckodad,

          Thank you for your response.

          I can create an example for this idea but can you provide information on what percentage we are looking for of the two plots? RSI percent of TSI or maybe TSI percent of RSI?

          Comment


            #6
            Thanks for the reply. Maybe I wasn't real clear on what I am looking for. Here is what I have in mind. I am looking for combing the RSI & TSI. For example, once RSI hits 80 and TSI hits 35 I would like to sell. Once RSI hits 20 and TSI hits -35 I would like to buy. I have them both set up this way on each individual ind but would like to combine the two ind so when both happen I can enter the trade. Maybe it could shot a dot or arrow on the new ind when both criteria are met? Maybe the #'s can be adjusted if I find a different value that will work better? Just looking for less "stuff" on my screen. Does this help? Thanks a lot!

            Comment


              #7
              Hello ckodad,

              Thank you for your response and additional information.

              There is no need to combine the two indicators in this case. You just need a custom indicator that calls the indicator methods of both the RSI and TSI and then draws the desired object on the chart to signal the trade.

              For example:
              Code:
              			if(RSI(14, 5)[0] == rsiLevel && TSI(14, 20)[0] == tsiLevel)
              			{
              				DrawDot("dot", true, 0, Close[0], Color.Green);
              			}
              You can create your own indicator by going to Tools > New NinjaScript > Indicator. You will find language references to all of the methods and functions you will be using at the link below. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.


              I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: http://www.ninjatrader.com/support/h..._resources.htm

              You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
              Click here to see our NinjaScript Reference Samples: http://www.ninjatrader.com/support/f...splay.php?f=30
              Click here to see our NinjaScript Tips: http://www.ninjatrader.com/support/f...ead.php?t=3229

              These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

              There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: http://www.ninjatrader.com/support/f...splay.php?f=37

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by JonesJoker, 04-22-2024, 12:23 PM
              6 responses
              32 views
              0 likes
              Last Post JonesJoker  
              Started by GussJ, 03-04-2020, 03:11 PM
              12 responses
              3,239 views
              0 likes
              Last Post Leafcutter  
              Started by AveryFlynn, Today, 04:57 AM
              0 responses
              5 views
              0 likes
              Last Post AveryFlynn  
              Started by RubenCazorla, 08-30-2022, 06:36 AM
              3 responses
              79 views
              0 likes
              Last Post PaulMohn  
              Started by f.saeidi, Yesterday, 12:14 PM
              9 responses
              25 views
              0 likes
              Last Post f.saeidi  
              Working...
              X