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

  • NinjaTrader_ChrisL
    replied
    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

    Leave a comment:


  • Nyman
    replied
    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?

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    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
    https://clauber.tinytake.com/msc/NjU3NzY1NV8xOTA5MzU5MA

    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:

    https://clauber.tinytake.com/msc/NjU3NzY4MF8xOTA5MzYxNg

    Kind regards,
    -ChrisL

    Leave a comment:


  • Nyman
    replied
    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?

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    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

    Leave a comment:


  • Nyman
    replied
    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?

    Leave a comment:


  • Nyman
    replied
    Hi Chris,
    Thank you so much, you have helped resolve my issue...

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    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:
    https://ninjatrader.com/support/foru...ries-indicator

    Please let me know if you have any questions about this material.

    Leave a comment:


  • Nyman
    started a topic DivergenceInputSeries Indicator

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by WalterSkinner, 02-07-2022, 09:22 AM
23 responses
121 views
0 likes
Last Post Lance El Camino  
Started by cryfgg, Today, 11:15 AM
1 response
6 views
0 likes
Last Post NinjaTrader_Jesse  
Started by trdninstyle, Yesterday, 09:32 AM
27 responses
168 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by sambathraj, 09-26-2022, 07:28 PM
2 responses
56 views
0 likes
Last Post sambathraj  
Started by JollyWizard, 10-02-2022, 07:37 AM
3 responses
62 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X