DislikedHi everyone! To save CPU, can you add a parameter (int VisualBar) to this code? If VisualBar=0 (default setting) the indicator is visualised as now (for all story), if user chooses a value >0, the indicator is simply visualized in the past only for the chosen bars. {file}Ignored
This indicator already updates once per bar (on new bar), so it's already light.
So, most of the time it does no calculations at all, just when a new bar starts ticking.
However, there are other issues with this indicator - it's not correct at all.
Here is the improved version:
Attached File(s)
Improvements:
- Made the indicator fixed minimum = 0, fixed maximum = 100;
- Normalized all calculations to the fixed minimum and maximum;
- Improved the plotting so that the pseudo-histograms (plotted by trendlines) aren't being plotted beyond the two lines;
Here is the new, even more improved version:
UPDATE!!!
Attached File(s)
Improvements:
- Using buffers instead of graphical objects;
- Using DRAW_LINE instead of DRAW_HISTOGRAM in order to simplify and make the indicator lighter;
- Further improving perfomance by using MaxBars;
- Removed objects for OBOS levels;
- Added OBOS levels as indicator levels;
- Cleaned up the code from unused variables, functions and lines.
- Enabled usage of selected Applied Price;
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!
2