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 bmartz, 03-12-2024, 06:12 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        13 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X