Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate Gann Fan Programmaticaly

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

    Calculate Gann Fan Programmaticaly

    Hello! Cain I Reveal the code of standart Gann Fan? Or can I use it from indicator or strategy?
    Or maybe you can provide the formula to calculate it?

    Or maybe you can give me a sample that will give me the angle (in degree) degree between two data points? F.e. between two points in MA. I cant understand example in references with Slope() .

    Thanks.
    Last edited by YevhenShynkarenko; 01-08-2020, 06:56 AM.

    #2
    Hello YevhenShynkarenko,

    Thanks for your post.

    The Gann fan can be drawn from your script, please see the help guide here: https://ninjatrader.com/support/help...aw_gannfan.htm
    The Gann fan drawing tool's code can be found through the Ninjascript editors explorer in the Drawing tools folder.

    We do not have an example that would give you the angle in degrees.

    You may want to review this internet link on Gann fan angles: investopedia.com/terms/g/gann-fans.asp

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello YevhenShynkarenko,

      Thanks for your post.

      The Gann fan can be drawn from your script, please see the help guide here: https://ninjatrader.com/support/help...aw_gannfan.htm
      The Gann fan drawing tool's code can be found through the Ninjascript editors explorer in the Drawing tools folder.

      We do not have an example that would give you the angle in degrees.

      You may want to review this internet link on Gann fan angles: investopedia.com/terms/g/gann-fans.asp
      Can I get the value of that plots?

      Comment


        #4
        Hello YevhenShynkarenko,

        Thanks for your reply.

        Which plots, what values and at what time/point? You may want to post a screenshot to help clarify.

        Comment


          #5
          Hello!
          Seems to be an old thread but still
          I am trying to draw the GannFan from code and I am not successful. I cannot use the Pricelevels and It only draws some lines on top of each other straight up.
          What am I doing wrong?

          Comment


            #6
            Hello kennet,stenberg,

            Thanks for your post.

            Here is a link to the help guide for drawing a Gann fan with an example: https://ninjatrader.com/support/help...aw_gannfan.htm

            If you try the example, does it perform the same?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 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
            548 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            549 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X