Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Andrew's Pitchfork / Median Line Bug

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

    Andrew's Pitchfork / Median Line Bug

    Hi everyone,

    While implementing an indicator, which draws Median Lines from a script, I recognized, that the Median Lines were drawn incorrectly.

    The provided code by NT for Andrew' s Pitchfork / Median Line has a bug. It seems that it slipped through undetected or only a few people are using Median Lines form NS.

    @AndrewsPitchfork.cs @ line 560:

    Code:
    startAnchor.CopyDataValues(pitchfork.StartAnchor);
    endAnchor.CopyDataValues(pitchfork.EndAnchor);
    extAnchor.CopyDataValues(pitchfork.EndAnchor);
    It should be:
    Code:
    startAnchor.CopyDataValues(pitchfork.StartAnchor);
    endAnchor.CopyDataValues(pitchfork.EndAnchor);
    extAnchor.CopyDataValues(pitchfork.ExtensionAnchor);
    The bug still exists in NT version 8.0.4.0 64-bit (Multi-Broker).

    An easy fix for now is to change the file outside of NS and it will recompile it automatically. Otherwise NS will complain about modifying a system DrawingTool.

    It's only related to the specific DrawingTool called from NS. Andrew's Pitchfork / Median Line works fine in NT.

    Thanks.

    #2
    Hello BearPower,

    Thanks for your post and welcome to the NinjaTrader forums!

    We will investigate and update this thread when we have further information.

    Thank-you for your observations and suggestions for improvement, we appreciate it.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello BearPower,

      Just to update.

      Development assigned the bug number of NT8-11297. This has been fixed and should be available in the next release of NinjaTrader8.

      Thanks once again for reporting and advising your code observations.
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Hi NinjaTrader_Paul,

        Great, thank you!

        Thanks once again for reporting and advising your code observations.
        My pleasure.

        Regards.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by JoMoon2024, Today, 06:56 AM
        0 responses
        6 views
        0 likes
        Last Post JoMoon2024  
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        17 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Working...
        X