Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Andrew's Pitchfork

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

    Andrew's Pitchfork

    Can you post the code for Andrew's pitchfork? Or can I have it otherwise? Thanks.

    #2
    If you are asking that of NinjaTrader then we will not publish our source code.
    RayNinjaTrader Customer Service

    Comment


      #3
      Just the pitchfork? It can't be a military secret.......

      Could it be made into shared code?

      It can be plotted but there's no apparent control over size color or the number and placement of the lines. I'd like to make an auto-plot with all these ablilities.

      I'd rather not have to try to remanufacture what's already been done. Is there any help you can give?

      Comment


        #4
        Unfortunately not. We cannot offer support in this direction.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Amibroker code is openly available here: http://www.amibroker.com/library/detail.php?id=706

          // Andrews Pitchfork V3.3
          //
          // Use Peak() & Trough() to get peaks & troughs.
          // This version deals with adjacent peaks and adjacent
          // troughs, i.e. two peaks without an intervening trough or vice-versa.
          // It goes backwards from the selected bar until it has a set of
          // peak,trough,peak or trough,peak,trough points to use for calulating
          // the pitchfork. When 2 or more peaks or 2 or more troughs are adjacent
          // it only uses the last one, i.e. the rightmost one, of the series.
          //
          // This version only uses the zigzag peak troughs after they have been
          // revealed by the subsequent price action. i.e. the price has to have
          // moved off the high/low by the zigzag pct before the peak or trough will
          // be used.
          //
          // This version plots the trendlines as exponential curves that plot as
          // straight lines on an semilog chart.
          //

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X