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

Auto Fib Retracement makes Chart Trader unusable!

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

    Auto Fib Retracement makes Chart Trader unusable!

    Hello there!

    I put an auto Fib retracement drawing in an indicator that resets based on time of day. Well, it totally makes the screen gum up with jagged mouse movements.

    Even if I put the calculation on "Bar Close" it still freezes things!

    I have had a lot of trouble with Fib retracements on NT. Does this mean I should autodraw horizontal lines instead? Is there some extremely difficult custom-rendering solution that is really the only way to address this otherwise?

    Please let me know! Thank you!

    #2
    Hello catinabag,

    Thank you for your post.

    Are you using a large amount drawing objects in your script? This could cause performance issues.

    I am not seeing any performance issues with a simple Draw.FibonacciRetracements() call in an indicator script.

    If your script is going to be utilizing a large amount of drawing objects, it may be more resource efficient to instead use custom rendering to improve performance.

    Help Guide: NinjaScript > Educational Resources > Using SharpDX for Custom Rendering

    SampleCustomRender included in NinjaTrader 8 demonstrates custom rendering from an indicator.

    Please let me know if this doesn't guide you in the right direction.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Thanks for getting back so quickly, Gaby!

      I'm using this line in the code:
      Draw.FibonacciRetracements(this, "Fibonacci", false, fibstart[0], fiblow[0], fibstart[0] + 1, fibhigh[0], false, "Template2");

      where fibstart is defined as the bar number at 9:30AM Eastern time and the fiblow and fibhigh are static numbers from 9:30AM, also.

      Thus, I think that's just 1 drawing object!

      Nevertheless, it still gets gummy and jittery.

      I will read up on the custom rendering, I suppose that's really the only solution other than hand drawing this!

      If you have any further thoughts, please feel free to mention them. Thank you!

      Comment


        #4
        Hello catinabag,

        I wouldn't expect just 1 drawing object to cause this behavior.

        I would text first by removing the Draw() method call and testing if the behavior persists. It would help to narrow down which section of the code is could be causing this behavior.
        Gaby V.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 01:08 PM
        0 responses
        2 views
        0 likes
        Last Post jaybedreamin  
        Started by Rheiverson, 07-18-2024, 04:28 PM
        2 responses
        18 views
        0 likes
        Last Post Rheiverson  
        Started by p1kn1t, Today, 11:32 AM
        0 responses
        7 views
        0 likes
        Last Post p1kn1t
        by p1kn1t
         
        Started by Bob-Habanai, Today, 10:27 AM
        0 responses
        10 views
        0 likes
        Last Post Bob-Habanai  
        Started by bortz, 11-06-2023, 08:04 AM
        57 responses
        2,762 views
        0 likes
        Last Post bortz
        by bortz
         
        Working...
        X