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

Angle

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

    Angle

    Hi, I am wondering if there is a way to code the angle of an EMA into an indicator? For example if I want to code an indicator to rate the trend based on the angle of an EMA, is that do-able somehow?
    In laymans terms,
    if the 20EMA is > 60 degrees the trend is up.
    if the 20 EMA is < 60 degrees but > 120 degrees the trend is neutral.
    if the 20 EMA is < 120 degrees the trend is down.

    In this example the number of degrees is based on say a clock face with 0 degrees being at 12 o'clock 45 degrees at 3 o'clock and 180 degrees at 6 o'clock. I don't know what convention is used in c#?

    Hoping you can shed some light on this for me?

    Cheers,
    Ken.

    #2
    Search the forum on angle.

    A bunch of posts show up.

    Slope angle might not be what you are looking for.

    Anyways, if you expand or contract either axis, things change pretty quickly.

    Comment


      #3
      Hi Ken,

      There is a Slope() method you can call.

      Below is a publicly available link to the help guide on Slope().
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by sledge View Post
        Search the forum on angle.

        A bunch of posts show up.

        Slope angle might not be what you are looking for.

        Anyways, if you expand or contract either axis, things change pretty quickly.
        Thanks Sledge,
        I will do that search, but I am not concerned if the angle changes when changing either axis, I understand this will happen, that is ok, because the angle of price changes with it.

        Thanks for your input.

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hi Ken,

          There is a Slope() method you can call.

          Below is a publicly available link to the help guide on Slope().
          http://ninjatrader.com/support/helpG...n-us/slope.htm
          Thanks Chelsea,
          That looks to be what I am looking for.
          Cheers,
          Ken

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          30 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          943 views
          0 likes
          Last Post spwizard  
          Started by Max238, Today, 01:28 AM
          0 responses
          9 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by rocketman7, Today, 01:00 AM
          0 responses
          5 views
          0 likes
          Last Post rocketman7  
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          28 views
          0 likes
          Last Post wzgy0920  
          Working...
          X