VWOP: Volume Weighted & Oscillated PriceWhile playing around with the standard "ta.vwap" I wondered why there was no length input, so I did some research on what the underlying calculation actually is, and did my best to augment it so as to allow for a variable length based on an oscillator value.
Normal VWAP = (Number of Shares Bought x Typical Price) / Total Volume
In my VWOP Calculation, typical price is replaced by selected moving average type or "matype" and then multiplied by the volume.
Then a total value is calculated using math.sum with a length value that changes according to a selected oscillator's value. The total is then divided by
the sum of just volume using the same oscillating length value. Result is then passed through the selected"matype" once more to give the final result.
Indicator designed for use as a entry/exit indicator in conjunction with more traditional moving averages and/or signal filters. Useful for taking volume + an oscillator into account along with price, instead of just the price as with a simple moving average.
Customisable
Tunable SWMADissected the standard SWMA function and added options for user to change just about every part of it. Weights ,Lookback ,Source can all be changed in the settings.
Green is the standard SWMA, Using the Input value selected.(MAs/LRC/VWAP)
Red is the tuned SWMA, with the option of applying a final Output filter (MAs/LRC/VWAP). Uses 8 datapoints instead of 4 for the default.
Customization can really help expand upon the standard SWMA I find. Enjoy tuning to your hearts content
WAP Maverick - (Dual EMA Smoothed VWAP) - [mutantdog]Short Version:
This here is my take on the popular VWAP indicator with several novel features including:
Dual EMA smoothing.
Arithmetic and Harmonic Mean plots.
Custom Anchor feat. Intraday Session Sizes.
2 Pairs of Bands.
Side Input for Connection to other Indicator.
This can be used 'out of the box' as a replacement VWAP, benefitting from smoother transitions and easy-to-use custom alerts.
By design however, this is intended to be a highly customisable alternative with many adjustable parameters and a pseudo-modular input system to connect with another indicator. Well suited for the tweakers around here and those who like to get a little more creative.
I made this primarily for crypto although it should work for other markets. Default settings are best suited to 15m timeframe - the anchor of 1 week is ideal for crypto which often follows a cyclical nature from Monday through Sunday. In 15m, the default ema length of 21 means that the wap comes to match a standard vwap towards the end of Monday. If using higher chart timeframes, i recommend decreasing the ema length to closely match this principle (suggested: for 1h chart, try length = 8; for 4h chart, length = 2 or 3 should suffice).
Note: the use of harmonic mean calculations will cause problems on any data source incorporating both positive and negative values, it may also return unusable results on extremely low-value charts (eg: low-sat coins in /btc pairs).
Long version:
The development of this project was one driven more by experimentation than a specific end-goal, however i have tried to fine-tune everything into a coherent usable end-product. With that in mind then, this walkthrough will follow something of a development chronology as i dissect the various functions.
DUAL-EMA SMOOTHING
At its core this is based upon / adapted from the standard vwap indicator provided by TradingView although I have modified and changed most of it. The first mod is the dual ema smoothing. Rather than simply applying an ema to the output of the standard vwap function, instead i have incorporated the ema in a manner analogous to the way smas are used within a standard vwma. Sticking for now with the arithmetic mean, the basic vwap calculation is simply sum(source * volume) / sum(volume) across the anchored period. In this case i have simply applied an ema to each of the numerator and denominator values resulting in ema(sum(source * volume)) / ema(sum(volume)) with the ema length independent of the anchor. This results in smoother (albeit slower) transitions than the aforementioned post-vwap method. Furthermore in the case when anchor period is equal to current timeframe, the result is a basic volume-weighted ema.
The example below shows a standard vwap (1week anchor) in blue, a 21-ema applied to the vwap in purple and a dual-21-ema smoothed wap in gold. Notably both ema types come to effectively resemble the standard vwap after around 24 hours into the new anchor session but how they behave in the meantime is very different. The dual-ema transitions quite gradually while the post-vwap ema immediately sets about trying to catch up. Incidentally. a similar and slower variation of the dual-ema can be achieved with dual-rma although i have not included it in this indicator, attempted analogues using sma or wma were far less useful however.
STANDARD DEVIATION AND BANDS
With this updated calculation, a corresponding update to the standard deviation is also required. The vwap has its own anchored volume-weighted st.dev but this cannot be used in combination with the ema smoothing so instead it has been recalculated appropriately. There are two pairs of bands with separate multipliers (stepped to 0.1x) and in both cases high and low bands can be activated or deactivated individually. An example usage for this would be to create different upper and lower bands for profit and stoploss targets. Alerts can be set easily for different crossing conditions, more on this later.
Alongside the bands, i have also added the option to shift ('Deviate') the entire indicator up or down according to a multiple of the corrected st.dev value. This has many potential uses, for example if we want to bias our analysis in one direction it may be useful to move the wap in the opposite. Or if the asset is trading within a narrow range and we are waiting on a breakout, we could shift to the desired level and set alerts accordingly. The 'Deviate' parameter applies to the entire indicator including the bands which will remain centred on the main WAP.
CUSTOM (W)ANCHOR
Ever thought about using a vwap with anchor periods smaller than a day? Here you can do just that. I've removed the Earnings/Dividends/Splits options from the basic vwap and added an 'Intraday' option instead. When selected, a custom anchor length can be created as a multiple of minutes (default steps of 60 mins but can input any value from 0 - 1440). While this may not seem at first like a useful feature for anyone except hi-speed scalpers, this actually offers more interesting potential than it appears.
When set to 0 minutes the current timeframe is always used, turning this into the basic volume-weighted ema mentioned earlier. When using other low time frames the anchor can act as a pre-ema filter creating a stepped effect akin to an adaptive MA. Used in combination with the bands, the result is a kind of volume-weighted adaptive exponential bollinger band; if such a thing does not already exist then this is where you create it. Alternatively, by combining two instances you may find potential interesting crosses between an intraday wap and a standard timeframe wap. Below is an example set to intraday with 480 mins, 2x st.dev bands and ema length 21. Included for comparison in purple is a standard 21 ema.
I'm sure there are many potential uses to be found here, so be creative and please share anything you come up with in the comments.
ARITHMETIC AND HARMONIC MEAN CALCULATIONS
The standard vwap uses the arithmetic mean in its calculation. Indeed, most mean calculations tend to be arithmetic: sma being the most widely used example. When volume weighting is involved though this can lead to a slight bias in favour of upward moves over downward. While the effect of this is minor, over longer anchor periods it can become increasingly significant. The harmonic mean, on the other hand, has the opposite effect which results in a value that is always lower than the arithmetic mean. By viewing both arithmetic and harmonic waps together, the extent to which they diverge from each other can be used as a visual reference of how much price has changed during the anchored period.
Furthermore, the harmonic mean may actually be the more appropriate one to use during downtrends or bearish periods, in principle at least. Consider that a short trade is functionally the same as a long trade on the inverse of the pair (eg: selling BTC/USD is the same as buying USD/BTC). With the harmonic mean being an inverse of the arithmetic then, it makes sense to use it instead. To illustrate this below is a snapshot of LUNA/USDT on the left with its inverse 1/(LUNA/USDT) = USDT/LUNA on the right. On both charts is a wap with identical settings, note the resistance on the left and its corresponding support on the right. It should be easy from this to see that the lower harmonic wap on the left corresponds to the upper arithmetic wap on the right. Thus, it would appear that the harmonic mean should be used in a downtrend. In principle, at least...
In reality though, it is not quite so black and white. Rarely are these values exact in their predictions and the sort of range one should allow for inaccuracies will likely be greater than the difference between these two means. Furthermore, the ema smoothing has already introduced some lag and thus additional inaccuracies. Nevertheless, the symmetry warrants its inclusion.
SIDE INPUT & ALERTS
Finally we move on to the pseudo-modular component here. While TradingView allows some interoperability between indicators, it is limited to just one connection. Any attempt to use multiple source inputs will remove this functionality completely. The workaround here is to instead use custom 'string' input menus for additional sources, preserving this function in the sole 'source' input. In this case, since the wap itself is dependant only price and volume, i have repurposed the full 'source' into the second 'side' input. This allows for a separate indicator to interact with this one that can be used for triggering alerts. You could even use another instance of this one (there is a hidden wap:mid plot intended for this use which is the midpoint between both means). Note that deleting a connected indicator may result in the deletion of those connected to it.
Preset alertconditions are available for crossings of the side input above and below the main wap, alongside several customisable alerts with corresponding visual markers based upon selectable conditions. Alerts for band crossings apply only to those that are active and only crossings of the type specified within the 'crosses' subsection of the indicator settings. The included options make it easy to create buy alerts specific to certain bands with sell alerts specific to other bands. The chart below shows two instances with differing anchor periods, both are connected with buy and sell alerts enabled for visible bands.
Okay... So that just about covers it here, i think. As mentioned earlier this is the product of various experiments while i have been learning my way around PineScript. Some of those experiments have been branched off from this in order to not over-clutter it with functions. The pseudo-modular design and the 'side' input are the result of an attempt to create a connective framework across various projects. Even on its own though, this should offer plenty of tweaking potential for anyone who likes to venture away from the usual standards, all the while still retaining its core purpose as a traders tool.
Thanks for checking this out. I look forward to any feedback below.
NVME Market ScannerNVME Market Scanner is a dashboard that scans our preset market pairs to identify the previous signal call made by the Vanquisher X algorithm. It will also tell you whether or not it is a good time to enter based on the buy or sell call being the previous bar of the next candle rather than multiple bars. Furthermore you can choose to remove each section of the dashboard so that it is smaller and you can also create your own market scanner with settings panel. The dashboard is fully customisable and editable.
Note: Due to the retrieval of data from multiple pairs, expect the load time of this indicator to be much slower compared to others!
NVME Oscillator XThe NVME Oscillator X is designed to help you ride the trends, scalp the markets, stay onto winning positions longer and close the losing positions sooner. The oscillator provides you with 4 different optional confirmation plots that will show you the trend, the buy and sell arrows, the buying and selling activity and the overall market control. Our oscillator is a simplistic user friendly indicator that outputs a nice hill and valley aura on your charts and it can provide much earlier trend indications compared to other indicators available. Furthermore, the NVME Oscillator X can spot divergences on any timeframe, giving you another confirmation to top of your trading style helping you trade the opportunities available. There is also a fully functional and customisable dashboard in the oscillator that shows you the overall trend ( ranging, uptrend, downtrend ), recent selling and buying activity, activity pressure, previous divergence confirmation, market following trend confirmation and a multi-setting trend board. Now that is what you want on your charts.
NVME Oscillator X works best when combined with NVME Vanquisher X and Envious Cloud Caster as then you will get the highest probability trade possible when you combine it with your analysis and trading style.
"ENTER WITH PRECISION, FOCUS ON THE MISSION, REMOVE THE INDECISION, SUPPORT NVMEs VISION!"
This comes with: NVME Vanquisher X, Envious Cloud Caster, Envious Volume Matrix, NVME Trend Meter and future scripts!
Envious Volume Matrix"View it all from a different perspective, enter with the hive, stick to your motive, and the further you'll dive." ~ Envious Volume Matrix.
What is unique about this volume indicator compared to others?
The volume matrix is calculated with different maths and philosophies compared to others and it is combined with some indicators to create the final result. The volume matrix can be used to help see whether or not the bulls or bears are falling or rising so you can see what the next direction of the trend is going to be in. With the volume matrix, you have full control of the indicator. You can customise the timeframe, the colour scheme, the significance of the bull and bear's volume, the plot styles, the dashboard and your alerts. Now that is astonishing!
The volume matrix is to be used as a confluence with your analysis or trading style and should not in anyway shape or form be used as a indication to buy or sell just because the signal says so, it is there to give you a higher chance of having a high probability trade though past results is not indicative of future results and getting access doesn't mean you will become a millionaire in a day as it is not a get rich quick indicator so it won't guarantee 100% success.
Visit our website for more information, which can be found on my profile or on the signature of this indicator!
Does it repaint?
No, our volume matrix doesn't repaint as we do not use any variations where it will cause gaps, future predictions or miscalculations of historic bars.
Does it support all chart types?
Yes, all charts are supported with the volume matrix.
Features:
/Basic Settings
-Enable Custom Timeframe (This will toggle the settings for custom timeframe on and off)
-Custom Timeframe (input box, this will change the timeframe on the indicator to the value set)
-Lookback Period (This period will determine the bar levels needed to validate a calculation)
-Bull's significance (This value will change the strength of the bulls, decreasing the value will make the volume occur faster, increasing the value will make the volume slower)
-Bear's significance (This value will change the strength of the bears, decreasing the value will make the volume occur faster, increasing the value will make the volume slower)
/Miscellaneous
-Volume Styles (Changes the plot style to: Double Lines, Single Line, Histogram, Hills and Valleys, Bar Columns)
-Colour Scheme (Changes the colour scheme to the following options: Ice and Fire, Rhubarb and Custard, Strawberry and Lime, Orange and Purple, Black and White, Old School, Blue and Yellow, Green and Yellow, Purple and
Pink, Heat-O-Meter)
/Dashboard Settings
-Show Volume Dashboard (This will toggle the dashboard on and off)
-Dashboard X-LOC (This will change the x position of the dashboard)
-Text Colour (This will change the text colour of the dashboard)
/Custom Alerts
-Bull Switchover
-Bear Switchover
Envious Cloud CasterStruggle to follow the trend? Need help? Don't worry, the cloud caster has your back!
The cloud caster is a unique combination of different trend confirming indicators and methodologies that will change the output when a different trend is met. You can change the slow and fast period to your likings and it will provide you with a positive or negative colour in the direction of the trend. The cloud caster can be a really useful indicator as it will also contain a dashboard that shows you the trend of different periods so that you don't need to fill your charts up with lots of noisy indicators. You can also customise the cloud caster in any way you like making it suitable for your trading style!
Traders commonly struggle with deciding what to do in the current market situation but with an extra confirmation on your side, you will never miss out on a high probability trade again! You can rely on the cloud caster to provide you with all the long-term and scalping confirmations you need in your day-to-day trading.
The cloud caster should be used as a confluence with your analysis or trading style and should not in any way shape or form be used as a indication to buy or sell just because the signal says so, it is there to give you a higher chance of having a high probability trade though past results is not indicative of future results and getting access doesn't mean you will become a millionaire in a day as it is not a get rich quick indicator so it won't guarantee 100% success.
Does it work on all assets?
Yes, this will work on all assets.
Features:
/Calculation Base -> Changes the calculation's priority onto a different moving average within the module.
-EMA
-HMA
-SMA
-RMA
-ALMA
-VWMA
-WMA
/Internal Addon -> Using a price following line these are colour switchers added to the calculation module to confirm the direction of the trend or exhaustion phases.
-Strength Index
-Stochastic
-MACD
-Fisher
-Vortex
/Miscellaneous
-Hide Signals (This will hide the labels from the indicator)
-Custom Colour Scheme (Toggles the colour scheme on and off)
/Colour Schemes:
-Ice and Fire
-Rhubarb and Custard
-Strawberry and Lime
-Orange and Purple
-Black and White
-Old School
-Blue and Yellow
-Green and Yellow
-Purple and Pink
-Heat-O-Meter
/Dashboard Settings
-Show Dashboard
-No Dashboard
Dashboard X Position: (input value, changes the X position of the dashboard)
Text Colour: (color value, changes the text colour of the dashboard)
/Custom Alerts
-Buy Signals
-Sell Signals
-UpTrend Switch
-DownTrend Switch