Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        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?

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            2 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
            40 views
            0 likes
            Last Post alifarahani  
            Started by Waxavi, Today, 02:10 AM
            1 response
            18 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by Kaledus, Today, 01:29 PM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X