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 helpwanted, Today, 03:06 AM
          1 response
          12 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          9 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          5 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          242 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          387 views
          1 like
          Last Post Gavini
          by Gavini
           
          Working...
          X