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 DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X