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

Divergence line plotting?

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

    Divergence line plotting?

    Hi,

    I use Ensign Windows charting software as a supplement to Ninja. They have a study called simply "Divergence" which will identify and plot divergences (as lines) between price and an indicator of the user's choosing (In the example attached it's between price and the %D of a stochastic, but it could just as easily be the %K or any other active indicator property).

    Is there anything like this available for Ninja, and if not, is it feasible to do? How might a non-coder like myself initiate getting such a thing scripted?

    Many thanks in advance.

    5iver
    Attached Files

    #2
    Hello,

    There is a divergence indicator in this forum under file sharing>indicators.
    DenNinjaTrader Customer Service

    Comment


      #3
      Thank you Ben, I'd already messed with that when I posted but it just seemed too cryptic -- I couldn't make it do what I need, which is to plot sloping lines between divergent peaks on price and indicator properties... I will of course revisit it and see if there's something I missed first time.

      Thanks

      5iver

      Comment


        #4
        Hello,

        I know what you are looking for, and I have not seening it on our forum and I do not have one.

        The indicator I sent you to does not plot the lines, only dots when something diverges.
        DenNinjaTrader Customer Service

        Comment


          #5
          Originally posted by 5iver View Post
          Thank you Ben, I'd already messed with that when I posted but it just seemed too cryptic -- I couldn't make it do what I need, which is to plot sloping lines between divergent peaks on price and indicator properties... I will of course revisit it and see if there's something I missed first time.
          I think all that one does is plot dots where it sees divergences. If I recall, that code should retain a history of the highs and lows that created the divergence. If you know that, you should be able to call DrawLine() between the appropriate endpoints.
          -Alex

          Comment


            #6
            Hello,

            Yes, the indicator is possible to create, it just hasn't been posted on the forum yet that I know of.
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X