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

How to calculate slope on the chart

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

    How to calculate slope on the chart

    Hi, how do I find the slope of a certain price move on the chart?
    Is it also possible to calculate the angle of it?

    I checked https://ninjatrader.com/support/help...nt8/?slope.htm but I'd like to know how I can display this on the chart.

    Appreciate your help, thanks a lot

    #2
    Hello HinduMVP, thanks for your post.

    A custom indicator would need to be created that will draw the value of Slope to the chart. You can draw text easily with the Draw.Text or Draw.TextFixed method from the NinjaScript drawing method library.
    https://ninjatrader.com/support/help...?draw_text.htm - Draw.Text
    https://ninjatrader.com/support/help...?textfixed.htm - Draw.TextFixed

    To find the angle of that slope value, you can perform Math.Atan(Double) on the slope value.

    Please let me know if I you have any question on this material.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your help Chris

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by knowmad, Today, 03:52 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by llanqui, Yesterday, 03:51 PM
      5 responses
      23 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by MSerag, Yesterday, 11:52 PM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by tradingnasdaqprueba, Today, 03:42 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by DynamicTest, Yesterday, 11:18 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X