Version 3: Major Update!
note: There are significant changes here, proceed with caution before updating any active instances as adjusted parameters are likely to reset.
What’s new:
Updated to PineScript v6. Imported the RawCuts_01 library.
Source inputs for WAP and Side have been updated to include the current full suite of weighted inputs from the library. A second aux input has been added (the indicator-on-indicator functionality is no longer restricted to a single instance).
WAP (main): In addition to the existing Arithmetic and Harmonic versions, the Geometric version is now included, thus completing the trilogy. As default only the standard two are visible like before, however there are toggle switches to show/hide each of the three (located in the ‘visuals’ section beneath colour and opacity). Geometric effectively replaces the previous (hidden) MidWAP which has therefore been removed.
An additional parameter for volume weighting is now included, this is based upon the same system used in Weight Gain 4000. Set a value from 0 to 1, where 1 = fully weighted (eg: VWAP) and 0 = unweighted (eg: TWAP). Where no volume data is available, it will remain unweighted.
EMA smoothing has been recalculated to allow floating point length values to enable more fine adjustments.
Bands: An option to centre bands around the Geometric WAP has been included. When enabled, bands are added to and subtracted from Geometric WAP, when disabled (default state), bands are added to Arithmetic and subtracted from Harmonic as before.
Side: This has been updated to use the full suite of Weight Gain 4000 filters imported from the library, complete with adjustable volume weighting for each (as above, 1 = fully weighted, 0 = unweighted).
Alerts: These have been given a complete overhaul, now based primarily upon the newer ‘Any alert() function call’ system. This allows for better execution of the previously attempted system wherein each potential cross can be activated for inclusion using the relevant on/off toggles. The ‘alerts’ section has thus been updated to include toggles for each possible up or down condition (note: bands still need to be active in order to generate alerts). These toggle switches also apply to the plotshape() markers on the chart. Some legacy alertcondition() presets are included however these are limited to crossings of the three main WAPs only.
Misc: Loads more code improvements to the whole script and main functions. WAP fill gradient is slightly different, now using a library function. The entire interface layout has been improved to be more space-efficient and logically arranged, some parameters have been renamed. Tooltips have been updated to better reflect the new functionality.
There may be more that I’ve forgotten but this should cover the main things. I have a few ideas for minor updates in the future but that’s all for now.