Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Rising or falling slope
Collapse
X
-
Hello Brucelevy,
Thank you for your note.
You can check the Rising and Falling of the slope by using -
Additionally, to get the degrees you would need to use trigonometric functions under the Math class from C# to calculate this out.Code:// Rising if(Slope(Close, 0, 1) > Slope(Close, 1, 2)) // Falling if(Slope(Close, 0, 1) < Slope(Close, 1, 2))
https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
-
Before you start calculating angles please have a look at these threads:
Charts can be horizontally and vertically compressed. Angles and values for the slope were used prior to the advent of the PC and should not be used anymore. Slope is just a proxy for momentum. Instead of calculating slope you should take the momentum or the rate of change. Best normalize momentum by dividing it through the average range or the standard deviation calculated over the momentum period.
For more information please read the article "The C-Test" by William Eckhardt published by "Stocks & Commodities", which can be downloaded from the archive of www.traders.com. Here is an excerpt:
"RIGHT ANGLE INCLINATIONS:
The fallacy concerning the sizes of angles in a bar chart or price graph arises from ignoring price/time heterogeneity. As an example, consider the claim that a major downtrend and the subsequent uptrend tend to be at right angles to each other. In Figure 1, the first chart conforms to the right-angle rule; in Figure 2, the uptrend falls short of the right-angle projection; in Figure 3, the uptrend exceeds the projection. The problem: These are all charts of the same price series (December 1989 gold, July 17, 1989, to December 1, 1989), but only the vertical price scale is different. This technique is likely to give the user varying results depending on the chart service he or she uses."
I have attached the charts from this text below.Last edited by Harry; 02-14-2015, 06:07 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment