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..
- 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
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
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
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.
The following user says Thank You to Nicolas11 for this post: