Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X