Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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..
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
Can you help answer these questions from other members on NexusFi?
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
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.
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.