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 algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X