declare real_size;


The real_size declaration is used in scripts of lower studies so that, when superimposed, they all employ a single scale marked off in absolute units. This can be useful if percentage view isn't desired for some reason. Note that real_size needs to be declared for all studies you are going to superimpose, otherwise the percentage view will be used.


declare lower;

declare real_size;
input length = 14;
input averageType = AverageType.WILDERS;

plot ADX = DMI(length, averageType).ADX;

A customized version of the ADX technical indicator that uses the real_size declaration.