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

DivergenceInputSeries Indicator

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

    DivergenceInputSeries Indicator

    Hello NinjaTrader_ChrisL,
    I have altogether a totally different question. It's about the DivergenceInputSeries Indicator and my question is how do I use this indicator in the strategy builder/strategy script? From the action logic, how do I know when the divergence between price and another indicator has occurred? Thanks for your response.
    Last edited by Nyman; 02-23-2022, 02:04 PM.

    #2
    Hi Nyman, thanks for writing in.

    We discussed the use of DirvergenceInputSeries in the builder, I made a version that is useable in the strategy builder here:
    Hello please i try use the indicator Divergence Input Series in Strategy Builder, I modify the indicator with plots, for choose in the builder, but when i try compilated the strategy have errors. } else if (State == State.Configure) { } else if (State == State.DataLoaded) { dinput1 = dinput(Close, 5, 1, 1, 1, true, false,


    Please let me know if you have any questions about this material.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,
      Thank you so much, you have helped resolve my issue...

      Comment


        #4
        Hello Chris, I am not getting positive results using DivergenceInputSeriesBuilder indicator in strategy builder. I'm trying to get the divergence of price and RSI(CCI). This is achievable or not?

        Comment


          #5
          Hi Nyman, thanks for the follow up.

          Could you post some screen shots of your condition builder to show what you have so far? You can also use Print() in the builder to print out the values that you are getting from the DivergenceInputSeriesBuilder. This will help to build conditions once you see the data being processed by the strategy.

          Kind regards,
          -ChrisL
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Hello Chris,
            I'm trying to find a divergence of Price and an indicator for example the CCI. I'm inputting the CCI with a period of 14 to the DivergenceInputSeriesBuilder indicator and when I try to activate it, it won't get activated. I can't print anything when the strategy won't get activated at all. The strategy was built in strategy builder. In your example provided, which data series is the inputted one?

            Comment


              #7
              Hi Hyman, thanks for the follow up.

              A good test to start out is to use Print in a set with no conditions so it prints data on every bar. Heres a print of DivergenceInputSeries>CCI


              The DivergenceInput indicator has a SignalUp and SignalDn plot that produces either 1 or 0. If you get a 1 on the plot it means there is a divergence, this is how it will be used in the builder:



              Kind regards,
              -ChrisL
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Hi Chris, thank you for your help. I fixed my strategy and it's working fine. I had to use the ninja script to create the strategy rather than the strategy builder. In the DivvergenceInputSeriesBuilder indicator, where State ==State.Configure, what is the use of AddDataSeries(BarsPeriodType.Minute, 5)? Do I need this statement in this indicator for my strategies?

                Comment


                  #9
                  Hi Nyman, I apologize, but I did forget that we need to add this data series to our strategy in order to use the Divergence indicator.
                  AddDataSeries(BarsPeriodType.Minute, 1);

                  You do not need to unlock the script for this. Add the same series within the Additional Data screen in the builder and it should work after that.

                  Best regards,
                  -ChrisL

                  Chris L.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  40 views
                  0 likes
                  Last Post jeronymite  
                  Started by bill2023, Today, 08:51 AM
                  2 responses
                  16 views
                  0 likes
                  Last Post bill2023  
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  167 responses
                  2,260 views
                  0 likes
                  Last Post jeronymite  
                  Started by warreng86, 11-10-2020, 02:04 PM
                  7 responses
                  1,362 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by Perr0Grande, Today, 08:16 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post Perr0Grande  
                  Working...
                  X