NexusFi: Find Your Edge


Home Menu

 





Slope / rate of change


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Antisyzygy with 3 posts (1 thanks)
    2. looks_two patbateman with 2 posts (0 thanks)
    3. looks_3 Fat Tails with 2 posts (2 thanks)
    4. looks_4 winsor with 2 posts (0 thanks)
    1. trending_up 4,771 views
    2. thumb_up 3 thanks given
    3. group 6 followers
    1. forum 9 posts
    2. attach_file 1 attachments




 
Search this Thread

Slope / rate of change

  #1 (permalink)
 
patbateman's Avatar
 patbateman 
NY, NY
 
Experience: None
Platform: T4, NinjaTrader
Trading: All!
Posts: 235 since Mar 2012
Thanks Given: 113
Thanks Received: 200

Hello,

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?

"A Jedi's strength flows from the force."
-Yoda
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
MC PL editor upgrade
MultiCharts
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


patbateman View Post
Hello,

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?

Reply With Quote
Thanked by:
  #3 (permalink)
 winsor 
Los Angeles, California
 
Experience: None
Platform: MotiveWave, Optuma, Wav59
Posts: 50 since Jun 2012
Thanks Given: 5
Thanks Received: 14



patbateman View Post
getting the slope of my indicator

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.

Reply With Quote
  #4 (permalink)
Antisyzygy
Denver, Colorado, USA
 
Posts: 36 since Aug 2011
Thanks Given: 6
Thanks Received: 17


Fat Tails View Post
@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?

I am sort of a lurker here, but I'll comment. Fat Tails has discussed this before.

There's a good article on the scaling issue here : Fin Articles: William Eckhardt: The C-Test

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".

Reply With Quote
  #5 (permalink)
Antisyzygy
Denver, Colorado, USA
 
Posts: 36 since Aug 2011
Thanks Given: 6
Thanks Received: 17


Antisyzygy View Post
I am sort of a lurker here, but I'll comment. Fat Tails has discussed this before.

There's a good article on the scaling issue here : Fin Articles: William Eckhardt: The C-Test

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".

Just realized I'm an idiot after viewing this post for a second time. ROC = Rate of Change. Yes, as Fat Tails asked, could you explain more?

Reply With Quote
  #6 (permalink)
 winsor 
Los Angeles, California
 
Experience: None
Platform: MotiveWave, Optuma, Wav59
Posts: 50 since Jun 2012
Thanks Given: 5
Thanks Received: 14


Antisyzygy View Post
There's a good article on the scaling issue here : Fin Articles: William Eckhardt: The C-Test

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.

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.

Reply With Quote
  #7 (permalink)
Antisyzygy
Denver, Colorado, USA
 
Posts: 36 since Aug 2011
Thanks Given: 6
Thanks Received: 17


winsor View Post
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.



If anyone wants the C-test indicator I may share it, PM me.

Reply With Quote
Thanked by:
  #8 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


patbateman View Post
Hello,

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?

Here is a collection of "Angle/Slope" information:
Concept of Slope/Angle in indicators - Big Mike's Trading Forum

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
patbateman's Avatar
 patbateman 
NY, NY
 
Experience: None
Platform: T4, NinjaTrader
Trading: All!
Posts: 235 since Mar 2012
Thanks Given: 113
Thanks Received: 200

Hello everyone,

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."
-Yoda
Started this thread Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



patbateman View Post
Hello everyone,

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.


We are not confused, but you are not giving correct definitions. A slope is a geometrical concept, which can be expressed via an angle.

What you can calculate, is the value of your indicator of the current bar minus the indicator value for the previous bar. This is called the momentum over one period.

You just need to apply the momentum indicator, use your indicator as input series and set the period to 1.

Reply With Quote
Thanked by:




Last Updated on July 22, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts