Hey,
I am interested in an indicator called – directional movement
The indicator is of course in the system.
But when I want to select the number of days (default = 14)
I have the option to change the number of days but they change to the values of both the DI and the ADX values.
I would like to be able to give one value to DI
And another value to ADX.
There is a technical possibility to do this in the system by adding two – DIRECTIONAL MOVEMENT with different values.
Then hide the unwanted lines.
But is it possible to program an indicator that will have the option of changing without making it a complicated process?
Many thanks in advance for help.
So, actually I think I’ve been able to find a solution –
Attached code:
mydiplus=DIplus[dmivalue](close)
mydiminus=diminus[dmivalue](close)
myadx=ADX[adxvalue]
return mydiplus as "dmi+" ,mydiminus as "dmi-", myadx as "adx"
I needed this because many people like to use different values (including my teacher).
The reason is that since the ADX is built on the results of the DMI, if it is in the same values – you will get a very delayed result.
Do you think there is a point in publishing this in the directory of indicators on the site?