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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
156 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
307 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
346 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
176 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment