Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fibonacci Circle Question

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

    Fibonacci Circle Question

    In drawing a Fibonacci Circle...set to divide price & time separately....the circles do not seem to fall on the set-up line correctly...

    Screen shot attached...


    Thanks....

    #2
    I can replicate this on my end. I'll be investigating further into the expected behavior with this setting enabled.

    Comment


      #3
      % X the square root of 2...

      Patrick....Remembered later today, had looked at this once before....when divide/time separately is checked...multiply the percentage you want by the square root of 2 (1.4142).....thus 100% becomes 141.42....61.8% becomes 87.39....50% becomes 70.71 & so on.

      I can't remember now exactly how I figured this out, but it seems to work OK....

      Here is what one example looks like doing it this way...


      Thanks....
      Last edited by Alfred; 08-16-2017, 08:01 AM. Reason: add sq root of 2

      Comment


        #4
        Alfred, you're correct.

        Here is the specific code from the Fibonacci tool which governs this. You can find this file in Documents > NinjaTrader 8 > bin > Custom > DrawingTools > @FibonacciTools.cs:

        Code:
        double xRange = Math.Abs(anchorEndPoint.X - anchorStartPoint.X);
        double yRange = Math.Abs(anchorEndPoint.Y - anchorStartPoint.Y);
        double mainLine	= Math.Sqrt(Math.Pow(xRange, 2) + Math.Pow(yRange, 2));
        float levelFactor = (float)priceLevel.Value/100f;
        float r = (float)(levelFactor * mainLine);
        float xScale = (float)(levelFactor * xRange);
        float yScale = (float)(levelFactor * yRange);
        float ellipseRadiusX = IsTimePriceDividedSeparately ? xScale : r;
        float ellipseRadiusY = IsTimePriceDividedSeparately ? yScale : r;
        If you'd like, I can submit a feature request to change this default behavior.

        Comment


          #5
          Patrick...

          Yes....revised default calc's of this tool would be good to have....!!

          But isn't this a bug fix ...(not a feature request) ?? ....the tool is currently incorrect when dividing price/time separately....don't feature requests generally take more time than a bug fix...??....just curious....

          ....in any case...thanks...!!

          Comment


            #6
            The Fibonacci Circle is currently calculating as expected. We would not consider this a bug. Since you desire a change to the expected behavior, it would be considered a feature request.

            I'll forward your suggestion to the Development Team. I'll provide a tracking number when I have one. EDIT: the tracking number is SFT-2619.
            Last edited by NinjaTrader_PatrickG; 08-17-2017, 06:37 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CortexZenUSA, Today, 12:53 AM
            0 responses
            1 view
            0 likes
            Last Post CortexZenUSA  
            Started by CortexZenUSA, Today, 12:46 AM
            0 responses
            1 view
            0 likes
            Last Post CortexZenUSA  
            Started by usazencortex, Today, 12:43 AM
            0 responses
            5 views
            0 likes
            Last Post usazencortex  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            168 responses
            2,266 views
            0 likes
            Last Post sidlercom80  
            Started by Barry Milan, Yesterday, 10:35 PM
            3 responses
            13 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Working...
            X