Indicator Difference2 shows the difference between the current price and the price as of N periods ago, as a histogram.
It has three input parameters:
- Period - period;
- Calculation type - type of calculations:
- Absolute - calculations in absolute values;
- Relative - calculations in relative values.
- Applied price - price used for calculations.
Calculation type = Absolute:
Difference[i] = Price[i] - Price[i-Period]
Calculation type = Relative:
Difference[i] = 100*(Price[i] - Price[i-Period])/Price[i-Period]