The XFisher_org_v1 oscillator implemented as a color histogram, using volumes
Calculation formula:
For quite understandable reasons, the recalculation of overbought and oversold levels in such a modified oscillator should be performed using the same formula. In the final version, these levels are no longer permanent.
input int HighLevel=+150;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â // Overbought level input int LowLevel1=-150;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â // Oversold level
In the indicator input parameters, these levels are represented as levels of the source Fisher_org_v1 indicator multiplied by 100, and then these levels are multiplied at each indicator tick by volumes smoothed according to the same formula.
The indicator uses SmoothAlgorithms.mqh library classes (copy it to <terminal_data_folder>MQL5Include). The use of the classes is described in details in the article
Â
Fig.1. The XFisher_org_v1_Vol indicator