I checked the code in the ColoredMA that I posted a link to in my last post. It colors that Line based on the slope alone. Most of the colored MA's posted in the downlaod section are actually checking the angle of the line. That way you can differentiate between slowly rising and steeply rising, which some feel gives you an idea of the momentum of the trend.
You have to add code in several places to accomplish this. If you are comfortable with coding you can down load one of the colored ma's in the download section and copy the code snippets to your own code.
The indicators that I have seen that paint the line according to the trend and "slope"
of the line calculate the angle of the line and then filter that by fixed angle values to determine the color of the line.
If you import anyone of those and open it in the editor window you should be able to copy the relevant code.
Let me know if you are having problems or need help.
Thanks RBSailing, but I am unable to do something with a code . I am not a programmer!
So I really need help doing what you said would get the results I am ö
looking for. I would appreciate your help. my mail is email@example.com
I have added the code to calculate the angle of the slope of the indicator to the TEMA in the NT indicators. I have posted the resulting indicator in the download section. Just look for TEMA With Slope.
You can call this indicator in your strategy and get the value of the slope for each bar.
The code would be
this will return the slope of the line at the current bar. The "13 is the period of the TEMA.
The following user says Thank You to RBSailing for this post: