• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 Swing Indicator Returning Different Values with COBC=false

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

    #16
    Yes, ok, but what is the expected timeline for this? Do you think you can provide a version for real time processing within a week, a month or are we talking abt longer period?

    Also, I found a thread on this for the NT7 version. I am not a programmer, so would need your assistance here. Lets fix it as this indicator opens interesting trading possibilities. Here is the NT7 solution:

    https://ninjatrader.com/support/foru...t=56343&page=2
    Last edited by eddi0505; 06-03-2018, 01:07 PM.

    Comment


      #17
      Hello eddi0505,

      Thank you for your response.

      There is no expected timeline for this.

      You are going to need to explain your longer time frame question further. Are you referring to the bar type or the days to load?

      The thread you linked does not explain the matter nor resolve it for NinjaTrader.

      I will follow up here when I have more details.
      Patrick H.NinjaTrader Customer Service

      Comment


        #18
        Hi, here is the solution which was used in NT7 in order to amek Swing indicator work properly in real time processing. How to amend the NT8 Swing indicator to make it work under real time processing?

        "
        Hi Chelsea,

        I have inserted those statements at line 175 of the original Swing indicator. So it looks like this
        Code:
        if (saveCurrentBar != CurrentBar)
        {
        // bunch of code
        }
        else
        {
        // update the caches
        if (High[0] > (double) lastHighCache[lastHighCache.Count - 1])
        lastHighCache[lastHighCache.Count - 1] = High[0];
        if (Low[0] < (double) lastLowCache[lastLowCache.Count - 1])
        lastLowCache[lastLowCache.Count - 1] = Low[0];

        if (High[0] > High[strength] && swingHighSwings[strength] > 0.0)
        {
        swingHighSwings.Set(strength, 0.0);
        for (int i=0; i<=strength; i++)
        SwingHighPlot.Reset(i);
        currentSwingHigh = 0.0;
        }
        .... continue with rest of code.....
        }
        You should see the difference when you run it with COBC = false. Previously the indicator would plot the dots incorrectly using the value first stored in the cache, which was essentially the Open of the bar, rather than the high/low, so the dots would 'cut across' the bar.

        Hope this helps.
        "

        Comment


          #19
          Hi PatrickH, kind reminder that you wanted to upgrade Swing indicator to work correctly under real time processing. thank you.

          Comment


            #20
            Hello eddi0505,

            I will update this thread once I have a working version that has been tested by our QA team.

            Thank you for your patience.
            Patrick H.NinjaTrader Customer Service

            Comment


              #21
              Min 2 weeks are over. Are you still working on it?

              Comment


                #22
                Hello eddi0505,

                Thank you for your post.

                Currently the Swing is considered working as it is waiting for the strength on either side and the the close of the bar for confirmation.

                However, I am in fact still working on the indicator working with calculation on tick and price change. Anomalies are still seen when adjusting the code for calculations on tick and price change. Therefore debugging and testing has continued.

                What do you mean "Min 2 weeks"?

                I look forward to your response.
                Patrick H.NinjaTrader Customer Service

                Comment


                  #23
                  Any progress?

                  Comment


                    #24
                    Hello eddi0505,

                    Thank you for your post.

                    I will update this thread when we have any information on the matter.
                    Patrick H.NinjaTrader Customer Service

                    Comment


                      #25
                      Hello eddi0505,

                      Thank you for your patience.

                      This should be resolved in the current version of NinjaTrader 8. Please let me know if you have any questions.
                      Patrick H.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by vppzepuq, Today, 11:28 PM
                      0 responses
                      1 view
                      0 likes
                      Last Post vppzepuq  
                      Started by Steve L, Yesterday, 10:04 PM
                      1 response
                      6 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by mestril, Yesterday, 10:22 AM
                      1 response
                      14 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by hir04068, Yesterday, 09:29 PM
                      7 responses
                      20 views
                      0 likes
                      Last Post hir04068  
                      Started by bubblegum, Today, 03:51 AM
                      1 response
                      3 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Working...
                      X