I'm having trouble getting any ROC of slope indicator working with getting the slope of my indicator...the error messages indicate that the problem is my indicator prints as a double, so ROC won't work.
Is it possible to code an alternative ROC without using the bars code in the built in version in NT?
@patbateman: I simply do not understand your question.
Slope is a visual representation of the momentum or the rate of change. The concept of slope only makes sense, if you use fixed scaling. In that case slope is near-identical with momentum or rate of change.
Could you post the indicators which you have tried and explain what you are doing?
The following user says Thank You to Fat Tails for this post:
If you're referring to the slope of the price trend, I've heard that Gann Analysis covers that using Gann Angles. I've been looking into that, but its rather complicated. Gann Analysis is a trading system, not just an indicator.
It actually discusses slope, which they call velocity in this case. That comes from physics essentially, velocity is the rate of change of position. Its related to basic calculus. I don't believe the example they have even in the article is good for fixed scaling, but I'd have to think about it and would rather ask a question first.
What is ROC here? To us math dudes we would think "rate of convergence" or for machine learning "receiver operating characteristic".
Last edited by Antisyzygy; July 11th, 2012 at 08:04 PM.
I don't think that indicator codes for most trading platforms can perform advanced mathmatical calculations; although, I have heard that "Quants" have programmed their own platforms to do this. This far exceeds the technical knowledge of most traders and they are considered to be among the market makers. If you are a Quant, please let us know about your platform and its codes.
Most quant jobs I have looked into require C++ or Matlab knowledge. Matlab is some great but expensive software. I've used it a lot while I was in college but its basically not affordable for the average person on their own. The only way to get it without paying thousands of dollars is to get a student version or to pirate it, and I wouldn't advocate that. I'd imagine these people use their own internal tools for a lot of what they do, but Matlab is a great environment for data analysis and prototyping.
That being said, various platforms like NinjaTrader give you access to full C# so you can do some pretty complicated stuff. You can also import various numerical mathematics libraries. I believe other platforms that aren't on the easylanguage train are similar.
The slope can be done, its just that Fat Tails mentioned that this calculation doesn't make sense without fixed scale. It doesn't pass something called a C-test, or Coherency test. I.e. the scale of the time series will affect the calculation. I have made a C-test indicator in NinjaTrader that lets me perform a C-test on any indicator (you put the indicator name in as a string) just because its much easier than doing the algebra. So far the dimensionless PFE passes, the Stochastic passes, etc. Things like MACD, Slope, etc. do not pass. Those are the easy ones to check just in their formulas but I made this C-test indicator as a quick test for any arbitrary indicator.
Here is a Slope indicator, it doesn't pass the C-test. The idea is to have the dotted line and the solid line overlap. If they do, then the indicator doesn't get biased base on its scale.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
If anyone wants the C-test indicator I may share it, PM me.
Last edited by Antisyzygy; July 15th, 2012 at 01:00 PM.
Reason: corrected factual info
The following user says Thank You to Antisyzygy for this post:
What I mean is very simple - I try to get the slope (current bar minus previous bar on a time chart) of an indicator, but it won't work. I'm not asking about the usefulness of slopes, just why Ninjatrader and dataseries won't do it.
Reread this if you are still confused.
"A Jedi's strength flows from the force."
Last edited by patbateman; July 22nd, 2012 at 06:01 PM.