Slope of an indicator, frustrating =/ - NinjaTrader Programming | futures io social day trading
futures io futures trading


Slope of an indicator, frustrating =/
Updated: Views / Replies:10,786 / 45
Created: by gonzofist Attachments:7

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 7  
 
Thread Tools Search this Thread
 

Slope of an indicator, frustrating =/

  #1 (permalink)
Elite Member
PORTLAND, OR
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 185 since Jul 2011
Thanks: 74 given, 166 received

Slope of an indicator, frustrating =/

I am just starting to learn ninjascript (unsuccessfully), I wonder if someone could help.

I am trying to make an indicator that will return the slope value of a EMA or ADX or whatever I define and only the slope value.

I will be using it in Market Analyzer and every slope indicator I have tried to use ends up just pulling in the price in analyzer table.

I did manage to get "SlopeSimple" to pull in just the slope, but it wasn't normalized across different tick sizes, so I had very different numbers depending on the instrument.

I haven't quite figured out the structure of a indicator script, so pasting full code would be super super awesome .

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
PORTLAND, OR
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 185 since Jul 2011
Thanks: 74 given, 166 received


After a bit more research it sounds like a better way of doing this would be to use a velocity indicator of my EMA. Or perhaps "Rate of Change"......?

Reply With Quote
The following user says Thank You to gonzofist for this post:
 
  #4 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Not sure if you got what you wanted yet or not? If you want to try and code yourself what exactly are you having problems with? If this indicator I am posting below does what you want, and you need help getting the output into MarketAnalyzer, post back.

Have you tried THIS one?

It's called, "MASlopeBoxMulti."

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #5 (permalink)
Elite Member
PORTLAND, OR
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 185 since Jul 2011
Thanks: 74 given, 166 received


forrestang View Post
Not sure if you got what you wanted yet or not? If you want to try and code yourself what exactly are you having problems with? If this indicator I am posting below does what you want, and you need help getting the output into MarketAnalyzer, post back.

Have you tried THIS one?

It's called, "MASlopeBoxMulti."

I tried to get the slope from MASlopeBoxMulti to show in Market Analyzer first thing last night, but all I could ever get it to output was the actual value of the MA, not the slope (in degrees). I would have loved to get it to work =//

Reply With Quote
 
  #6 (permalink)
Elite Member
Des Moines, Iowa
 
Futures Experience: None
Platform: Ninja, TOS
Broker/Data: AMP/CQG, TOS
Favorite Futures: CL, TF, GC
 
madLyfe's Avatar
 
Posts: 1,641 since Feb 2011
Thanks: 9,217 given, 1,011 received


forrestang View Post
Not sure if you got what you wanted yet or not? If you want to try and code yourself what exactly are you having problems with? If this indicator I am posting below does what you want, and you need help getting the output into MarketAnalyzer, post back.

Have you tried THIS one?

It's called, "MASlopeBoxMulti."

do you get this working? i see the degree of the slope in the bottom right of the chart, but im not sure that its correct? you just put the same params of the ema/sma you are trying to find the slope of right?

dont believe anything you hear and only half of what you see

¯\_(ツ)_/¯

(╯°□°)╯︵ ┻━┻
Reply With Quote
The following user says Thank You to madLyfe for this post:
 
  #7 (permalink)
Elite Member
PORTLAND, OR
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 185 since Jul 2011
Thanks: 74 given, 166 received


madLyfe View Post
do you get this working? i see the degree of the slope in the bottom right of the chart, but im not sure that its correct? you just put the same params of the ema/sma you are trying to find the slope of right?

I have no problem getting it to show on chart, I am trying to pull the slope into Market Analyzer without success.

Reply With Quote
 
  #8 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


gonzofist View Post
I tried to get the slope from MASlopeBoxMulti to show in Market Analyzer first thing last night, but all I could ever get it to output was the actual value of the MA, not the slope (in degrees). I would have loved to get it to work =//

I see what you mean, I just tried it too.

Reply With Quote
 
  #9 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Aaargh!!!

I spent some time trying to get this value into an exposed variable but coudln't figure it out with my limited knowledge.

The actual calculation is done in a function under the main body, and stored into a variable called 'degrees.' I was able to print the value of the degrees in the output window, but I coudln't capture it into a global variable so that I could make it available to Market Analyzer.

I tried declaring a global variable up top, then capturing that degree value in that function @ the bottom, which I thought would then make it accessible to Market Analyzer after declaring it as such in the properties.

But that was a no-go.

Attached Thumbnails
Slope of an indicator, frustrating =/-prime2011-09-01_175733.jpg  

Last edited by forrestang; September 1st, 2011 at 07:58 PM.
Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #10 (permalink)
Elite Member
PORTLAND, OR
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 185 since Jul 2011
Thanks: 74 given, 166 received



forrestang View Post
Aaargh!!!

I spent some time trying to get this value into an exposed variable but coudln't figure it out with my limited knowledge.

The actual calculation is done in a function under the main body, and stored into a variable called 'degrees.' I was able to print the value of the degrees in the output window, but I coudln't capture it into a global variable so that I could make it available to Market Analyzer.

I tried declaring a global variable up top, then capturing that degree value in that function @ the bottom, which I thought would then make it accessible to Market Analyzer after declaring it as such in the properties.

But that was a no-go.

Thanks for trying Forrestang. I will figure something else out with the Market Analyzer, trying to rig something up to save on screen real estate, which is a problem for me right now.

Reply With Quote

Reply



futures io > > > > > Slope of an indicator, frustrating =/

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
dmplus v3a is there a slope indicator? bobarian NinjaTrader 4 January 11th, 2013 12:09 PM
STOPS are Frustrating (SL) ...to take or not to take hatorihanzo Psychology and Money Management 113 March 10th, 2012 08:21 AM
Use of Rising() and Slope() MXASJ NinjaTrader Programming 17 August 13th, 2011 12:31 PM
Using slope of an indicator in an auto-strategy nanobiotech NinjaTrader Programming 4 August 6th, 2010 12:31 PM
Calculating the slope of _ADXVMA_Alertsv01_5_1 nanobiotech NinjaTrader Programming 3 April 6th, 2010 01:35 PM


All times are GMT -4. The time now is 09:34 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.227.175