Thanks - David
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Slope of Tangent along SMA
Collapse
X
-
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 - DavidTags: None
-
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=1BertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DJ888, Today, 10:57 PM
|
0 responses
1 view
0 likes
|
Last Post
by DJ888
Today, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
158 views
0 likes
|
Last Post Today, 10:23 PM | ||
Started by Belfortbucks, Today, 09:29 PM
|
0 responses
7 views
0 likes
|
Last Post
by Belfortbucks
Today, 09:29 PM
|
||
Started by zstheorist, Today, 07:52 PM
|
0 responses
7 views
0 likes
|
Last Post
by zstheorist
Today, 07:52 PM
|
||
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
151 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
Comment