Strategy: Combo Z ScoreStrategy version of Combo Z Score
Objective:
Can we use both VIX and MOVE relationships to indicate movement in the SPY? VIX (forward contract on SPY options) correlations are quite common as forward indicators however MOVE (forward contract on bonds) also provides a slightly different level of insight
Using the Z-Score of VIX vs VVIX and MOVE vs inverted VIX (there is no M of Move so we use inverted Vix as a proxy) we get some helpful indications of potential future moves. Added %B to give us some exposure to momentum. Toggle VIX or MOVE.
If anyone has a better idea of inverted Vix to proxy forward interest in MOVE let me know.
Noticeable delta is that Vix only approach over the back test period is slightly better. Questions would be, what is the structure and nature of the market over the test period and in a bear market would MOVE or combined perform better.
Sentiment
Combo Z ScoreObjective:
Can we use both VIX and MOVE relationships to indicate movement in the SPY? VIX (forward contract on SPY options) correlations are quite common as forward indicators however MOVE (forward contract on bonds) also provides a slightly different level of insight
Using the Z-Score of VIX vs VVIX and MOVE vs inverted VIX (there is no M of Move so we use inverted Vix as a proxy) we get some helpful indications of potential future moves. Added %B to give us some exposure to momentum. Toggle VIX or MOVE.
If anyone has a better idea of inverted Vix to proxy forward interest in MOVE let me know.
Binance Futures Swap-Spot Basis LabelNote: This script will only work with Binance Futures Symbols
This script calculates the basis between the Binance Future and Binance Spot market for the coin you are currently viewing and paints a label on the chart which displays the percentage difference between future and spot. If the future is trading below the spot market the text will be red indicating backwardation and if the future is trading above spot, it will be green indicating contango. Please note this script will only work on Binance perps against Binance spot. The script will change based on what perp you are looking at, no inputs are required.
Binance Big Open Interest Delta Change v2 Note: This script will only work properly with Binance Futures symbols.
This script simply looks at the open interest for the symbol you are currently viewing and determines if a large change in open interest has occurred, which triggers a background color alert.
It does this by comparing the absolute value of the range of the current open interest bar with a simple average (length set by user) of the past x range. The user also determines what is considered a 'large' change in open interest by setting a multiplier with which the current range must exceed compared to the average range in order to trigger an alert.
If the change in open interest is an increase in OI, the alert is blue, and if the change in open interest is a decrease, the alert is orange.
The open interest ticker that is used for calculation is derived by adding the current ticker and "_OI" so that it auto changes each time you switch to a new Binance futures contract.
RSI - S&P Sector ETFsThe script displays RSI of each S&P SPDR Sector ETF
XLB - Materials
XLC - Communications
XLE - Energy
XLF - Financials
XLI - Industrials
XLK - Technology
XLP - Consumer Staples
XLRE - Real Estate
XLU - Utilities
XLV - Healthcare
XLY - Consumer Discretionary
It is meant to identify changes in sector rotation, compare oversold/overbought signals of each sector, and/or any price momentum trading strategy applicable to a trader.
Daily Short Volume RatioThe short volume ratio is the number of shares sold short divided by the average daily volume and is used to indicate sentiment. In its most basic form, short volume ratio above 0.5 indicates more folks are shorting the stock while a short volume ratio below 0.5 indicates more folks are buying the stock. Short volume and total volume data is collected daily from FINRA for the NYSE and the NASDAQ exchange and represents lit markets. Daily short and total volume is calculated after the exchanges close so will lag by a day on the chart.
This indicator displays the short volume ratio for the last 1, 2, 3, 4, and 5 days and includes a smoothing function (def: off) to better visualize trends.
The indicator also includes the ability to view the short volume ratio for the last day for a reference ticker (def: SPY) to compare with total market sentiment.
Thanks to those before me for providing ideas and code.
Multiple MA's (Nephew_Sam_)Plots upto 6 moving averages on your charts with and option to choose between EMA, SMA and RMA
You can choose to display the moving averages as either lines or a background and a custom gradient-like color for each MA + different colors for bull and bear momentum.
Asset risk metricsMeasures distance from a said source (high, close, open, ohlc4...) to last all time high, divided by the relative strength index . You are able to compare it to RSI or an RSI moving average (several types included). Default values are intended to be used on weekly timeframe , but serves as well on daily without changing much of the settings.
Feel free to edit/adapt the code, would love feedback on it.
Multiple EMAAn exponentially weighted moving average reacts more significantly to recent price changes than a simple moving average (SMA), which applies an equal weight to all observations in the period.
Here, i have merged multiple EMA into one indicator. traders would find it very convenient as multiple widely used EMA`s are merged into 1 indicator. one can also change the time and color from its settings as per their convenience.
About the practicality of this EMA`s:
Every EMA suggests the sentiments in a period of time.
The longer-day EMAs (i.e. 50 and 200-day) tend to be used more by long-term investors, while short-term investors tend to use 8 and 20 day EMAs.
One may prefer to short or to hedge their position when 200 day moving average is broken downside. vise-versa for long. Normally in one may expect around 2-3% move on either side when broken with volumes supporting it.
Buying power against Bitcoin and EthereumI created a simple tool where you can input your capital (in USD) and it will track your buying power against Bitcoin and Ethereum.
A handy tool for Dollar Cost Averaging and trend following systems.
Default value: You have 1000$
Formula: Buying power = Capital / Underlying assets
Trend IdentifierTrend Identifier for 1D BTC.USD
It smoothens a closely following moving average into a polynomial like plot.
And assumes 4 stage cycles based on the first and second derivatives.
Green: Bull / Exponential Rise
Yellow: Distribution
Red: Bear / Exponential Drop
Blue: Accumulation
Red --> Blue --> Green: indicates the start of a bull market
Green --> Yellow --> Red: indicates the start of a bear market
Green --> Yellow: Start of a distribution phase, take profits
Red --> Blue: Start of a accumulation phase, DCA
RSI vs Longs/Shorts Margin Ratio Percentage RankThis indicator plots the RSI of the current token and the percentage rank, of the RSI, of the ratio of a long margined token to a short margined token.
By default it plots the RSI of the current token with a color based on percentage rank the RSI of BITFINEX:BTCUSDLONGS divided by BITFINEX:BTCUSDSHORTS, so the assumption is that you are using it on a BTC chart. While you can select any Tradingview symbol for your Long and Short tokens I don't think you will get meaningful results unless you select a long and short margined token that matches your chart symbol, such as BITFINEX:ETHUSDLONGS and BITFINEX:ETHUSDSHORTS if you're trading ETHUSD. Even using margined tokens the results may not be meaningful, if there is not enough trade volume in the token, or if they are being manipulated, so you must backtest everything.
The three plot options are:
• Colored RSI - RSI plotted with colors based on the Longs/Shorts ratio
• Background Color - White RSI plot with Longs/Shorts ratio as background color
• RSI + Ratio - White RSI with Longs/Shorts ratio plotted in color
The chart shows all three options on an hourly BITFINEX:SOLUSD chart with BITFINEX:SOLUSDSHORTS and BITFINEX:SOLUSDLONGS.
By default it also plots a short term moving average and it can also plot the raw ratio rather than the percentage rank if selected.
This script started out as "RSI vs BITFINEX BTC Longs/Shorts Margin Ratio Percentage Rank" by me. I was interested in the ratio of BITFINEX:BTCUSDLONGS to BITFINEX:BTCUSDSHORTS as a measure of market sentiment and how that sentiment would magnify RSI changes. The volatility of the BTCUSDLONGS : BTCUSDSHORTS ratio was too low to get a good read, using a percent rank of the RSI of the ratio made the results more visible. After a discussion with @jason5480 I saw how opening it up to all margined Long / Short pairs was the best way forward. Unfortunately the name no longer matched the script, so I had to publish a new script.
Top 40 constituents of Nifty50Displays real-time candles of top 40 constituents of Nifty50 for a given time frame, side-by-side. This gives an overall idea of breadth and depth of market movements in the time-frame.
Please note that, this is not a standard chart rendered bar-wise and may take time to load as it requests multiple securities. You could modify the contents, from settings, to include stocks from your portfolio or indices of different sectors.
NSE:NIFTY
RSI vs BITFINEX BTC Longs/Shorts Margin Ratio Percentage RankThis indicator plots the RSI of the current token with a color based on percentage rank of the RSI of BITFINEX:BTCUSDLONGS divided by BITFINEX:BTCUSDSHORTS, with a plot of the moving average of the RSI. It can optionally plot the RSI in white and the ratio RSI in color, or the ratio as background color. It can also plot the raw ratio rather than the percentage rank if selected.
I was interested in the ratio of BITFINEX:BTCUSDLONGS to BITFINEX:BTCUSDSHORTS as a measure of market sentiment and how that sentiment would magnify RSI changes. The volatility of the BTCUSDLONGS : BTCUSDSHORTS ratio was too low to get a good read, using a percent rank of the RSI of the ratio made the results more visible.
This indicator should be used on a BTC chart.
[blackcat] L1 Simplest Sentiment ModelLevel 1
Background
My market sentiment indicator system mainly includes collecting various statistical data and drawing. Again, it was fitted using the OHLC data. This belongs to the latter.
Function
Through a simple calculation, the ratio of high and low breakouts to the price range, we know the sentiment of funds. At the same time, a delay line is used as a trigger signal to judge the inflection point of emotions through the golden fork and the dead fork. Mood thresholds can be defined, such as 20 and 80. This is an oscillator model, but also the simplest indicator of sentiment.
Remarks
Feedbacks are appreciated.
[blackcat] L3 Market Sentiment IndicatorLevel 3
Background
I've been thinking about trying out some technical indicators of market sentiment recently. Of course, this may not be limited to OHLC data, but requires more statistical data for analysis. However, I still wanted to try making a market sentiment indicator with OHLC. In this way, the difference between the two indicators can be compared later.
Function
This market sentiment indicator is functionally divided into two categories: the first is the sentiment line, which is a total of 3 lines. The first line is the yellow aggressive trader sentiment line, usually expressed as a 5-period moving average; the second line is the purple conservative trader interest line, which I used a slightly more complicated algorithm. The third line is the market sentiment line that takes the average of the first two. It is yellow when the market price is rising and purple when the price is falling.
The second type is the pressure line and the support line, a total of four, when they are support lines, the color is green; once they become resistance lines, the color will change from green to red, and show the current price of pressure or support.
Remarks
Feedbacks are appreciated.
Trend & Momentum V2Declutter your charts. Simple indicator combining trend and momentum using Moving Average (currently default to 9-day EMA) and RSI (default length of 8). A long signal is generated when the price closes above the moving average and the moving average color turns red to green which indicated that the momentum measured using RSI is greater than 50. A short signal is generated when the price closes below the moving average and the moving average color turns green to red indicating RSI is below 50. Confirmation is done if there is no reversal on the next candle. For best results use multiple timeframe charts to trade on the right side of trend and momentum.
NYSE New Highs vs New LowsNYSE New Highs vs New Lows is a simple market breadth indicator that compares HIGN, the number of new highs during that day, and LOWN, the number of new lows. The new highs are on top and lows are appropriately on bottom. Without averaging, it's a little chaotic so you can smooth them out as much as you want, and the top-right label shows how much you're smoothing.
Interpretation:
Essentially, we use $SPY or $QQQ as a proxy for what's going on in the market, but because the FAANG stocks are so heavily weighted, it's not always representative. If SPY is flat/down, but there are 200 new highs today, then one of the big boys is weighing down an otherwise very bullish market. It's like looking at one of those heatmap charts, but in a single number.
Bullish Trend
- Lots of new highs
- Very few new lows
Bearish Trend
- Lots of new lows
- Very few new highs
Potential Reversal
- Too high, 250+
- Too low, 150+
Impulse & SecurityThe logic of the indicator is simple. We have a large candle for the period N. In its range there are candles with the same extremums in the direction of the trend → Alert.
Important: It is not suitable for all coins and not for all TF
TIG's Market Internals Clouds Indicator v2.0=================================
== GENERAL INTRODUCTION
=================================
If you find market internals inform your intraday trading decisions (SPX, ES futures, SPY or more generally) this may be helpful.
Currently available internals are:
- ADD
- TICK
- TRIN
- VIX
- VOLD
Also, you can display your favorite alternative market internal (or BTC, if you want?!) by entering the relevant ticker in the 'Custom' field
=================================
== NOTES
=================================
The default EMA lengths seem to work reasonably well for 1, 2, 3-minute timeframes (except for TICK - you may wish to apply a bit more smoothing to TICK to reduce the noise)
Of course; you can add this indicator to your chart multiple times, and display a different internal each time.
The default Text Color is set as a mid-grey, which is readable in both TV color schemes. I prefer dark mode, and so I change the text color to white. You can't see the scheme setting from within a script, unfortunately, so this can't be automated.
=================================
== EXPERIMENTAL FEATURE
=================================
As a free bonus, the indicator can display the 30-bar (default) Pearson Correlation Coefficient between the internal, and price action (based on the super-fast EMA, to give a bit of smoothing). This may give a clue as to whether or not the market is aligned with what the internal is doing, or if the market (today) is not correlated with the particular internal.
Very roughly speaking:
- 0.50 means that 50% of the price action can be explained by reference to the internal. This is about the same level of correlation between VIX and Actual Move
- 0.80 suggests pretty strong correlation
I don't know why (yet) but sometimes this works, and sometimes it doesn't display a sensible figure.
=================================
== QUESTIONS AND FEEDBACK
=================================
If you have any general questions about market internals, Google is your friend.
If you have any specific queries, bug reports, feature requests or general feedback about this indicator please leave a comment below, and I'll get back to you ASAP!
Simple Volume/RSI MapTrying something new
x-axis - normalized volume
y-axis - normalized rsi
red/green dot - average of n samples
white dot - current sample
Ultimate risk management toolHow to use:
Use the cursor to select the time, entry, stop loss, and target position. Then a window will pop up and type the trading fee or any other things you want to adjust to calculate the actual reward/risk ratio according to the price you selected.
Known error:
Settings of this script can't be saved as default might due to the interactive price selection function. If anyone knows how to fix it, please let me know.
feature:
1. Dynamic profit label can move up and down vertically on the right-hand side of the box.
2. The breakeven line can tell you you can move your stop loss to the entry price when the price reaches it.
3. Calculate the actual reward/risk ratio based on the trading fee. The calculator only calculates the actual Risk/Reward Ratio, which might be helpful for scalpers.
4. When the price touches sl or tp, that side of the box will be highlighted. Sometimes it doesn't work but I will try my best to fix it. Feel free to share your idea to help me to fix it.
5. Price alert. This tool compares with the alert function but reopens it if you want to change the alert price.