Dissected 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...
Yo, posting it for the whole internet, took the whole day to find / to design the actual working solution for weighted percentile 'nearest rank' algorithm, almost no reliable info online and a lot of library-style/textbook-style solutions that don't provide on real world production level.
0) initial data
data = 22, 33, 11, 44, 55
weights = 5 ...
A mathematically elegant, native & modern way how to measure velocity/ strength/ momentum. As you can see it looks like MACD, but !suddenly! has N times shorter code (disregard the functions), and only 1 parameter instead of 3. OMG HOW DID HE DO IT?!?
MACD: "Let's take one filter (1 parameter), than another filter (2 parameters), then let's take dem difference,...
Couldn't find searching for Linearly Weighted Moving Average (LWMA) in tradingview. Found one with the LWMA title, but it uses plain WMA calculation without the linearity which more heavily weights recent price data, which I need, so I try to made one.
LWMAs are also quicker to react to price changes than SMA and EMA. If you want a moving average with less lag...
Linearly Weighted Ordinary Least Squares Moving Regression
aka Weighted Least Squares Moving Average -> WLSMA
^^ called it this way just to for... damn, forgot the word
Totally pwns LSMA for some purposes here's why (just look up):
- 'realistically' the same smoothness;
- less lag;
- less overshoot;
- more or less same computationally intensive.
Adopted to Pine from systemtradersuccess.com
They wrote that this average is designed to be a robust version of a moving average to reduce the impact of outliers, but I dont see a significant difference comparing it with SMA. So, I published it for the educational purposes.
To learn more about the robust filters and averages google Hampel Filter, Interquartile...
With the same idea of the VSA i make the VPSA to make synthetic graph of the price and the volume effect, its easy to see the volume trends. Each instrument have a more clear time frame to see the volume patterns.
Can use others indicators over the VPSA, only write in CAPITAL letters open, high, low, close or hl2 at inputs section.
This is an experimental study designed to identify the underlying trend bias and volatility of an instrument over any custom interval TradingView supports.
First, reset points are established at points where the opening price of the interval changes.
Next, Volume Weighted Average Price (VWAP) is calculated. It is the cumulative sum of typical price times volume...
With the same idea of the VPSA i make the VPSA2 to make Heiken Ashi style synthetic graph of the price and the volume effect, its easy to see the volume trends. Each instrument have a more clear time frame to see the volume patterns.
I see very useful like a secondary analysis layer. in the graph show the same RSI with price and VPSA2 like source.
This indicator was originally developed by Edwin "Sedge" Coppock (Barron's Magazine, October 1962).
Specially for @AlexMayorov :
1) Buy when indicator crosses the zero line upside
2) Sell when indicator crosses the zero line downside
Resets at the start of the day's session (9:50 am on the ASX).
Takes the first candle and checks if its a green candle (close > open), and adds the volume to a total (which starts at 0 at the start of the day).
Subtracts it if the candles in red.
Continues to do this along with all the candles.
The volume is also multiplied by the difference between open and...
Calculates weighted mean, variance, standard deviation, MSE and RMSE from time series variables or arrays.
When calculating from arrays, the function expects index 0 to be the most recent sample and weight values.
This is simply three moving averages in the same indicator, with the possibility to change the source, length, offset and type on every moving average (Simple, Exponential, Weighted, Volume-weighted, Triple EMA or a moving average that uses RSI ).
If you want to disable any of the moving averages, then do that under the "Style"-tab by unchecking the box for that...
I am reading "Investing with Volume Analysis: Identify, Follow, and Profit from Trends" by Buff Pelz Dormeier so I am going to implement all indicators that are considered there.
VW-MACD was developed by Buff Pelz Dormeier in 2000 and is based on the difference between a short-term volume-weighted moving average and a long-term volume-weighted...
Moving averages are filters on price data. This moving average creates a filter which factors in:
- the price RSI or it's Momentum
- the volume RSI
- the RVI or Volatility
Each factor is put through a least squares filter to smooth them first.
Then the factors are used to build a coefficient for an exponentially weighted average.
The chart above shows a...
This indicator will show the swing high and lows for the number of bars back. It's very easy to use and shows good support and resistance levels.
I then took it a step further and added a moving average with all the standard types in my indicators:
I then added Bollinger Bands to show...
Banknifty Weighted volume as per share ratio.
HDFC Bank – 27.56%
ICICI Bank – 22.91%
State Bank of India (SBI) – 12.42%
Kotak Mahindra Bank – 11.77%
Axis Bank – 11.49%
IndusInd Bank – 5.20%
AU Small Finance Bank Ltd. – 2.35%
Bandhan Bank – 1.73%
Federal Bank – 1.53%
IDFC First Bank Ltd. – 1.22%
Punjab National Bank (PNB)- 1.03%
RBL Bank – 0.79%
and moving average...
MULTI-TF AVERAGE BBANDS - with signals (BETA)
Overall, it shows where the price has support and resistance, when it's breaking through, and when its relatively low/high based on the magic of standard deviation.
created by gamazama. send me a shout if u find this useful, or if you create something cool with it.
%BB: The price's position in the boilinger band is...