Volume Spread for VSA CustomHey everyone, I have been using volume a lot more lately as price action can sometimes get manipulated but volume shows us the truth!
Anyways, I have enjoyed the Volume Spread for VSA indicator but wished I had the code to change a few settings. This volume indicator includes spread analysis with the ability to customize input values and I'm making it open source so you can do with it as you please.
I have made notes all throughout the code to give suggestions on a few changes or why I have written it in such a way. I have also tried to section everything off to make it easier to see where each piece of the code is used. Overall I think it is a good example of how to code cleanly and how to add useful notes when you are learning Pine for yourself :D
The indicator on the price chart is my Donchian Channel indicator, which you can also find on my profile. This is the one I use every day.
Media Móvil Simple (SMA)
Kendall Rank Correlation NET on SMA [Loxx]Kendall Rank Correlation NET on SMA is an SMA that uses Kendall Rank Correlation to form a sort of noise elimination technology to smooth out trend shifts. You'll notice that the slope of the SMA line doesn't always match the color of the SMA line. This is behavior is expected and is the NET that removes noise from the SMA.
What is Kendall Rank Correlation?
Also commonly known as “Kendall’s tau coefficient”. Kendall’s Tau coefficient and Spearman’s rank correlation coefficient assess statistical associations based on the ranks of the data. Kendall rank correlation (non-parametric) is an alternative to Pearson’s correlation (parametric) when the data you’re working with has failed one or more assumptions of the test. This is also the best alternative to Spearman correlation (non-parametric) when your sample size is small and has many tied ranks.
Kendall rank correlation is used to test the similarities in the ordering of data when it is ranked by quantities. Other types of correlation coefficients use the observations as the basis of the correlation, Kendall’s correlation coefficient uses pairs of observations and determines the strength of association based on the patter on concordance and discordance between the pairs.
Concordant: Ordered in the same way (consistency). A pair of observations is considered concordant if (x2 — x1) and (y2 — y1) have the same sign.
Discordant: Ordered differently (inconsistency). A pair of observations is considered concordant if (x2 — x1) and (y2 — y1) have opposite signs.
Kendall’s Tau coefficient of correlation is usually smaller values than Spearman’s rho correlation. The calculations are based on concordant and discordant pairs. Insensitive to error. P values are more accurate with smaller sample sizes.
Included:
-Toggle on/off bar coloring
SMA EMA Bands [CraftyChaos]This indicator creates bands for SMA and EMA averages and adds an average of the two with the idea that price often touches one of them at support and resistance levels. Saves indicator space by combining all into one indicator
Kabalistic 36/72 SMAThe Kabalistic 36/72 SMA
This is a experimental indicator to identify potential changes in the market:
The short SMA:
If the price fall beneath the Short SMA, THEN I SHORT
The Long SMA:
If the price is found beneath the Long SMA, THEN I LONG.
SPX Scalping StrategyThis strategy points out good entries and exits to go with the direction of SPY
Used with:
Ticker: SPX 500 USD
Heiken Ashi Candles
1, 3, 5 min timeframe
Joe's Ultimate MA Ribbon (w/ Crossover Triggers)Tired of having to add multiple moving average indicators to your chart? Well, stop doing that.
Here's a sweet moving average ribbon (with 1-10 moving average lines!) that will make your charts look much cooler 😎.
Not only that, it also includes triggers for MA crossovers. So, yeah...you can pick which MA crossovers trigger for longs and shorts separately. Yup, you read that right.
Options:
Show/Hide MA Lines: Only show the lines you wanna see. No more. No less.
MA Type (can be different for each line!): EMA, SMA, SMMA (RMA), WMA, VWMA
MA Source (for each line): open, close, high, low, hl2, hlc3, ohlc4, hlcc4
MA Length (for each line): any number between 1 and 4999
Line Colors: Ooh, pretty.
Triggers: On or Off
Crossover Long Triggers: When _______ crosses over _______ on timeframe _______
Crossover Short Triggers: When _______ crosses over _______ on timeframe _______
Trigger Characters and Location
Cheat Code- Example 1; Short-Term; Follow the Trend BINANCE:BTCUSDT ; BINANCE:ETHUSDT ; BINANCE:FILUSDT ;
This strategy is simple and easy to read and takes advantage of conditional signs of trend reversals. It works best in 10-minute time frames for most large and mid-cap crypto. This code is a tutorial for creating a profitable yet easy strategy, and hopefully, it can be put to good use :)
SMA RegimeProvides a color coded indicator based upon both the slope of a moving average of choice, and the asset's position in relation to that moving average. If the specified moving average is downward sloping and the asset closes below the moving average the indicator will be red. If the specified moving average is upward sloping and the asset closes above the moving average the indicator will be green. Any other combination of these two factors will color the indicator yellow indicating indecision.
Expected DCA PriceShowing the expected price of the DCA strategy in half a year / one year / two years, weighted by the USD supply (M2) by default
Trend CandlesThis indicator uses simple moving average and exponential moving average to calculate the trend of the symbols.
If the trend is BULL, the bars' color will be lime(green).
If the trend is BEAR, the bars' color will be black.
Otherwise, the bars' color will be gray.
Enjoy it!
5 Symbol screener with triple MA and RSIBelow is a simple screener script fitted with 5 different symbols in the first column and in the other 4 columns the screener displays the respective moving averages and the RSI, the user has the ability to change between timeframes and different moving averages such as the SMA, EMA, RMA and WMA .
[_ParkF]MA_PackageThis indicator is a comprehensive set of moving averages.
All settings are handled in the input menu.
1. 6 moving averages are included.
2. You can edit the source of 6 moving averages.
3. You can change the type of each moving average line.
4. You can change the period value of each moving average line.
5. You can change the color of each moving average line.
6. You can change the thickness of each moving average line.
7. The predictive value of each moving average line will be displayed as a dot, and this value will be changed according to the type of the moving average line.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
이 지표는 이동평균선의 종합선물세트 입니다.
모든 설정은 input 메뉴에서 다뤄집니다.
1. 6개의 이동평균선이 포함 되어 있습니다.
2. 6개의 이동평균선의 소스를 수정할 수 있습니다.
3. 각각의 이동평균선의 타입을 변경할 수 있습니다.
4. 각각의 이동평균선의 기간값을 변경할 수 있습니다.
5. 각각의 이동평균선의 색상을 변경할 수 있습니다.
6. 각각의 이동평균선의 두께를 변경할 수 있습니다.
7. 각각의 이동평균선의 예측값이 점으로 표시될 것이고 이 값은 해당 이동평균선의 타입에 맞춰 변경됩니다.
DaveStratThis script attempts to guess inflection points in cryptocurrency asset prices using change in two simple moving averages on the daily timescale.
Moving Average Crossover StrategyThe Moving Average Crossover indicator uses 3 moving averages (2 simple moving averages and 1 exponential moving average ) to signal long and short opportunities based on moving average crossovers. This strategy serves as a backtest to that indicator. By taking entry and exit positions based on moving average crossovers, we are able to project profit with this script. You are given the option to select which moving average crossings trigger entry and exit signals. Fast refers to an EMA which should be your shortest MA. Slow refers to the first SMA which will serve as a signal line. Trend refers to a long SMA which will help determine if you should take long positions or short. You can also filter by extra conditions such as minimum volume or RSI. For example, you may have the script trigger a buy signal if the 5ema crosses the 20 sma while RSI reads 60 and sell if it crosses again.
This strategy starts with $100,000 and uses 10% of the account per trade.
Distance to 200 SMAThis indicator shows the relative distance (in %) from the closing price to the 200 SMA.
Vegas+200+Big Vol by RSU1. Vegas channel
The Vegas channel indicator is very effective as a short, medium and long-term trend observation indicator, and it has obvious support and resistance functions.
2. EMA200+MA200
Usually ema200 or ma200 is used as a watershed for fund institutions to evaluate the long-short trend of a stock trend.
3. Big volume box
Big volume is often used as a signal of a market trend turning,if it is greater than 4 times standard deviation it is marked as a Big volume in yellow box. There will be support and resistance at this price range.
Midas Mk. II - Ultimate Crypto Swing>> This scrip is only meant to be used in 4hour crypto chart <<
How It Works - To swing trade in a 4 hr candles, which has a much larger range than shorter timeframe candles, the script utilizes a longer timeframe ema, sma and MACDs to account for such. When the ema and sma crosses and the rate of change of the MACD histogram is in favor of the direction, then the system provides a long/short signal.
How To Use - The script works the best when the signal is in par with other analyses (trend, harmonic patterns, etc.) This script does not provide any exit signals , so I recommend exiting when the candle breaks out of the structure, or other strategies.
Updates or revisions will be recorded in the comments. Good luck with this script!
Estrategia Larry Connors [JoseMetal]============
ENGLISH
============
- Description:
This strategy is based on the original Larry Connors strategy, using 2 SMAs and RSI.
The strategy has been optimized for better total profit and works better on 4H (tested on BTCUSDT).
LONG:
Price must be ABOVE the slow SMA.
When a candle closes in RSI oversold area, the next candle closes out of the oversold area and the closing price is BELOW the fast SMA = open LONG.
LONG is closed when a candle closes ABOVE the fast SMA.
SHORT:
Price must be BELOW the slow SMA.
When a candle closes in RSI overbought area, the next candle closes out of the overbought area and the closing price is ABOVE the fast SMA = open SHORT.
SHORT is closed when a candle closes BELOW the fast SMA.
*Larry Connor's strategy does NOT use a fixed Stop Loss or Take Profit, as he said, that reduces performance significantly.
- Visual:
Both SMAs (fast and slow) are shown in the chart.
By default, the fast SMA is aqua color, the slow changes between green and red depending on the "trend" (price over slow SMA = bullish, below = bearish).
RSI can't be shown because TradingView doesn't allow to show both overlay and panel indicators, so candles get a RED color when RSI is in OVERBOUGHT area and GREEN when they're on OVERSOLD area to help with that.
Background is colored when conditions are met and a position is going to be open, green for LONGs red for SHORTs.
- Usage and recommendations:
As this is a coded strategy, you don't even have to check for indicators, just open and close trades as the strategy shows.
The original strategy uses a 5 period SMA instead of the 10, and 10/90 for oversold/overbought levels, this has been optimized after the testings and results but feel free to change settings and test by yourself.
Also, the original strategy was developed for daily, but seems to work better en 4H.
- Customization:
As usual I like to make as many aspects of my indicators/strategies customizable, indicators, colors etc., feel free to ask if you feel that something that should be configurable is missing or if you have any ideas to optimize the strategy.
============
ESPAÑOL
============
- Descripción:
Esta estrategia está basada en la estrategia original de Larry Connors, utilizando 2 SMAs y RSI.
La estrategia ha sido optimizada para un mejor beneficio total y funciona mejor en 4H (probado en BTCUSDT).
LONG:
El precio debe estar por encima de la SMA lenta.
Cuando una vela cierra en la zona de sobreventa del RSI, la siguiente vela cierra fuera de la zona de sobreventa y el precio de cierre está POR DEBAJO de la SMA rápida = abre LONG.
Se cierra cuando una vela cierra POR ENCIMA de la SMA rápida.
SHORT:
El precio debe estar POR DEBAJO de la SMA lenta.
Cuando una vela cierra en la zona de sobrecompra del RSI, la siguiente vela cierra fuera de la zona de sobrecompra y el precio de cierre está POR ENCIMA de la SMA rápida = abre SHORT.
Se cierra cuando una vela cierra POR DEBAJO de la SMA rápida.
*La estrategia de Larry Connor NO utiliza un Stop Loss o Take Profit fijo, como él dijo, eso reduce el rendimiento significativamente.
- Visual:
Ambas SMAs (rápida y lenta) se muestran en el gráfico.
Por defecto, la SMA rápida es de color aqua, la lenta cambia entre verde y rojo dependiendo de la "tendencia" (precio por encima de la SMA lenta = alcista, por debajo = bajista).
El RSI no puede mostrarse porque TradingView no permite mostrar tanto los indicadores superpuestos como los del panel, así que las velas obtienen un color ROJO cuando el RSI está en el área de SOBRECOMPRA y VERDE cuando están en el área de VENTA para ayudar a ello.
El fondo se colorea cuando se cumplen las condiciones y se va a abrir una posición, verde para LONGs rojo para SHORTs.
- Uso y recomendaciones:
Como se trata de una estrategia ya programada, ni siquiera hay que comprobar los indicadores, sólo hay que abrir y cerrar las operaciones tal y como muestra la estrategia en el gráfico.
La estrategia original utiliza una SMA de 5 periodos en lugar de 10, y 10/90 para los niveles de sobreventa/sobrecompra, esto ha sido optimizado después de las pruebas y los resultados, pero sé libre de cambiar la configuración y probarla por sí mismo.
Además, la estrategia original fue desarrollada para diario, pero parece funcionar mejor en 4H.
- Personalización:
Como siempre me gusta hacer personalizables todos los aspectos de mis indicadores/estrategias, indicadores, colores, etc., preguntar si notas que falta algo que debería ser configurable o si tienes alguna idea para optimizar la estrategia.
Dashed Line Moving AveragesHere's a simple script which i concocted using ideas from various authors with the goal of creating a slightly better Moving Average dashed line script imo...I think i managed to do just that and a bit more.. =)
Features:
- Contains one of each VWMA SMA EMA. You can set the input length.
- Ability to set spacing between characters of the plotted moving average line
- Horizontal offset of the moving average lines (just in case)
- Can add any fancy characters that suits your taste e.g ( . , _ , -, !, *, rocket, lava, etc) to the moving average
- If you duplicate the script and modify the "Size" parameter of the plotchar() function's variables with the choices provided in the commented-out code; you can have some fun!
This script is for entertainment & educational purposes only.
HEX Risk Metric (v0.2)This indicator plots a "risk metric" based on the % increases of the following averages:
ema21, sma50, sma100, sma200, sma300, sma600.
Depending on the rolling 7-day percentage increase of this moving average, a value is assigned to each data point, then normalized to a common range.
This set of metrics attempts to represent data similar to that of a heat map.
Users can adjust filter top, filter bottom, and toggle on/off the different metrics within the set.
HEX Risk Metric (v0.1)This indicator plots a "risk metric" based on the % increases of the following averages:
ema21, sma50, sma100, sma200, sma300, sma600.
Depending on the rolling 7-day percentage increase of this moving average, a value is assigned to each data point, then normalized to a common range.
This set of metrics attempts to represent data similar to that of a heat map.
Users can adjust filter top, filter bottom, and toggle on/off the different metrics within the set.