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 mmenigma, Yesterday, 03:25 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by kujista, Today, 05:44 AM
          0 responses
          6 views
          0 likes
          Last Post kujista
          by kujista
           
          Started by ZenCortexCLICK, Today, 04:58 AM
          0 responses
          9 views
          0 likes
          Last Post ZenCortexCLICK  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          172 responses
          2,281 views
          0 likes
          Last Post sidlercom80  
          Started by Irukandji, Yesterday, 02:53 AM
          2 responses
          18 views
          0 likes
          Last Post Irukandji  
          Working...
          X