Changes in ver 2.0:
- fixed hma/wma(src, 0) error when len = 1 by adding a max(2,len) wrapper to hma function
- 3x separate TFs for EMAs, SMAs and BB groups instead of 7 preset combinations
- any BB MA Type option
- advanced X,Y Smoothing from MTF Pro version, added Y == 0, X > 0, TF >= deltaX_max_tf - X,Y smoothing disabled (stair stepping on high TFs)
- smoothing applied to BB MA only, excluding BB bands because fill won't work with smoothed bands. See MTF Pro version to learn how smoothing works.
- support for timeframes in H: H, 2H, 4H etc
- removed src security call (not needed)
- moved show/hide flags to top
Note: Recently TradingView has limited Replay Mode to D,W,MN only for free accounts. Pinescript security calls are now also limited.
You won't be able to plot any TF < D1 in Replay Mode (you will see straight lines) but all TFs will work properly in history and real-time modes. This is not a bug.
Smoothing:
X Y Point Density/MTF Smoothing of MA stair stepping on custom TFs - decides whether to show/hide ma values
- X,Y == 0 - X,Y smoothing disabled (stair stepping on high TFs)
- X == 0, Y > 0 - X,Y smoothing applied to all TFs
- Y == 0, X > 0 - X smoothing applied to all TFs < deltaX_max_tf, Y smoothing disabled
- Y == 0, X > 0, TF >= deltaX_max_tf - X,Y smoothing disabled (stair stepping on high TFs)
- X > 0, Y > 0 - Y smoothing applied to all TFs, then X smoothing applied to all TFs < deltaX_max_tf
X Smoothing with Y == 0 - shows only every deltaX-th point starting from the first bar.
X Smoothing with Y > 0 - shows only every deltaX-th point starting from the last shown Y point, essentially filling huge gaps remaining after Y Smoothing with points and preserving the curve's general shape
Y Smoothing reduces points on all TFs, removes adjacent points with prices within deltaY, while preserving the smaller curve details.
X Smoothing on high TFs with already scarce points produces weird curve shapes, it works best only on high density lower TFs
A combination of X,Y produces the most accurate smoothing. Higher delta value - larger range, more points removed.