YinYang RSI Volume Trend StrategyThere are many strategies that use RSI or Volume but very few that take advantage of how useful and important the two of them combined are. This strategy uses the Highs and Lows with Volume and RSI weighted calculations on top of them. You may be wondering how much of an impact Volume and RSI can have on the prices; the answer is a lot and we will discuss those with plenty of examples below, but first…
How does this strategy work?
It’s simple really, when the purchase source crosses above the inner low band (red) it creates a Buy or Long. This long has a Trailing Stop Loss band (the outer low band that's also red) that can be adjusted in the Settings. The Stop Loss is based on a % of the inner low band’s price and by default it is 0.1% lower than the inner band’s price. This Stop Loss is not only a stop loss but it can also act as a Purchase Available location.
You can get back into a trade after a stop loss / take profit has been hit when your Reset Purchase Availability After condition has been met. This can either be at Stop Loss, Entry or None.
It is advised to allow it to reset in case the stop loss was a fake out but the call was right. Sometimes it may trigger stop loss multiple times in a row, but you don’t lose much on stop loss and you gain lots when the call is right.
The Take Profit location is the basis line (white). Take Profit occurs when the Exit Source (close, open, high, low or other) crosses the basis line and then on a different bar the Exit Source crosses back over the basis line. For example, if it was a Long and the bar’s Exit Source closed above the basis line, and then 2 bars later its Exit Source closed below the basis line, Take Profit would occur. You can disable Take Profit in Settings, but it is very useful as many times the price will cross the Basis and then correct back rather than making it all the way to the opposing zone.
Longs:
If for instance your Long doesn’t need to Take Profit and instead reaches the top zone, it will close the position when it crosses above the inner top line (green).
Please note you can change the Exit Source too which is what source (close, open, high, low) it uses to end the trades.
The Shorts work the same way as the Long but just opposite, they start when the purchase source crosses under the inner upper band (green).
Shorts:
Shorts take profit when it crosses under the basis line and then crosses back.
Shorts will Stop loss when their outer upper band (green) is crossed with the Exit Source.
Short trades are completed and closed when its Exit Source crosses under the inner low red band.
So, now that you understand how the strategy works, let’s discuss why this strategy works and how it is profitable.
First we will discuss Volume as we deem it plays a much bigger role overall and in our strategy:
As I’m sure many of you know, Volume plays a huge factor in how much something moves, but it also plays a role in the strength of the movement. For instance, let’s look at two scenarios:
Bitcoin’s price goes up $1000 in 1 Day but the Volume was only 10 million
Bitcoin’s price goes up $200 in 1 Day but the Volume was 40 million
If you were to only look at the price, you’d say #1 was more important because the price moved x5 the amount as #2, but once you factor in the volume, you know this is not true. The reason why Volume plays such a huge role in Price movement is because it shows there is a large Limit Order battle going on. It means that both Bears and Bulls believe that price is a good time to Buy and Sell. This creates a strong Support and Resistance price point in this location. If we look at scenario #2, when there is high volume, especially if it is drastically larger than the average volume Bitcoin was displaying recently, what can we decipher from this? Well, the biggest take away is that the Bull’s won the battle, and that likely when that happens we will see bullish movement continuing to happen as most of the Bears Limit Orders have been fulfilled. Whereas with #2, when large price movement happens and Bitcoin goes up $1000 with low volume what can we deduce? The main takeaway is that Bull’s pressured the price up with Market Orders where they purchased the best available price, also what this means is there were very few people who were wanting to sell. This generally dictates that Whale Limit orders for Sells/Shorts are much higher up and theres room for movement, but it also means there is likely a whale that is ready to dump and crash it back down.
You may be wondering, what did this example have to do with YinYang RSI Volume Trend Strategy? Well the reason we’ve discussed this is because we use Volume multiple times to apply multiplications in our calculations to add large weight to the price when there is lots of volume (this is applied both positively and negatively). For instance, if the price drops a little and there is high volume, our strategy will move its bounds MUCH lower than the price actually dropped, and if there was low volume but the price dropped A LOT, our strategy will only move its bounds a little. We believe this reflects higher levels of price accuracy than just price alone based on the examples described above.
Don’t believe us?
Here is with Volume NOT factored in (VWMA = SMA and we remove our Volume Filter calculation):
Which produced -$2880 Profit
Here is with our Volume factored in:
Which produced $553,000 (55.3%)
As you can see, we wen’t from $-2800 profit with volume not factored to $553,000 with volume factored. That's quite a big difference! (Please note previous success does not predict future success we are simply displaying the $ amounts as example).
Now how about RSI and why does it matter in this strategy?
As I’m sure most of you are aware, RSI is one of the leading indicators used in trading. For this reason we figured it would only make sense to incorporate it into our calculations. We fiddled with RSI for quite awhile and sometimes what logically seems to be the right way to use it isn’t. Now, because of this, our RSI calculation is a little odd, but basically what we’re doing is we calculate the RSI, then turn it into a percentage (between 0-1) that can easily be multiplied to the price point we need. The price point we use is the difference between our high purchase zone and our low purchase zone. This allows us to see how much price movement there is between zones. We multiply our zone size with our RSI multiplication and we get the amount we will add +/- to our basis line (white line). This officially creates the NEW high and low purchase zones that we are actually using and displaying in our trades.
If you found that confusing, here are some examples to why it is an important calculation for this strategy:
Before RSI factored in:
Which produced 27.8% Profit
After RSI factored in:
Which produced 553% Profit
As you can see, the RSI makes not only the purchase zones more accurate, but it also greatly increases the profit the strategy is able to make. It also helps ensure an relatively linear profit slope so you know it is reliable with its trades.
This strategy can work on pretty much anything, but you should tweak the values a bit for each pair you are trading it with for best results.
We hope you can find some use out of this simple but effective strategy, if you have any questions, comments or concerns please let us know.
HAPPY TRADING!
Basis
Binance Basis OscillatorBinance Basis Oscillator illustrates the premium or discount between Binance spot vs perps.
This indicates whether speculators (i.e. traders on perps) are paying premium vs spot. If true then speculation is leading, indicating euphoria (at certain levels).
Conversely, spot leading perps (i.e. perps at a discount) shows extreme bearish conditions, where speculation is on the short side. Indicating times of despair.
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.
BTC Weighted Agg. Basis [Overlay] [Moto]Hello traders,
This script shows the exchange volume-weighted aggregate basis for Bitcoin. This is the accompanying overlay version of the script which shows plotshapes according to the specified levels of aggregate contango or backwardation.
Exchanges have differing significance to the traded price of BTC and so this script calculates the respective volume and price of the major exchanges to more accurately represent the difference between the markets spot price and the markets perpetual future/swap price.
Spot references:
Coinbase
Bitfinex
Binance
Bitstamp
FTX
OKex
Huobi
Bybit
Perp references:
Bitfinex
Binance
FTX
OKex
Huobi
Bybit
Deribit
There are options in the settings to use either basis point scaling or %, though the color bracketing is set to basis points by default.
Users can change the candle close resolution to see a larger/smaller time frame data set.
An important feature is the ability to filter the barcolor on the chart to filter only for basis increase or decrease depending on the influence of spot buying or selling.
As of publishing, the barcoloring is set to only display when you're on a common BTC spot or BTC perp chart. This is to avoid confusion.
Thanks
BTC Weighted Agg. Basis [Osc] [Moto]Hello traders,
This script shows the exchange volume-weighted aggregate basis for Bitcoin.
Exchanges have differing significance to the traded price of BTC and so this script calculates the respective volume and price of the major exchanges to more accurately represent the difference between the markets spot price and the markets perpetual future/swap price.
Spot references:
Coinbase
Bitfinex
Binance
Bitstamp
FTX
OKex
Huobi
Bybit
Perp references:
Bitfinex
Binance
FTX
OKex
Huobi
Bybit
Deribit
There are options in the settings to use either basis point scaling or %, though the color bracketing is set to basis points by default.
Users can change the candle close resolution to see a larger/smaller time frame data set.
An important feature is the ability to filter the barcolor on the chart to filter only for basis increase or decrease depending on the influence of spot buying or selling.
As of publishing, the barcoloring is set to only display when you're on a common BTC spot or BTC perp chart. This is to avoid confusion.
Thanks
Spot [Moto]Hello traders,
This indicator was primarily designed to show the dominating influence of the underlying spot asset while trading perpetual futures, specifically on Binance.
IMPORTANT: In order for this indicator to work properly/accurately you must be observing a Binance Perpetual future chart. The indicator detects which perpetual future symbol you're observing and changes its comparative metrics accordingly. If you're observing some other chart family, it will either be inaccurate or default to Binance spot BTC vs Binance perp BTC.
In my opinion spot price and metrics are more important to observe than derivatives. If I'm looking for entries or exits I want to know that spot is leading the way, and with evidential conviction. This indicator/signal is designed to be used in context and not to be the sole metrics observed. By comparing the spot chart metrics and the respective spot chart metrics, one is able to ascertain which candles are predominantly 'lead' or dominant via spot price action or conversely derivative lead. Generally, I've found, derivative lead moves have a highly likelihood of reverting
1) Spot engulfing - When spot has exerted control successfully on the current candlestick
This and other plot shapes contain plot shape sizing options and are optionally filtered via the cycled Rsi in the inputs
Smaller plot shapes (auto-sized) show when the candle is spot influenced, but not engulfing.
2) Spot Candle reversals - "E" and "e" plot shapes
These signals are sequential engulfing and opposing candles. "E" being when sequential engulfing candles print, "e" forms when spot candles are sequential, opposing, but not engulfing.
3) HTF Spot engulfing - Same as above but these are on a high time frame reference which have repainting on by default (optional in input).
These will indicate on lower time frame candles if that higher time frame is being spot influences + engulfing. These are hard set to daily, 3 day, and weekly references.
4) Bear / Bull Sequences: "Strong" / "Weak" plot shapes
These signals are looking for a Rsi mid-line (50) 'bounce' among the last four candles on the observed time frame. For example, this will give a signal when the rsi is above, below, below, and back above the 50 on the cycled Rsi.
5) "Prox" plot shapes - "P" and "Prox"
These plot shapes are purely based on Rsi and the confluence between two time frames. Signals occur when the low time frame and high time frame are near the 50 line of their respective Rsi but on opposing sides. There are two sets of these, comprising two different (optional) times frames each. Essentially these signals are to point out potential places of cascade in either direction. If however the market decides to "save" price, action can continue or perhaps violently push in the opposite direction. Consider them warnings to either follow or take advantage of. "P" plots indicate the lower time frame set, while "Prox" indicate the higher time frame signals. These signals can be optionally filtered by Rsi-Vwap directional bias, i.e above or below its "normal" range.
6) Simultaneous Rsi signals - "S"
These signals (optionally shown) print when two Rsi of two different time frame are simultaneously above their 50 mid-line but within a certain distance from the 50, with the candle in the preferred direction, and filtered via Rsi-Vwap. Time frame resolutions can be changes in the settings.
7) Reversion signals (Work in progress) - "R" plot shapes
These signals indicate via a set price difference when candles are of a certain size ($) and are derivative lead. Users can change the dollar change threshold in the settings.
8) Bar-coloring is provided on the more important signals
9) Alerts for almost all of the aforementioned metrics are included
Thanks,
DM for access
BTC Futures BasisShows various basis percentages in a table and plots historical basis. Also has an alert function for backwardation events. Useful for tracking bullish/bearish sentiment in BTC futures markets.
*Currently displays March and June futures for the following exchanges: Bitmex, Binance, Deribit, Okex, and FTX
Also displays CME Continuous Next Contract. All of the symbols are customizable.
-----------
Market-wide backwardation usually occurs during a heavy sell-off (such as a liquidation cascade).
**For getting alerts of backwardation events, I recommend creating an alert on the 1 minute chart with the condition "Any alert() function call". Alert level is customizable as well.
-----------
*NOTE!! : Futures contracts expire (obviously), so the contract symbols will need to be updated periodically. I will try to keep them updated going into the future.
**NOTE2!! : The alert() function does not track the CME contract. This is to avoid false triggers.
Premiums [FTX] [Auto+Osc] [Intromoto]This indicator shows the premium, or basis, between FTX USD pairs and FTX USD Perpetual contracts.
IMPORTANT: This indicator will automatically change to the appropriate asset comparison, but ONLY if the observed chart is an FTX PERP. For example: If my chart is on FTX:ETHPERP the indicator "knows" that you want to compare it to the FTX:ETHUSD spot value. No need to manually change anything. Other pairs will be added as they are listed on FTX. I'll also be updating this indicator as I see fit. If you get an error on the indicator it's either because FTX doesn't have a spot asset available to compare it to or I haven't hard coded it into the script.
The histogram simply plots the percent difference, either positive, "Contango", or negative, "Backwardation" between the futures price and the spot price. The colors are traditionally self explanatory, green is bullish /buy, red is bearish /sell . These values can be used real time to help in determining the predicted funding rate of the perpetual, which in turn may affect sentiment.
I've included user input capabilities so that the user can change the bracketing of which values the colors appear for the barcolors and plotshapes. These are broken up into extreme backwardation, backwardation, low premium, regular premium, medium premium, high premium, and extreme high premium.
Tweaks or changes may need to be made if trading altcoins for more actionable color settings, as the default are designed for mainly BTC premium, but others will work well enough as is for the most part.
If the perpetual is above the spot price, funding will likely be positive, i.e. "normal", if spot is above the perpetual, it's usually bullish , but as always, market structure and confluence should be found for better outcomes.
An important feature I've added is the ability to change the resolution of the candle closes in the premium calculations. For example, if you want to take trades based on 5, 15, 60, etc closes, you can set the indicator to show those specific time frame premium values.
This oscillator will automatically change the candles whichever color is set to each of the relevant premium bracket values. I've also included a moving average and barcolor that, if activated will show the change between increasing or decreasing basis relative to the previous candle if in its respective direction.
DM for access.
Thanks
Cosmic FlowThis is a unique take on moving average multiplier indicators. Here, a pair of moving averages is used in combination with a multiplier set of to calculate
separate support and resistance levels
a new basis point of reference
The resulting data can be further used to calculate derived support and resistance levels using the Multiplier Type settings option. The moving averages and multiplier sets are customizable to make it easy to test different values on the fly and discover new patterns, and the Spread settings option is handy for working across timeframes.
Ethereum Perpetual SwapsThis script track most important Ethereum Perpetual Swaps vs Spot basis
When strong green color emerge implies that Swaps are trading at premium to spot.
When strong red color emerge implies that Swaps are trading at discount to spot.
These information is useful because it give leading information towards where funding rates are heading.
When trading at premium it will push towards Positive Funding Rates (Longs pay Shorts)
When trading at discount it will push towards Negative Funding Rates (Shorts pay Longs)
It's can also be used to give identify potential local tops or bots when values get too extreme.
Spot VS Derivatives (BTC)This indicator shows you the difference between the price on the spot exchanges and the derivatives exchanges. When the ratio spikes upward, it is a good buying opportunity, and when it spikes downward, it is a good moment to sell. The best timeframe for this indicator is 4h. The calculation includes top 10 spot and derivatives exchanges by volume .
Spot & Derivatives BasisThis indicator allows you to track the basis between Spot and Futures trading.
This metric is great for showing when sellers have run out.
Exchanges:
Coinbase
Binance
Bitfinex
Okex
Bybit
Bitmex
Binance Futures
Okex Futures
FTX
Futures Annualized Rolling BasisWhat is Annualised Rolling Basis?
Basis
In futures trading, the basis is the relative difference between the price of the future contract and the spot price.
This quantity is usually presented as an absolute price difference, but in its relative form can be annualised by dividing by the time to expiry τ of the contract expressed in years:
Rolling Basis
Let us consider a hypothetical contract starting today with a given tenor of 1 month (1M) or 3 months (3M). Such a contract does not necessarily trade in the market and thus has no observable price to calculate the basis. The rolling basis is the basis between this ’bespoke’ contract and the spot.
This quantity is inferred from existing contracts’ basis and the calculation is accomplished in two steps:
1. Forward yield
First, we select two futures contracts with expiries T1 and T2 surrounding the hypothetical contract’s expiry Ttarget (T1 ≤ Ttarget ≤ T2). The forward yield is calculated as:
Where:
Ti: time to maturity for contract i
BASISi: annualised basis for contract i
2. Weighted Basis Average
The rolling basis is calculated as a weighted average between the first contract’s basis and the forward yield:
The description of the indicator was copied from another source, but fully corresponds to this indicator.
Weighted derivatives premium BTCCan 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.
BTCUSDT Volume Weighted Average Price & KairiThis indicator calculates VWAP (Volume Weighted Average Price) for major crypto exchanges with BTCUSDT pairs and shows what percentage each exchange deviates from VWAP.
I made a "BTCUSD" version of this in the past, but many people also want to see “BTCUSDT”, so I made this indicator.
When the parameter "Display" is "Basis", this deviation is expressed in%. Therefore, VWAP is always drawn as "0.00%".
VWAP is calculated using the BTCUSDT prices and volumes of the following exchanges.
These exchanges are the ones Binance refers to when indexing.
- Bitfinex
- Binance
- Huobi
- OKEx
- Bittrex
- HitBTC
VWAP of this indicator calculates the volume for each candlestick , so it will be closer to the actual value.
When there is a big movement in the short term, it is easy to be swayed.
If you set the parameter "Display" to "Basis_SMA", it will calculate the simple moving average of the deviation rate, so it will be hard to be swayed.
Set the desired "Length".
If you want to know the actual value of VWAP , set the parameter "Display" to "Price" and the actual BTCUSDT prices will be displayed.
Warning: This indicator also shows BTCUSDTPERP, but these pairs are not included in the VWAP calculation. be careful.