Majors Rotation System [BackQuant]Majors Rotation System
Introducing BackQuant's Majors Rotation System, a comprehensive portfolio management tool for rotating among the major cryptocurrencies—BTC, ETH, and SOL. This system is designed to optimize returns by selecting the strongest-performing asset while avoiding periods of market weakness. It employs a long and cash-only strategy, meaning the system will only hold positions when market conditions are favorable, and will stay in cash during downtrends. Additionally, it incorporates a powerful regime filter to ensure the system is inactive during market-wide downturns.
This script is ideal for crypto traders looking to improve performance by dynamically allocating capital based on real-time performance metrics, rather than relying on a simple buy-and-hold strategy.
Key Features
Dynamic Asset Rotation: The system constantly evaluates the performance of BTC, ETH, and SOL, selecting the strongest asset based on a ratio matrix. This matrix compares the relative strength of each asset to one another, ensuring that your portfolio is always positioned in the cryptocurrency with the most momentum.
Long and Cash-Only Portfolio: This system only takes long positions or remains in cash. By avoiding short positions, it reduces exposure during market downturns. The built-in regime filter ensures the system only operates when the broader market (represented by the TOTAL crypto market cap) is trending up, offering additional protection against unfavorable market conditions.
Equity Tracking: The script provides a real-time visualization of portfolio equity compared to a buy-and-hold strategy. It displays the equity curve of the portfolio while allowing you to compare it against the hypothetical equity of holding BTC, ETH, or SOL individually (Buy and Hold).
Performance Metrics: In addition to equity visualization, the system provides detailed performance metrics, including:
Sharpe Ratio: Measures risk-adjusted returns.
Sortino Ratio: Focuses on downside risk.
Omega Ratio: Evaluates returns relative to risk.
Maximum Drawdown: The maximum observed loss from a peak to a trough.
These metrics allow traders to assess the efficiency of the rotation system compared to simply holding assets.
Visual Cues:
Painted Candles: The script provides a visual trend indicator by painting candles according to the trend of the selected chart, helping traders quickly identify momentum shifts.
Support for Multiple Assets: The system allows users to toggle between BTC, ETH, and SOL or view the entire portfolio at once. It displays key metrics for each asset and offers an intuitive way to understand which asset is currently outperforming.
Regime Filter: A key aspect of this system is the regime filter, which only allows trading in favorable market conditions. It uses a Universal TPI (Trend Performance Indicator) to evaluate whether the overall crypto market (TOTAL Market Cap) and key assets (BTC, ETH) are in a bullish trend. If the market is in a downtrend, the system will exit positions and move into cash.
Customizable Parameters: Users can customize several important aspects of the system:
Starting Date: Choose when the backtest or live trading begins.
Starting Capital: Set the initial capital for backtesting purposes.
Visualization Options: Toggle between base data, ratioed data, and equity plots. Users can also customize the line width and color settings for better chart clarity.
Adaptive Momentum Scoring: The system uses advanced indicators, which are not disclosed (proprietary) to assess the trend and momentum of the selected cryptocurrencies dynamically.
How the Rotation Works
The system uses a universal algorithm to calculate trend and momentum signals for BTC, ETH, and SOL. These signals are processed through a ratio matrix, which compares the performance of each asset against the others. Based on this comparison, the system identifies the strongest asset and allocates capital accordingly.
BTC, ETH, and SOL Scores: These scores represent the relative strength of each asset based on the universal algorithm. The system dynamically selects the asset with the highest score, rotating out of underperforming assets and into the top performer.
Allocation Decisions: The system determines whether to allocate capital to BTC, ETH, SOL, or Cash based on the scores. If none of the assets show strength, the system defaults to cash to protect the portfolio from market downturns.
Equity and Buy-and-Hold Comparisons
This script provides a side-by-side comparison of the portfolio’s equity curve and a buy-and-hold strategy:
Portfolio Equity: Shows the performance of the system as it rotates between BTC, ETH, and SOL.
Buy-and-Hold Equity: Displays how the portfolio would have performed if you simply held BTC, ETH, or SOL without trading.
These comparisons allow traders to see how the dynamic rotation system performs relative to a passive holding strategy.
Alerts and Visual Feedback
The system provides real-time alerts when asset allocations change, notifying traders when the system moves capital between assets or into cash. Additionally, the system offers detailed visual feedback, including:
Equity Curve Plots: Displays the equity curve of the portfolio and the individual assets.
Score Labels: Shows the strength scores for BTC, ETH, and SOL directly on the chart for easy monitoring.
Final Thoughts
The Majors Rotation System offers a powerful way to navigate the highly volatile crypto market by rotating between the strongest performing assets and staying in cash when conditions are unfavorable. With its advanced metrics, equity tracking, and built-in regime filter, this system is designed to optimize returns while minimizing risk.
Majors
Currency Strength V2An update to my original Currency Strength script to include a 2nd timeframe for more market context.
Changed the formatting slightly for better aesthetics, as the extra column and colors became unsightly.
Also added a new setting for "Flat Color", which changes the value background to a simple green/red for above or below 50, rather than using the Color Scale that increases color intensity the further it gets from 50.
________________________________________________________________________________
This script measures the strength of the 6 major currencies USD, EUR, GBP, CAD, AUD and JPY.
Simply, it averages the RSI values of a currency vs the 5 other currencies in the basket, and displays each average RSI value in a table with color coding to quickly identify the strongest and weakest currencies over the past 14 bars (or user defined length).
The arrow in the current RSI column shows the difference in average RSI value between current and X bars back (user defined), telling you whether the combined RSI value has gone up or down in the last X bars.
Using the average RSI allows us to get a sense of the currency strength vs an equally weighted basket of the other majors, as opposed to using Indexes which are heavily weighted to 1 or 2 currencies.
The additional security calls for the extra timeframe make this slower to load than the original, but this was a user request so hopefully it will prove worthwhile for some people.
Those who find the loading too slow when switching between charts may be better off still using the original, which is why this is posted as a separate script and not an update to the original.
This is the table with Flat Color option enabled.
Currency StrengthThis script measures the strength of the 6 major currencies USD, EUR, GBP, CAD, AUD and JPY.
Simply, it averages the RSI values of a currency vs the 5 other currencies in the basket, and displays each average RSI value in a table with color coding to quickly identify the strongest and weakest currencies over the past 14 bars (or user defined length).
The Dir. value looks at the difference in average RSI value between current and X bars back (user defined), telling you whether the combined RSI value has gone up or down in the last X bars.
Using the average RSI allows us to get a sense of the currency strength vs an equally weighted basket of the other majors, as opposed to using Indexes which are heavily weighted to 1 or 2 currencies.
The table doesn't load super fast as we are making 15 Security requests to get the values for each pair (where possible we reverse the values of the pair to reduce Security requests, e.g. we don't need to request EURUSD and USDEUR, we reverse the value to calculate the USD RSI).
ROC of Majors against the USD (Label)Version 2 of the ROC study that now puts them as a label on the same chart.
ROC of Majors against the USDA simple study that shows the majors against the USD Rate of Change.
Allows you to pick opposing strength pairs to trade.
There are different ROC calculations for people to play with as I am not sure which way the ( ) should be so feedback is welcome.
Daytrader strategies for major currenciesHello,
This technique is for those who want the most simple method that is almost fool-proof. It must be done only during the busiest trading hours, 3 am to 11 am EST. This method doesn't work in sideways markets, only in volatile trending markets.
Indicators:
Ema 3
MA 20
Awesome Oscillator.
Enter Long: when the red 3 EMA has crossed up through the middle band at the same time, the AO should be approaching or crossing it's zero line, going up.
Enter Short: when the red 3 EMA has crossed down through the middle band at the same time, the AO should be approaching or crossing it's zero line, going down.
In this strategy, both the entry and exit happen only during the london session.
Oscillator Based Scalping (Forex Majors)This is a scalping strategy based on oscillator divergences.
Tested on ForexICE market data.
Signal might appear and disappear during candle making since it is based on Moving Average and therefore acts on close, but since candle closed signal is final and does not repaint.
1M timeframes is recommended for bot trading. 5M-15M is more suitable for manual trading.
Full list of tested intraday timeframes below:
EUR-USD - 1M-5M-15M
USD-JPY - 1M-5M
GBP-USD - 1M
AUD-USD - 1M-5M-15M
USD-CHF - 1M-15M
NZD-USD - 1M-5M-15M
USD-CAD - 1M-5M
There is 2 more similar trading strategies that im finishing now, 1 for BITMEX ETHUSD and XBTUSD contracts, and 1 for bitmex alts. Should be ready in a day or two.
Additional notes on executing trades:
-Trade should be entered as close to sell signal as possible. You can enter at market at red circle candle or at limit at top of sell signal candle. In both cases your target is red Moving Average and entering at market just makes overall R/R for a trade is lower yet limit order might not always get filled.
-This strategy doesnt have a defined stop loss by itself, but your target is a moving average and 1-1 risk reward should be enough. Although the win rate is much higher than 50% so you can be less greedy if you feel like playing it safer.
-Strategy itself uses pyramiding, so i would recommend averaging up if you get 2-3 consecutive sell signals above moving average.
-It is assumed that you have OANDA spread rates or better.
-- Free trial for 24 hours. Contact me here or at twitter.com --
Multiple Majors Currency Basket Power Oscillatorthis script by RichardoSantos
description
--
Power oscillator to discern what currency's are stronger/weaker.
added option to use a smoothed source(close) for pooling the change, giving longer term directional bias, note that this causes lag in the results as MA's turn slower than price.
--
I added currency labels and changed line color only.
Currency Strength Meter (by vitelot)This script estimates the relative strength of forex major currencies.
It works in any timeframe with no input required.
The only parameter is used to smooth the curves and can be set to 1 to have the original, but noisy, signals.
Comments are welcome, and please push the like button if you find it useful.
Cheers.
PS Curious that this kind of indicator is not yet on tradingview, at least I could not find anything similar. Do you know any?
[RS]Multiple Majors Currency Basket Power Oscillator V1Power oscillator to discern what currency's are stronger/weaker.
added option to use a smoothed source(close) for pooling the change, giving longer term directional bias, note that this causes lag in the results as MA's turn slower than price.
[RS]Multiple Majors Currency Basket Power Oscillator V0Power oscillator to discern what currency's are stronger/weaker.