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.
Contains utilities for generating averages from arrays. Useful for manipulated or cleaned data.
triangular(src, startingWeight) Calculates the triangular weighted average of a set of values where the last value has the highest weight.
src : The array to derive the average from.
startingWeight : The weight to begin...
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...
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.
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...
Draws an Equally Weighted Index of 25 securities. The inputs are pre-populated with the Top 25 cryptocurrencies by market cap at the time of publishing the script, but any 25 securities can be used.
Double click on this indicator's pane to view in full screen.
Note: Candle open is always equal to previous candle's close. I did this to avoid problems where...
VAWMA = VWMA and WMA combined.
Simply put, this attempts to determine the average price per share over time, weighted heavier for recent values.
Uses triangular algorithm to taper off values in the past (same as WMA does).
Why use this?
Let's say the earliest bar of the VWMA has a huge amount of volume. That means that when the next bar arrives, there will be...
Can be extended with more derivative or spot pairs, see the comments in the code for instructions. Most importantly, the pairs need to be added to the respective arrays in the same order, so that the weights are applied to the correct pairs.
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...
Important: I don't really know how people generally compute deviations from VWAP/VWMA, but smth tells me generally it's just a Av Dev/St Dev based on mean, not on appropriate basis, like volume weighted mean in our case. This version is mathematically correct, it first calculates weighted mean, than utilizes this weighted in mean...
As traders and investors now urge to console volume factors into their price action analysis. This script is an attempt to combine volume-weighted moving average (VWMA), volume-weighted average price (VWAP), along with the exponential moving average (EMA). I have found that this indicator works quite well with the stock market.
How to use the indicator:
This script is a compilation of several different stochastic indicators (and RSI) where the K value of each indicator is equally weighted. The purpose of the indicator is to combine many indicators together in a fashion that weights them easier. By default, the Stochastic and Stochastic RSI are both enabled - the idea is to speed up the relatively slower...
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...
The weighted close isn't an option for an input yet on TV so here is my contribution. It gives more weight to the close prices and I have included a signal line to look for buy and sell signals. Buy when the indicator goes over its signal line and sell when it falls below it.
This was a special request so let me know what other scripts you would like to see me...
The End Point Moving Average was created by Patrick E. Lafferty (Stocks & Commodities V13 (413-417)) and it is essentially a variation of the weighted moving average but the weight system is different. Feel free to change the offset and length amounts to adjust to your needs but I'm using the default amounts in my script. This hugs the price very closely and I...