adxslope - futures io
futures io futures trading



adxslope


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,800 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 5 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

adxslope

(login for full post details)
  #1 (permalink)
pinole california
 
 
Posts: 16 since Jul 2012
Thanks: 0 given, 1 received

hello again everybody i have been busy all day cranking out this new code to try to figure out adx slope. what im trying to do is get an indicator that will tell me the slope of adx mainly what im concerned about is the value if slope is negative it will cross past zero into the negative area and vice versa for positive slope

but i am having some issues maybe you guys can help me out...
lets start off with the code..

 
Code
inputs: 
	ADXLength( 14 );
	
variables:
    time1(0),
    time0(0),
    slopenum(0),
	zero(0), 
	slopedenom(0),
	ADXValue( 0 ),
	adxvalue1( 0 );
	
time1 = (time);	
time0 = (time - 1);
zero = (0);
ADXValue = ADX(adxlength);
adxvalue1 = Adx( ADXLength-1);
SlopeNum = (ADXValue1 - adxvalue);
slopedenom =(time1 - time0);

Plot1( slopenum/slopedenom, "ADX Slope",Green ) ;
plot2(zero,"0",red);
issues
- as soon as adx slope turns negative it should immediatly go into the negative area but there is a lag can somebody explain that am i doing something wrong? attached is a picture of the indicator and adx

- also what is a good piece of code to use for time.. ie if i was to be looking at a 5 min chart the slope denom would change into a 5 minute division if 30 thirty minute divesion and 60 would be 60 min and so on and so forth

- slope = y1-y2/x1-x2 so y is my adx value and x is my time its sooo straightforward i dont know why it isnt working



Reply With Quote

Can you help answer these questions
from other members on futures io?
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Cross border fund flows / fx correlations
Treasury Notes and Bonds
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
pinole california
 
 
Posts: 16 since Jul 2012
Thanks: 0 given, 1 received


Oh and one more thing im sure most people on this forum know this but adx is the measure between dmi- and dmi+ so the higher the adx the stronger the trend, but it is important to not that adx doesnt discriminate between uptrend and downtrend..
to reiterate the higher the adx the stronger the trend

Reply With Quote
 
(login for full post details)
  #4 (permalink)
pinole california
 
 
Posts: 16 since Jul 2012
Thanks: 0 given, 1 received

 
Code
Input: NumBars(1),adxlength(14); 
variable: adxslope(0), slope(0); 

adxslope = ADX(adxlength); 
slope = arctangent((adxslope - adxslope[NumBars])/NumBars); 

plot1(slope, "slope"); 
plot2(0,"Zero");
sometimes you cant wait for others to help you but always remember to help other my motto
so your welcome forums
your welcome

Reply With Quote
 
(login for full post details)
  #5 (permalink)
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,751 received

Hi,


anahat View Post
- also what is a good piece of code to use for time.. ie if i was to be looking at a 5 min chart the slope denom would change into a 5 minute division if 30 thirty minute divesion and 60 would be 60 min and so on and so forth

If you want to "know the timeframe" (for instance: "5 min") from the code, you could use the instructions BarType/BarType_ex and BarInterval. Please have a look in the documentation.

Nicolas

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Nicolas11 for this post:
 
(login for full post details)
  #6 (permalink)
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,751 received


anahat View Post
- as soon as adx slope turns negative it should immediatly go into the negative area but there is a lag can somebody explain that am i doing something wrong? attached is a picture of the indicator and adx

Actually, what we should see is: as soon as the ADX decreases, "slope" shall become negative.
It is the case on my computer with your above code.
You should plot the indicators (ADX and "slope") as points to better see it.

Nicolas

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Nicolas11 for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > adxslope


Last Updated on August 9, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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