Indicator that shows the curve/slope of another indicator?

Hi, I was just wondering if it is possible to make an indicator that displays how steep another indicator’s (ADX for example) curve/ slope is. In other words I want an indicator that gives me the derivative of another indicator, is this possible?

Ruth,
I understand your want for this, but I think slope is very subjective depending on how farm in/out your are zooming. Instead, you could probably write something up quick to run a % gain or drop. Most well coded indicators (including most of the ones included in MT4) use buffers, so pulling that data out of the buffer is pretty easy to do. with the indicators included you would just use the i<Indicator> function, if it was a custom indicator then you could use the iCustom call to pull the data from the needed buffer.

For instance, if the current MA is at say 1.5000, and the previous bar it was at 1.4000 you could say that we have a 7% increase. The formula being ((MA0/MA1)*100)-100.

As for ADX, there is a built in function, this is from the MQL4 documentation site:

double iADX( string symbol, int timeframe, int period, int applied_price, int mode, int shift)
Parameters:
[B]symbol[/B] - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
[B]timeframe[/B] - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. [B]
period[/B] - Averaging period for calculation. [B]
applied_price[/B] - Applied price. It can be any of Applied price enumeration values. [B]mode[/B] - Indicator line index. It can be any of the Indicators line identifiers enumeration value. [B]
shift[/B] - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

Thanks for the advice, a percentage change would be equally useful in this instance. I suppose something like “ADX of current candle”/“ADX of previous candle” would work.

Good advice, I have been looking for a way to measure change in Bollinger Bands combined with other indicators. Do you know of any basic EA using BB from which I can copy/paste the main parameters and its wording inside the EA? Using the % of increase in BB can be very useful to id a trend or avoid a side mkt, can you help? Thanks in advance. Max

Hi,

I am not a programmer but I am looking for an indicator that would provide the percentage channg in the ADX. Could I have a copy of the indicator that you would have written up? I would really appreciate it. Thank you, in advance.