Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slope of Tangent along SMA

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

    Slope of Tangent along SMA

    I would like to create an strategy/indicator and have ideas however I'm having a hard time getting started, maybe someone can help. As I watch a moving average (SMA) of various periods it has occurred to me, if I could create a tangent line at any point along the moving average and have the slope of that tangent line, maybe the value of the slope could help in deciding an entry or exit. As the slope becomes positive this could indicate a buy signal and on the reverse a negative slope could indicate a sell signal. As you can image there would be many inputs such as the trigger points as to when to enter or exit a trade or the period of the moving average, and maybe others. I feel confident in writing Ninja code however getting the tangent along a curve is where I'm puzzled. I'm not familiar with all the available indicators so maybe there is on that does this already. Any help and comments would be greatly appreciated.
    Thanks - David

    #2
    Hi David, welcome to the NinjaTrader support forums. Have you tried using Slope() to realize your idea? http://www.ninjatrader-support.com/H...eV6/Slope.html

    You can also take a look at those indicators found in our sharing section - http://www.ninjatrader-support2.com/...h=slope&desc=1

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    634 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X