Democratic MultiAsset Strategy [BerlinCode42]Happy Trade,
Intro
Included Trade Concept
Included Indicators and Compare-Functions
Usage and Example
Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
Conclusion
1. Intro
This is the first multi-asset strategy available on TradingView—a market breadth multi-asset trading strategy with integrated webhooks, backtesting capabilities, and essential strategy components like Take Profit, Stop Loss, Trailing, Hedging, Time & Session Filters, and Alerts.
How It Trades? At the start of each new bar, one asset from a set of eight is selected to go long or short. As long there is available cash and the selected asset meets the minimum criteria.
The selection process works through a voting system, similar to a democracy. Each asset is evaluated using up to five indicators that the user can choose. The asset with the highest overall voting score is picked for the trade. If no asset meets all criteria, no trade is executed, and the cash reserve remains untouched for future opportunities.
How to Set Up This Market Breadth Strategy:
Choose eight assets from the same market (e.g., cryptos or big tech stocks).
Select one to five indicators for the voting system.
Refine the strategy by adjusting Take Profit, Stop Loss, Hedging, Trailing, and Filters.
2. Voting as the included Trade Concept
The world of financial trading is filled with both risks and opportunities, and the key challenge is to identify the right opportunities, manage risks, and do both right on time.
There are countless indicators designed to spot opportunities and filter out risks, but no indicator is perfect—they only work statistically, hitting the right signals more often than the wrong ones.
The goal of this strategy is to increase the accuracy of these Indicators by:
Supervising a larger number of assets
Filtering out less promising opportunities
This is achieved through a voting system that compares indicator values across eight different assets. It doesn't just compare long trades—it also evaluates long vs. short positions to identify the most promising trade.
Why focus on one asset class? While you can randomly select assets from different asset classes, doing so prevents the algorithm from identifying the strongest asset within a single class. Think about, within one asset class there is often a major trend whereby different asset classes has not really such behavior.
And, you don’t necessarily need trading in multiple classes—this algorithm is designed to generate profits in both bullish and bearish markets. So when ever an asset class rise or fall the voting system ensure to jump on the strongest asset. So this focusing on one asset class is an integral part of this strategy. This all leads to more stable and robust trading results compared to handling each asset separately.
3. Included Indicators and Compare-Functions
You can choose from 17 different indicators, each offering different types of signals:
Some provide a directional signal
Some offer a simple on/off signal
Some provide both
Available Indicators: RSI, Stochastic RSI, MFI, Price, Volume, Volume Oscillator, Pressure, Bilson Gann Trend, Confluence, TDI, SMA, EMA, WMA, HMA, VWAP, ZLMA, T3MA
However, these indicators alone do not generate trade signals. To do so, they must be compared with thresholds or other indicators using specific comparison functions.
Example – RSI as a Trade Signal. The RSI provides a value between 0 and 100. A common interpretation is:
RSI over 80 → Signal to go short or exit a long trade
RSI under 20 → Signal to go long or exit a short trade
Here, two comparison functions and two thresholds are used to determine trade signals.
Below is the full set of available comparison functions, where: I represents the indicator’s value and A represents the comparator’s value.
I < A if I smaller A then trade signal
I > A if I bigger A then trade signal
I = A if I equal to A then trade signal
I != A if I not equal to A then trade signal
A <> B if I bigger A and I smaller B then trade signal
A >< B if I smaller A then long trade signal or if I bigger B then short trade signal
Image 1
In Image 1, you can see one of five input sections, where you define an indicator along with its function, comparator, and constants. For our RSI example, we select:
Indicator: RSI
Function: >< (greater/less than)
Comparator: Constant
Constants: A = 20, B = 80
With these settings a go short signal is triggered when RSI crosses above 80. And a go long signal is triggered when RSI crosses below 20.
Relative Strength Indicator: The RSI from the public TradingView library provides a directional trade signal. You can adjust the price source and period length in the indicator settings.
Stochastic Relative Strength Indicator: As above the Stoch RSI offers a trade signal with direction. It is calculated out of the RSI, the stochastic derivation and the SMA from the Tradingview library. You can set the in-going price source and the period length for the RSI, for the Stochastic Derivation and for the SMA as blurring in the Indicator settings section.
Money Flow Indicator: As above the MFI from the public Tradingview library offers a trade signal with direction. You can set the in-going price source and the period length in the Indicator settings section.
Price: The Price as Indicator is as simple as it can be. You can chose Open, High, Low or Close or combinations of them like HLC3 or even you can import an external Indicator. The absolute price or value can later be used to generate a trade signals when certain constant thresholds or other indicators signals are crossed.
Volume: Similar as above the Volume as Indicator offers the average volume as absolute value. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Volume Oscillator: The Volume Oscillator Indicator offers a value in the range of . Whereby a value close to 0 means that the volume is very low. A value around 1 means the volume is same high as before and Values higher as 1 means the volume is bigger then before. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Pressure Indicator: The Pressure is an adapted version of LazyBear's script (Squeeze Momentum Indicator) Pressure is a Filter that highlight bars before a bigger price move in any direction. The result are integer numbers between 0 and 4 whereby 0 means no bigger price move excepted, while 4 means huge price move expected. You can set the in-going price source and the period length in the Indicator settings section.
Bilson Gann Trend: The Bilson Gann Trend Indicator is a specific re-implementation of the widely known Bilson Gann Count Algorithm to detect Highs and Lows. On base of the last four Highs and Lows a trend direction can be calculated. It is based on 2 rules to confirm a local pivot candidate. When a local pivot candidate is confirmed, let it be a High then it looks for Lows to confirm. The result range is whereby -1 means down trend, 1 means uptrend and 0 sideways.
Confluence: The Confluence Indicator is a simplified version of Dale Legan's "Confluence" indicator written by Gary Fritz. It uses five SMAs with different periods lengths. Whereby the faster SMA get compared with the (slower) SMA with the next higher period lengths. Is the faster SMA smaller then the slower SMA then -1, otherwise +1. This is done with all SMAs and the final sum range between . Whereby values around 0 means price is going side way, Crossing under 0 means trend change from bull to bear. Is the value>2 means a strong bull trend and <-2 a strong bear trend.
Trades Dynamic Index: The TDI is an adapted version from the "Traders Dynamic Index" of LazyBear. The range of the result is whereby 2 means Top goShort, -2 means Bottom goLong, 0 is neutral, 1 is up trend, -1 is down trend.
Simple Moving Average: The SMA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Exponential Moving Average: The EMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Weighted Moving Average: The WMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Hull Moving Average: HMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Volume Weighted Average Price: The VWAP as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source in the Indicator settings section.
Zero Lag Moving Average: The ZLMA by John Ehlers and Ric Way describe in their paper: www.mesasoftware.com
As the other moving averages you can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
T3 Moving Average: The T3MA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source, the period length and a factor in the Indicator settings section. Keep this factor at 1 and the T3MA swing in the same range as the input. Bigger 1 and it swings over. Factors close to 0 and the T3MA becomes a center line.
All MA's following the price. The function to compare any MA Indicators would be < or > to generate a trade direction. An example follows in the next section.
4. Example and Usage
In this section, you see how to set up the strategy using a simple example. This example was intentionally chosen at random and has not undergone any iterations to refine the trade results.
We use the RSI as the trade signal indicator and apply a filter using a combination of two moving averages (MAs). The faster MA is an EMA, while the slower MA is an SMA. By comparing these two MAs, we determine a trend direction. If the faster MA is above the slower MA the trend is upwards etc. This trend direction can then be used for filtering trades.
The strategy follows these rules:
If the RSI is below 20, a buy signal is generated.
If the RSI is above 80, a sell signal is generated.
However, this RSI trade signal is filtered so that a trade is only given the maximum voting weight if the RSI trade direction aligns with the trend direction determined by the MA filter.
So first, you need to add your chosen assets or simply keep the default ones. In Image 2, you can see one of the eight asset input sections.
Image 2
This strategy offers some general trade settings that apply equally to all assets and some asset-specific settings. This distinction is necessary because some assets have higher volatility than others, requiring asset-specific Take Profit and Stop Loss levels.
Once you have made your selections, proceed to the Indicators and Compare Functions for the voting. Image 3 shows an example of this setup.
Image 3
Later on go to the Indicator specific settings shown in Image 4 to refine the trade results.
Image 4
For refine the trade results take also a look on the result summary table, development of capital plot, on the list of closed and open trades and screener table shown in Image 5.
Image 5
To locate any trade for any asset in the chronological and scroll-able trade list, each trade is marked with a label:
An opening label displaying the trade direction, ticker ID, trade number, invested amount, and remaining cash reserves.
A closing label showing the closing reason, ticker ID, trade number, trade profit (%), trade revenue ($), and updated cash reserves.
Additionally: a green line marks each Take Profit level. An orange line indicates the (trailing) Stop Loss.
The summary table in the bottom-left corner provides insights into how effective the trade strategy is. By analyzing the trade list, you can identify trades that should be avoided.
To find those bad trades on the chart, use the trade number or timestamp. With replay mode, you can go back in time to review a specific trade in detail.
Image 6
In Image 6, you can see an example where replay mode and the start time filter are used to display specific trades within a narrow time range. By identifying a large number of bad trades, you may recognize patterns and formulate conditions to avoid them in the future.
This is the backtesting tool that allows you to develop and refine your trading strategy continuously. With each iteration—from general adjustments to detailed optimizations—you can use these tools to improve your strategy. You can:
Add other indicators with trade signals and direction
Add more indicators signals as filter
Adjust the settings of your indicators to optimize results
Configure key strategy settings, such as Time and Session Filters, Stop Loss, Take Profit, and more
By doing so, you can identify a profitable strategy and its optimal settings.
5. Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a i mark on their right side. Move over it with the cursor to read specific explanation.
Backtest Results: Here you can decide about visibility of the trade list, of the Screener Table and of the Results Summary. And the colors for bullish, side ways, bearish and no signal. Go above and see Image 5.
Time Filter: You can set a Start time or deactivate it by leave it unhooked. The same with End Time and Duration Days . Duration Days can also count from End time in case you deactivate Start time.
Session Filter: Here, you can chose to activate trading on a weekly basis, specifying which days of the week trading is allowed and which are excluded. Additionally, you can configure trading on a daily basis, setting the start and end times for when trades are permitted. If activated, no new trades will be initiated outside the defined times and sessions.
Trade Logic: Here you can set an extra time frame for all indicators. You can enable Longs or Shorts or both trades.
The min Criteria percentage setting defines the minimum number of voices an asset has to get to be traded. So if you set this to 50% or less also weak winners of the voting get traded while 100% means that the winner of the voting has to get all possible voices.
Additionally, you have the option to delay entry signals. This feature is particularly useful when trade signals exhibit noise and require smoothing.
Enable Trailing Stop and force the strategy to trade only at bar closing. Other-ways the strategy trade intrabar, so when ever a voting present an asset to trade, it will send the alert and the webhooks.
The Hedging is basic as shown in the following Image 7 and serves as a catch if price moves fast in the wrong direction. You can activate a hedging mechanism, which opens a trade in the opposite direction if the price moves x% against the entry price. If both the Stop Loss and Hedging are triggered within the same bar, the hedging action will always take precedence.
Image 6
Indicators to use for Trade Signal Generating: Here you chose the Indicators and their Compare Function for the Voting . Any activated asset will get their indicator valuation which get compared over all assets. The asset with the highest valuation is elected for the trade as long free cash is present and as long the minimum criteria are met.
The Screener Table will show all indicators results of the last bar of all assets. Those indicator values which met the threshold get a background color to high light it. Green for bullish, red for bearish and orange for trade signals without direction. If you chose an Indicator here but without any compare function it will show also their results but with just gray background.
Indicator Settings: here you can setup the indicator specific settings. for deeper insights see 3. Included Indicators and Compare-Functions .
Assets, TP & SL Settings: Asset specific settings. Chose here the TickerID of all Assets you wanna trade. Take Profit 1&2 set the target prices of any trade in relation to the entry price. The Take Profit 1 exit a part of the position defined by the quantity value. Stop Loss set the price to step out when a trade goes the wrong direction.
Invest Settings: Here, you can set the initial amount of cash to start with. The Quantity Percentage determines how much of the available cash is allocated to each trade, while the Fee percentage specifies the trading fee applied to both opening and closing positions.
Webhooks: Here, you configure the License ID and the Comment . This is particularly useful if you plan to use multiple instances of the script, ensuring the webhooks target the correct positions. The Take Profit and Stop Loss values are displayed as prices.
6. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Democratic Multi-Asset Strategy is its ability to trade multiple assets simultaneously. Equipped with a set of different standard Indicators, it's new democratic Voting System does more robust trading decisions compared to single-asset. Interchangeable Indicators and customizable strategy settings allowing for a wide range of trading strategies.
This script is closed-source and invite-only to support and compensate for over a year of development work. Unlike other single asset strategies, this one cannot use TradingView's strategy functions. Instead, it is designed as an indicator.
7. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
8. Conclusion
Now it’s your turn! Chose an asset class and pick 8 of them and chose some indicators to see the trading results of this democratic voting system. Refine your multi-asset strategy to favorable settings. Once you find a promising configuration, you can set up alerts to send webhooks directly. Configure all parameters, test and validate them in paper trading, and if results align with your expectations, you even can deploy this script as your trading bit.
Cheers
Portfolio management
Risk ManagementRisk Management Script Description
What it does
This Pine Script indicator offers comprehensive risk management tools for traders on TradingView. The script helps users plan and visualize their trades with precise risk parameters, focusing on protecting capital while optimizing position sizes.
Key Features
Dual Calculation Modes:
Dynamic Margin: Calculates the optimal margin required when using a fixed leverage
Dynamic Leverage: Automatically adjusts leverage to limit risk exposure to the specified amount
Visual Trade Planning:
Displays rectangular zones for entry, stop loss, and take profit levels
Clear labels showing price points and trade direction (Long/Short)
Customizable visual settings (colors, transparency, label visibility)
Advanced Risk Calculations:
Precise position sizing based on your maximum risk tolerance
Automatic calculation of optimal contracts/position size
Includes trading fees in all calculations for real-world accuracy
Risk/Reward ratio visualization and management
Comprehensive Dashboard:
Interactive table displaying all critical trade parameters
Shows Entry Price, Target, Stop Loss with calculated ROI percentages
Displays Leverage, Margin requirements, and Maximum Loss
Liquidation warnings to prevent account blow-ups
Customizable appearance (position, light/dark theme)
Why It's Valuable for Risk Management
Capital Preservation: By defining your maximum acceptable loss upfront, the script ensures you never risk more than planned
Emotion-Free Trading: Pre-planned position sizes and take-profit levels help remove emotional decision-making during active trades
Realistic Calculations: Incorporates trading fees into all calculations, providing accurate profit/loss projections
Liquidation Prevention: Alerts you when your settings might lead to liquidation risk, helping avoid catastrophic losses
Holistic Approach: Manages all aspects of risk: position size, leverage, margin requirements, and risk/reward ratios
Flexibility: Works with any trading strategy or timeframe, providing consistent risk management across different market conditions
Visual Clarity: Makes complex risk calculations easy to understand through clear visual representation
This script is ideal for both novice traders learning proper risk management and experienced traders seeking to optimize their position sizing and risk parameters in a systematic way.
ARSI | QuantumResearch🚀 Adaptative RSI (ARSI) | QuantumResearch 🚀
The Adaptative RSI (ARSI) is an advanced momentum-based oscillator that enhances traditional RSI analysis by incorporating a dynamic smoothing factor and adaptive thresholding. This innovative approach allows the indicator to dynamically adjust to changing market conditions, reducing lag and improving responsiveness to trend shifts.
🔍 Why ARSI?
Unlike conventional RSI, ARSI dynamically adapts its smoothing factor based on market volatility. This allows for better trend identification, earlier entries, and improved exits—all without unnecessary noise.
🔗 Key Features:
✅ Adaptative RSI Calculation – The smoothing factor automatically adjusts based on RSI’s distance from equilibrium.
✅ Dynamic Threshold Mechanism – Uses standard deviation-based adaptive bands to define overbought/oversold levels dynamically.
✅ Trend Detection & Confirmation – ARSI reacts quickly to trend shifts, helping traders catch early moves and avoid unnecessary drawdowns.
✅ Customizable Visuals – Multiple color schemes and visual overlays to match different trading styles.
✅ Alerts for Trend Reversals – Stay ahead with real-time alerts for bullish and bearish trend shifts.
📊 How ARSI Helps in Trading
📈 Catch Early Trends – The oscillator helps identify breakouts before they become obvious, allowing for early positioning in emerging trends.
📉 Avoid Drawdowns – The indicator signals early exits, helping to protect capital before major market sell-offs.
📊 Enhance Confirmation – Can be used alongside other momentum indicators for better trade validation.
📊 Real-World Application of ARSI
🟢 ETH: Avoiding a 50% Drawdown
🔹 This ETH chart demonstrates how ARSI signaled an early exit, preventing a massive drawdown of nearly 50%.
🟢 SOL: Identifying Early Trends
🔹 ARSI caught early bullish momentum on SOL, allowing traders to enter the uptrend before the major rally.
🟢 BTC: Exit Before the COVID Crash
🔹 ARSI issued a timely exit before the COVID crash, helping traders avoid a massive market collapse.
🟢 TOTAL: Early Exit Before a Major Market Drop
🔹 The indicator provided a clear warning signal before the market downturn, allowing risk mitigation.
🟢 DOGE: Trend Continuation Confirmation
🔹 ARSI successfully confirmed trend continuation on DOGE, keeping traders aligned with the market move.
⚠️ Disclaimer
The content provided is for informational and educational purposes only. Nothing contained within should be considered financial, investment, legal, or other professional advice. Past performance does not guarantee future results. Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor.
🔥 Enhance your trading with the Adaptive RSI (ARSI) | QuantumResearch – Stay ahead of the trend! 🚀
CAPM Alpha & BetaThe CAPM Alpha & Beta indicator is a crucial tool in finance and investment analysis derived from the Capital Asset Pricing Model (CAPM) . It provides insights into an asset's risk-adjusted performance (Alpha) and its relationship to broader market movements (Beta). Here’s a breakdown:
1. How Does It Work?
Alpha:
Definition: Alpha measures the portion of an investment's return that is not explained by market movements, i.e., the excess return over and above what the market is expected to deliver.
Purpose: It represents the value a fund manager or strategy adds (or subtracts) from an investment’s performance, adjusting for market risk.
Calculation:
Alpha is derived from comparing actual returns to expected returns predicted by CAPM:
Alpha = Actual Return − (Risk-Free Rate + β × (Market Return − Risk-Free Rate))
Alpha = Actual Return − (Risk-Free Rate + β × (Market Return − Risk-Free Rate))
Interpretation:
Positive Alpha: The investment outperformed its CAPM prediction (good performance for additional value/risk).
Negative Alpha: The investment underperformed its CAPM prediction.
Beta:
Definition: Beta measures the sensitivity of an asset's returns relative to the overall market's returns. It quantifies systematic risk.
Purpose: Indicates how volatile or correlated an investment is relative to the market benchmark (e.g., S&P 500).
Calculation:
Beta is computed as the ratio of the covariance of the asset and market returns to the variance of the market returns:
β = Covariance (Asset Return, Market Return) / Variance (Market Return)
β = Variance (Market Return) Covariance (Asset Return, Market Return)
Interpretation:
Beta = 1: The asset’s price moves in line with the market.
Beta > 1: The asset is more volatile than the market (higher risk/higher potential reward).
Beta < 1: The asset is less volatile than the market (lower risk/lower reward).
Beta < 0: The asset moves inversely to the market.
2. How to Use It?
Using Alpha:
Portfolio Evaluation: Investors use Alpha to gauge whether a portfolio manager or a strategy has successfully outperformed the market on a risk-adjusted basis.
If Alpha is consistently positive, the portfolio may deliver higher-than-expected returns for the given level of risk.
Stock/Asset Selection: Compare Alpha across multiple securities. Positive Alpha signals that the asset may be a good addition to your portfolio for excess returns.
Adjusting Investment Strategy: If Alpha is negative, reassess the asset's role in the portfolio and refine strategies.
Using Beta:
Risk Management:
A high Beta (e.g., 1.5) indicates higher sensitivity to market movements. Use such assets if you want to take on more risk during bullish market phases or expect higher returns.
A low Beta (e.g., 0.7) indicates stability and is useful in diversifying risk in volatile or bearish markets.
Portfolio Diversification: Combine assets with varying Betas to achieve the desired level of market responsiveness and smooth out portfolio volatility.
Monitoring Systematic Risk: Beta helps identify whether an investment aligns with your risk tolerance. For example, high-Beta stocks may not be suitable for conservative investors.
Practical Application:
Use both Alpha and Beta together:
Assess performance with Alpha (excess returns).
Assess risk exposure with Beta (market sensitivity).
Example: A stock with a Beta of 1.2 and a highly positive Alpha might suggest a solid performer that is slightly more volatile than the market, making it a suitable pick for risk-tolerant, return-maximizing investors.
In conclusion, the CAPM Alpha & Beta indicator gives a comprehensive view of an asset's performance and risk. Alpha enables performance evaluation on a risk-adjusted basis, while Beta reveals the level of market risk. Together, they help investors make informed decisions, build optimal portfolios, and align investments with their risk-return preferences.
Nifty/Gold RatioPrice of NIFTY in GOLD. Highs indicate that Gold is getting cheaper, Lows indicate Nifty is getting cheaper.
Dollar Cost Averaging (DCA) | FractalystWhat's the purpose of this strategy?
The purpose of dollar cost averaging (DCA) is to grow investments over time using a disciplined, methodical approach used by many top institutions like MicroStrategy and other institutions.
Here's how it functions:
Dollar Cost Averaging (DCA): This technique involves investing a set amount of money regularly, regardless of market conditions. It helps to mitigate the risk of investing a large sum at a peak price by spreading out your investment, thus potentially lowering your average cost per share over time.
Regular Contributions: By adding money to your investments on a pre-determined frequency and dollar amount defined by the user, you take advantage of compounding. The script will remind you to contribute based on your chosen schedule, which can be weekly, bi-weekly, monthly, quarterly, or yearly. This systematic approach ensures that your returns can earn their own returns, much like interest on savings but potentially at a higher rate.
Technical Analysis: The strategy employs a market trend ratio to gauge market sentiment. It calculates the ratio of bullish vs bearish breakouts across various timeframes, assigning this ratio a percentage-based score to determine the directional bias. Once this score exceeds a user-selected percentage, the strategy looks to take buy entries, signaling a favorable time for investment based on current market trends.
Fundamental Analysis: This aspect looks at the health of the economy and companies within it to determine bullish market conditions. Specifically, we consider:
Specifically, it considers:
Interest Rate: High interest rates can affect borrowing costs, potentially slowing down economic growth or making stocks less attractive compared to fixed income.
Inflation Rate: Inflation erodes purchasing power, but moderate inflation can be a sign of a healthy economy. We look for investments that might benefit from or withstand inflation.
GDP Rate: GDP growth indicates the overall health of the economy; we aim to invest in sectors poised to grow with the economy.
Unemployment Rate: Lower unemployment typically signals consumer confidence and spending power, which can boost certain sectors.
By integrating these elements, the strategy aims to:
Reduce Investment Volatility: By spreading out your investments, you're less impacted by short-term market swings.
Enhance Growth Potential: Using both technical and fundamental filters helps in choosing investments that are more likely to appreciate over time.
Manage Risk: The strategy aims to balance the risk of market timing by investing consistently and choosing assets wisely based on both economic data and market conditions.
----
What are Regular Contributions in this strategy?
Regular Contributions involve adding money to your investments on a pre-determined frequency and dollar amount defined by the user. The script will remind you to contribute based on your chosen schedule, which can be weekly, bi-weekly, monthly, quarterly, or yearly. This systematic approach ensures that your returns can earn their own returns, much like interest on savings but potentially at a higher rate.
----
How do regular contributions enhance compounding and reduce timing risk?
Enhances Compounding: Regular contributions leverage the power of compounding, where returns on investments can generate their own returns, potentially leading to exponential growth over time.
Reduces Timing Risk: By investing regularly, the strategy minimizes the risk associated with trying to time the market, spreading out the investment cost over time and potentially reducing the impact of volatility.
Automated Reminders: The script reminds users to make contributions based on their chosen schedule, ensuring consistency and discipline in investment practices, which is crucial for long-term success.
----
How does the strategy integrate technical and fundamental analysis for investors?
A: The strategy combines technical and fundamental analysis in the following manner:
Technical Analysis: It uses a market trend ratio to determine the directional bias by calculating the ratio of bullish vs bearish breakouts. Once this ratio exceeds a user-selected percentage threshold, the strategy signals to take buy entries, optimizing the timing within the given timeframe(s).
Fundamental Analysis: This aspect assesses the broader economic environment to identify sectors or assets that are likely to benefit from current economic conditions. By understanding these fundamentals, the strategy ensures investments are made in assets with strong growth potential.
This integration allows the strategy to select investments that are both technically favorable for entry and fundamentally sound, providing a comprehensive approach to investment decisions in the crypto, stock, and commodities markets.
----
How does the strategy identify market structure? What are the underlying calculations?
Q: How does the strategy identify market structure?
A: The strategy identifies market structure by utilizing an efficient logic with for loops to pinpoint the first swing candle that features a pivot of 2. This marks the beginning of the break of structure, where the market's previous trend or pattern is considered invalidated or changed.
What are the underlying calculations for identifying market structure?
A: The underlying calculations involve:
Identifying Swing Points: The strategy looks for swing highs (marked with blue Xs) and swing lows (marked with red Xs). A swing high is identified when a candle's high is higher than the highs of the candles before and after it. Conversely, a swing low is when a candle's low is lower than the lows of the candles before and after it.
Break of Structure (BOS):
Bullish BOS: This occurs when the price breaks above the swing high level of the previous structure, indicating a potential shift to a bullish trend.
Bearish BOS: This happens when the price breaks below the swing low level of the previous structure, signaling a potential shift to a bearish trend.
Structural Liquidity and Invalidation:
Structural Liquidity: After a break of structure, liquidity levels are updated to the first swing high in a bullish BOS or the first swing low in a bearish BOS.
Structural Invalidation: If the price moves back to the level of the first swing low before the bullish BOS or the first swing high before the bearish BOS, it invalidates the break of structure, suggesting a potential reversal or continuation of the previous trend.
This method provides users with a technical approach to filter market regimes, offering an advantage by minimizing the risk of overfitting to historical data, which is often a concern with traditional indicators like moving averages.
By focusing on identifying pivotal swing points and the subsequent breaks of structure, the strategy maintains a balance between sensitivity to market changes and robustness against historical data anomalies, ensuring a more adaptable and potentially more reliable market analysis tool.
What entry criteria are used in this script?
The script uses two entry models for trading decisions: BreakOut and Fractal.
Underlying Calculations:
Breakout: The script records the most recent swing high by storing it in a variable. When the price closes above this recorded level, and all other predefined conditions are satisfied, the script triggers a breakout entry. This approach is considered conservative because it waits for the price to confirm a breakout above the previous high before entering a trade. As shown in the image, as soon as the price closes above the new candle (first tick), the long entry gets taken. The stop-loss is initially set and then moved to break-even once the price moves in favor of the trade.
Fractal: This method involves identifying a swing low with a period of 2, which means it looks for a low point where the price is lower than the two candles before and after it. Once this pattern is detected, the script executes the trade. This is an aggressive approach since it doesn't wait for further price confirmation. In the image, this is represented by the 'Fractal 2' label where the script identifies and acts on the swing low pattern.
----
How does the script calculate trend score? What are the underlying calculations?
Market Trend Ratio: The script calculates the ratio of bullish to bearish breakouts. This involves:
Counting Bullish Breakouts: A bullish breakout is counted when the price breaks above a recent swing high (as identified in the strategy's market structure analysis).
Counting Bearish Breakouts: A bearish breakout is counted when the price breaks below a recent swing low.
Percentage-Based Score: This ratio is then converted into a percentage-based score:
For example, if there are 10 bullish breakouts and 5 bearish breakouts in a given timeframe, the ratio would be 10:5 or 2:1. This could be translated into a score where 66.67% (10/(10+5) * 100) represents the bullish trend strength.
The score might be calculated as (Number of Bullish Breakouts / Total Breakouts) * 100.
User-Defined Threshold: The strategy uses this score to determine when to take buy entries. If the trend score exceeds a user-defined percentage threshold, it indicates a strong enough bullish trend to justify a buy entry. For instance, if the user sets the threshold at 60%, the script would look for a buy entry when the trend score is above this level.
Timeframe Consideration: The calculations are performed across the timeframes specified by the user, ensuring the trend score reflects the market's behavior over different periods, which could be daily, weekly, or any other relevant timeframe.
This method provides a quantitative measure of market trend strength, helping to make informed decisions based on the balance between bullish and bearish market movements.
What type of stop-loss identification method are used in this strategy?
This strategy employs two types of stop-loss methods: Initial Stop-loss and Trailing Stop-Loss.
Underlying Calculations:
Initial Stop-loss:
ATR Based: The strategy uses the Average True Range (ATR) to set an initial stop-loss, which helps in accounting for market volatility without predicting price direction.
Calculation:
- First, the True Range (TR) is calculated for each period, which is the greatest of:
- Current Period High - Current Period Low
- Absolute Value of Current Period High - Previous Period Close
- Absolute Value of Current Period Low - Previous Period Close
- The ATR is then the moving average of these TR values over a specified period, typically 14 periods by default. This ATR value can be used to set the stop-loss at a distance from the entry price that reflects the current market volatility.
Swing Low Based:
For this method, the stop-loss is set based on the most recent swing low identified in the market structure analysis. This approach uses the lowest point of the recent price action as a reference for setting the stop-loss.
Trailing Stop-Loss:
The strategy uses structural liquidity and structural invalidation levels across multiple timeframes to adjust the stop-loss once the trade is profitable. This method involves:
Detecting Structural Liquidity: After a break of structure, the liquidity levels are updated to the first swing high in a bullish scenario or the first swing low in a bearish scenario. These levels serve as potential areas where the price might find support or resistance, allowing the stop-loss to trail the price movement.
Detecting Structural Invalidation: If the price returns to the level of the first swing low before a bullish break of structure or the first swing high before a bearish break of structure, it suggests the trend might be reversing or invalidating, prompting the adjustment of the stop-loss to lock in profits or minimize losses.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop. The ATR-based stop-loss adapts to the current market conditions by considering the volatility, ensuring that the stop-loss is not too tight during volatile periods, which could lead to premature exits, nor too loose during calm markets, which might result in larger losses. Similarly, the swing low based stop-loss provides a logical exit point if the market structure changes unfavorably.
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance. This involves backtesting the strategy with different settings for the ATR period, the distance from the swing low, and how the trailing stop-loss reacts to structural liquidity and invalidation levels.
Through this process, you can tailor the strategy to perform optimally in different market environments, ensuring that the stop-loss mechanism supports the trade's longevity while safeguarding against significant drawdowns.
What type of break-even and take profit identification methods are used in this strategy? What are the underlying calculations?
For Break-Even:
Percentage (%) Based:
Moves the initial stop-loss to the entry price when the price reaches a certain percentage above the entry.
Calculation:
Break-even level = Entry Price * (1 + Percentage / 100)
Example:
If the entry price is $100 and the break-even percentage is 5%, the break-even level is $100 * 1.05 = $105.
Risk-to-Reward (RR) Based:
Moves the initial stop-loss to the entry price when the price reaches a certain RR ratio.
Calculation:
Break-even level = Entry Price + (Initial Risk * RR Ratio)
For TP
- You can choose to set a take profit level at which your position gets fully closed.
- Similar to break-even, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP1 level as a percentage amount above the entry price or based on RR.
What's the day filter Filter, what does it do?
The day filter allows users to customize the session time and choose the specific days they want to include in the strategy session. This helps traders tailor their strategies to particular trading sessions or days of the week when they believe the market conditions are more favorable for their trading style.
Customize Session Time:
Users can define the start and end times for the trading session.
This allows the strategy to only consider trades within the specified time window, focusing on periods of higher market activity or preferred trading hours.
Select Days:
Users can select which days of the week to include in the strategy.
This feature is useful for excluding days with historically lower volatility or unfavorable trading conditions (e.g., Mondays or Fridays).
Benefits:
Focus on Optimal Trading Periods:
By customizing session times and days, traders can focus on periods when the market is more likely to present profitable opportunities.
Avoid Unfavorable Conditions:
Excluding specific days or times can help avoid trading during periods of low liquidity or high unpredictability, such as major news events or holidays.
What tables are available in this script?
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades and more.
Total Commission: Displays the cumulative commissions incurred from all trades executed within the selected backtesting window. This value is derived by summing the commission fees for each trade on your chart.
Average Commission: Represents the average commission per trade, calculated by dividing the Total Commission by the total number of closed trades. This metric is crucial for assessing the impact of trading costs on overall profitability.
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most mean-reversion successful strategies have a percent profitability of 40-80% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month and year.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- UI Table: A user-friendly table that allows users to view and save the selected strategy parameters from user inputs. This table enables easy access to key settings and configurations, providing a straightforward solution for saving strategy parameters by simply taking a screenshot with Alt + S or ⌥ + S.
User-input styles and customizations:
Please note that all background colors in the style are disabled by default to enhance visualization.
How to Use This Strategy to Create a Profitable Edge and Systems?
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions/slippage on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker/prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 200 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, and net profit with minimum drawdown.
- Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
What makes this strategy original?
Incorporation of Fundamental Analysis:
This strategy integrates fundamental analysis by considering key economic indicators such as interest rates, inflation, GDP growth, and unemployment rates. These fundamentals help in assessing the broader economic health, which in turn influences sector performance and market trends. By understanding these economic conditions, the strategy can identify sectors or assets that are likely to thrive, ensuring investments are made in environments conducive to growth. This approach allows for a more informed investment decision, aligning technical entries with fundamentally strong market conditions, thus potentially enhancing the strategy's effectiveness over time.
Technical Analysis Without Classical Methods:
The strategy's technical analysis diverges from traditional methods like moving averages by focusing on market structure through a trend score system.
Instead of using lagging indicators, it employs a real-time analysis of market trends by calculating the ratio of bullish to bearish breakouts. This provides several benefits:
Immediate Market Sentiment: The trend score system reacts more dynamically to current market conditions, offering insights into the market's immediate sentiment rather than historical trends, which can often lag behind real-time changes.
Reduced Overfitting: By not relying on moving averages or similar classical indicators, the strategy avoids the common pitfall of overfitting to historical data, which can lead to poor performance in new market conditions. The trend score provides a fresh perspective on market direction, potentially leading to more robust trading signals.
Clear Entry Signals: With the trend score, entry decisions are based on a clear percentage threshold, making the strategy's decision-making process straightforward and less subjective than interpreting moving average crossovers or similar signals.
Regular Contributions and Reminders:
The strategy encourages regular investments through a system of predefined frequency and amount, which could be weekly, bi-weekly, monthly, quarterly, or yearly. This systematic approach:
Enhances Compounding: Regular contributions leverage the power of compounding, where returns on investments can generate their own returns, potentially leading to exponential growth over time.
Reduces Timing Risk: By investing regularly, the strategy minimizes the risk associated with trying to time the market, spreading out the investment cost over time and potentially reducing the impact of volatility.
Automated Reminders: The script reminds users to make contributions based on their chosen schedule, ensuring consistency and discipline in investment practices, which is crucial for long-term success.
Long-Term Wealth Building:
Focused on long-term wealth accumulation, this strategy:
Promotes Patience and Discipline: By emphasizing regular contributions and a disciplined approach to both entry and risk management, it aligns with the principles of long-term investing, discouraging impulsive decisions based on short-term market fluctuations.
Diversification Across Asset Classes: Operating across crypto, stocks, and commodities, the strategy provides diversification, which is a key component of long-term wealth building, reducing risk through varied exposure.
Growth Over Time: The strategy's design to work with the market's natural growth cycles, supported by fundamental analysis, aims for sustainable growth rather than quick profits, aligning with the goals of investors looking to build wealth over decades.
This comprehensive approach, combining fundamental insights, innovative technical analysis, disciplined investment habits, and a focus on long-term growth, offers a unique and potentially effective pathway for investors seeking to build wealth steadily over time.
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
- By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
3Commas Multicoin Scalper LITE [SwissAlgo]
Introduction
Are you tired of tracking cryptocurrency charts and placing orders manually on your Exchange?
The 3Commas Multicoin Scalper LITE is an automated trading system designed to identify and execute potential trading setups on multiple cryptocurrencies ( simultaneously ) on your preferred Exchange (Binance, Bybit, OKX, Gate.io, Bitget) via 3Commas integration.
It analyzes price action, volume, momentum, volatility, and trend patterns across two categories of USDT Perpetual coins: the 'Top Major Coins' category (11 established cryptocurrencies) and your Custom Category (up to 10 coins of your choice).
The indicator sends real-time trading signals directly to your 3Commas bots for automated execution, identifying both trend-following and contrarian trading opportunities in all market conditions.
Trade automatically all coins of one or more selected categories:
----------------------------------------------
What it Does
The 3Commas Multicoin Scalper LITE is a technical analysis tool that monitors multiple cryptocurrency pairs simultaneously and connects with 3Commas for signal delivery and execution.
Here's how the strategy works:
🔶 Technical Analysis : Analyzes price action, volume, momentum, volatility, and trend patterns across USDT Perpetual Futures contracts simultaneously.
🔶 Pattern Detection : Identifies specific candle patterns and technical confluences that suggest potential trading setups across USDT.P contracts of the selected category.
🔶 Signal Generation : When technical criteria are met at bar close, the indicator creates deal-start signals for the relevant pairs.
🔶 3Commas Integration : Packages these signals and delivers them to 3Commas through TradingView alerts, allowing 3Commas bots to receive specific pair information ('Deal-Start' signals).
🔶 Category Management : Each TradingView alert monitors an entire category, allowing selective activation of different crypto categories.
🔶 Visual Feedback : Provides color-coded candles and backgrounds to visualize technical conditions, with optional pivot points and trend visualization.
Candle types
Signals
----------------------------------------------
Quick Start Guide
1. Setup 3Commas Bots : Configure two DCA bots in 3Commas (All USDT pairs) - one for LONG positions and one for SHORT positions.
2. Define Trading Parameters : Set your budget for each trade and adjust your preferred sensitivity within the indicator settings.
3. Create Category Alerts : Set up one TradingView alert for each crypto category you want to trade.
That's it! Once configured, the system automatically sends signals to your 3Commas bots when predefined trading setups are detected across coins in your selected/activated categories. The indicator scans all coins at bar close (for example, every hour on the 1H timeframe) and triggers trade execution only for those showing technical confluences.
Important : Consider your total capital when enabling categories. More details about the setup process are provided below (see paragraph "Detailed Setup & Configuration").
----------------------------------------------
Built-in Backtesting
The 3Commas Multicoin Scalper LITE includes backtesting visualization for each coin. When viewing any USDT Perpetual pair on your chart, you can visualize how the strategy would have performed historically on that specific asset.
Color-coded candles and signal markers show past trading setups, helping you evaluate which coins responded best to the strategy. This built-in backtesting capability can support your selection of assets/categories to trade before deploying real capital.
As backtesting results are hypothetical and do not guarantee future performance, your research and analysis are essential for selecting the crypto categories/coins to trade.
The default strategy settings are: Start Capital 1,000$, leverage 10X, Commissions 0.1% (average Taker Fee on Exchanges for average users), Order Amount 200$ for Longs/Shorts, Slippage 4
Example of backtesting view
----------------------------------------------
Key Features
🔶 Multi-Exchange Support : Compatible with BINANCE, BYBIT, BITGET, GATEIO, and OKX USDT Perpetual markets (USDT.P)
🔶 Category Options : Analyze cryptocurrencies in the Top Major Coins category or create your custom watchlist
🔶 Custom Category Option : Create your watchlist with up to 10 custom USDT Perpetual pairs
🔶 3Commas Integration : Seamlessly connects with 3Commas bots to automate trade entries and exits
🔶 Dual Strategy Approach : Identifies both "trend following" and "contrarian" potential setups
🔶 Confluence-Based Signals : Uses a combination of multiple technical factors - price spikes, price momentum, volume spikes, volume momentum, trend analysis, and volatility spikes - to generate potential trading setups
🔶 Risk Management : Adjustable sensitivity/risk levels, leverage settings, and budget allocation for each trade
🔶 Visual Indicators : Color-coded candles and trading signals provide visual feedback on market conditions
🔶 Trend Indication : Background colors showing ongoing uptrends/downtrends
🔶 Pivot Points & Daily Open : Optional display of pivot points and daily open price for additional context
🔶 Liquidity Analysis : Optional display of high/low liquidity timeframes throughout the trading week
🔶 Trade Control : Configurable limit for the maximum number of signals sent to 3Commas for execution (per bar close and category)
5 Available Exchanges
Pick coins/tokens and defined your Custom Category
----------------------------------------------
Methodology
The 3Commas Multicoin Scalper LITE utilizes a multi-faceted approach to identify potential trading setups:
1. Price Action Analysis : Detects abnormal price movements by comparing the current candle's range to historical averages and standard deviations, helping identify potential "pump and dump" scenarios or new-trends start
2. Price Momentum : Evaluates the relative strength of bullish vs. bearish price movements over time, indicating the build-up of buying or selling pressure.
3. Volume Analysis: Identifies unusual volume spikes by comparing current volume to historical averages, signaling strong market interest in a particular direction.
4. Volume Momentum : Measures the ratio of bullish to bearish volume, revealing the dominance of buyers or sellers over time.
5. Trend Analysis : Combines EMA slopes, RSI, and Stochastic RSI to determine overall trend direction and strength.
6. Volatility : Monitors the ATR (Average True Range) to detect periods of increased market volatility, which may indicate potential breakouts or reversals
7. Candle Wick Analysis : Evaluates upper and lower wick percentages to detect potential rejection patterns and reversals.
8. Pivot Point Analysis : Uses pivot points (PP, R1-R3, S1-S3) for identifying key support/resistance areas and potential breakout/breakdown levels.
9. Daily Open Reference: Analyzes price action relative to the daily open for potential setups related to price movement vs. the opening price
10. Market Timing/Liquidity : Evaluates high/low liquidity periods, specific days/times of heightened risk, and potential market manipulation timeframes.
11. Boost Factors : Applies additional weight to certain confluence patterns to adjust global scores
These factors are combined into a "Global Score" ranging from -1 to +1 , applied at bar close to the newly formed candles.
Scores above predefined thresholds (configurable via the Sensitivity Settings) indicate strong bullish or bearish conditions and trigger signals based on predefined patterns. The indicator then applies additional filters to generate specific "Trend Following" and "Contrarian" trading signals. The identified signals are packaged and sent to 3Commas for execution.
Pivot Points
Trend Background
----------------------------------------------
Who This Strategy Is For
The 3Commas Multicoin Scalper LITE may benefit:
Crypto Traders seeking to automate their trading across multiple coins simultaneously
3Commas Users looking to enhance their bot performance with technical signals
Busy Traders who want to monitor market opportunities without constant chart-watching
Multi-strategy traders interested in both trend-following and reversal trading approaches
Traders of Various Experience Levels from intermediate traders wanting to save time to advanced traders seeking to optimize their operations
Perpetual Futures Traders on major exchanges (Binance, Bybit, OKX, Gate.io, Bitget)
Swing and Scalp Traders seeking to identify short to medium-term profit opportunities
----------------------------------------------
Visual Indicators
The indicator provides visual feedback through:
1. Candlestick Colors :
* Lime: Strong bullish candle (High positive score)
* Blue: Moderate bullish candle (Medium positive score)
* Red: Strong bearish candle (High negative score)
* Purple: Moderate bearish candle (Medium negative score)
* Pale Green/Red: Mild bullish/bearish candle
2. Signal Markers :
* ↗: Trend following Long signal
* ↘: Trend following Short signal
* ⤴: Contrarian Long signal
* ⤵: Contrarian Short signal
3. Optional Elements :
* Pivot Points: Daily support/resistance levels (R1-R3, S1-S3, PP)
* Daily Open: Reference price level for the current trading day
* Trend Background: Color-coded background suggesting potential ongoing uptrend/downtrend
* Liquidity Highlighting: Background colors indicating typical high/low market liquidity periods
4. TradingView Strategy Plots and Backtesting Data : Standard performance metrics showing entry/exit points, equity curves, and trade statistics, based on the signals generated by the script.
----------------------------------------------
Detailed Setup & Configuration
The indicator features a user-friendly input panel organized in sequential steps to guide you through the complete setup process. Tooltips for each step provide additional information to help you understand the actions required to get the strategy running.
Informative tables provide additional details and instructions for critical setup steps such as 3Commas bot configuration and TradingView alert creation (to activate trading on specific categories).
1. Choose Exchange, Crypto Category & Sensitivity
* Select your USDT Perpetual Exchange (BINANCE, BYBIT, BITGET, GATEIO, or OKX) - i.e. the same Exchange connected in your 3Commas account
* Choose your preferred crypto category, or define your watchlist
* Choose from three sensitivity levels: Default, Aggressive, or Test Mode (test mode is designed to generate more signals, a potentially helpful feature when you are testing the indicator and alerts)
2. Setup 3Commas Bots and integrate them with the algo
* Create both LONG and SHORT DCA Bots in 3Commas
* Configure bots to accept signals for 'All USDT Pairs' with "TradingView Custom Signal" as deal start condition
* Enter your Bot IDs and Email Token in the indicator settings
* Set a maximum budget for LONG and SHORT trades
* Choose whether to allow LONG trades, SHORT trades, or both, according to your preference and market analysis
* Set maximum trades per bar/category (i.e. the max. number of simultaneous signals that the algo may send to your 3Commas bots for execution at every bar close - every hour if you set the 1H timeframe)
* Access the detailed setup guide table for step-by-step 3Commas configuration instructions
3Commas integration
3. Choose Visuals
* Toggle various optional visual elements to add to the chart: category metrics, fired alerts, coin metrics, daily open, pivot points
* Select a color theme: Dark or Light
4. Activate Trading via Alerts
* Create TradingView alerts for each category you want to trade
* Set alert condition to "3Commas Multicoin Scalper" with "Any alert() function call"
* Set the content of the message field to: {{Message}}, deleting the default content shown in this text field, to enable proper 3Commas integration (any other text than {{Message}}, would break the delivery trading signals from Tradingview to 3Commas)
* View the alerts setup instruction table for visual guidance on this critical step
Alerts
Fired Alerts (example at a single bar)
Fired Alerts (frequency)
Important Configuration Notes
Ensure that the TradingView chart's exchange matches your selected exchange in the indicator settings and your 3Commas bot settings.
You must configure the same leverage in both the script and your 3Commas bots
Your 3Commas bots must be configured for All USDT pairs
You must enter the exact Bot IDs and Email Token from 3Commas (these remain confidential - no one, including us, has access to them)
If you activate multiple categories without sufficient capital, 3Commas will display " insufficient funds " errors - align your available capital with the number of categories you activate (each deal will use the budget amount specified in user inputs)
You are free to set your Take Profit % / trailing on 3Commas
We recommend not to use DCA orders (i.e. set the number of DCA orders at zero)
Legend of symbols and plots on the chart
----------------------------------------------
FAQs
General Questions
❓ Q: What features are included in this indicator? A: This indicator provides access to the "Top Major Coins" category and a custom category option where you can define up to 10 pairs of your choice. It includes multi-exchange support, 3Commas integration, a dual strategy approach, visual indicators, trade controls, and comprehensive backtesting capabilities. The indicator is optimized to manage up to 2 trades per hour/category with leverage up to 10x and trade sizes up to 500 USDT - everything needed for traders looking to automate their crypto trading across multiple pairs simultaneously.
❓ Q: What is Global Score? A: The Global Score serves as a foundation for signal generation. When a candle's score exceeds certain thresholds (defined by your Risk Level setting), it becomes a candidate for signal generation. However, not all high-scoring candles generate trading signals - the indicator applies additional pattern recognition and contextual filters. For example, a strongly positive score (lime candle) in an established uptrend may trigger a "Trend Following" signal, while a strongly negative score (red candle) in a downtrend might generate a "Trend following Short" signal. Similarly, contrarian signals are generated when specific reversal patterns occur alongside appropriate Global Score values, often involving wick analysis and pivot point interactions. This multi-layer approach helps filter out false positives and identify higher-probability trading setups.
❓ Q: What's the difference between "Trend following" and "Contrarian" signals in the script? A: "Trend Following" signals follow the identified trends while "Contrarian" signals anticipate potential trend reversals.
❓ Q: Why don't I see any signals on my chart? A: Make sure you're viewing a USDT Perpetual pair from your selected exchange that belongs to the crypto category you've chosen to analyze. For example, if you've selected the "Top Major Coins" category with Binance as your exchange, you need to view a chart of one of those specific pairs (like BINANCE:BTCUSDT.P) to see signals. If you switch exchanges, for example from Binance to Bybit, you need to pull a Bybit pair on the chart to see backtesting data and signals.
❓ Q: Does this indicator guarantee profits? A: No. Trading cryptocurrencies involves significant risk, and past performance is not indicative of future results. This indicator is a tool to help you identify potential trading setups, but it does not and cannot guarantee profits.
❓ Q: Does this indicator repaint or use lookahead bias? A: No. All trading signals generated by this indicator are based only on completed price data and do not repaint. The system is designed to ensure that backtesting results reflect as closely as possible what you should experience in live trading.
While reference levels like pivot points are kept stable throughout the day using lookahead on, the actual buy and sell signals are calculated using only historical data (lookahead off) that would have been available at that moment in time. This ensures reliability and consistency between backtesting and real-time trading performance.
Technical Setup
❓ Q: What exchanges are supported? A: The strategy supports BINANCE, BYBIT, BITGET, GATEIO, and OKX USDT Perpetual markets (i.e. all the Exchanges you can connect to your 3Commas account for USDT Perpetual trading, excluding Coinbase Perpetual that offers USDC pairs, instead of USDT).
❓ Q: What timeframe should I use? A: The indicator is optimized for the 1-hour (1H) timeframe but may run on any timeframe.
❓ Q: How many coins can I trade at once? A: You can trade all coins within the selected category. You can activate categories by setting up alerts.
❓ Q: How many alerts do I need to set up? A: You need to set up one alert for each crypto category you want to trade. We recommend starting with one category, testing the results carefully, monitoring performance daily, and perhaps activating additional categories in a second stage.
❓ Q: Are there any specific risk management features built into the indicator? A: Yes, the indicator includes risk management features: adjustable maximum trades per hour/category, the ability to enable/disable long or short signals depending on market conditions, customizable trade size for both long and short positions, and different sensitivity/risk level settings.
❓ Q: What happens if 3Commas can't execute a signal? A: If 3Commas cannot execute a signal (due to insufficient funds, bot offline, etc.), the trade will be skipped. The indicator will continue sending signals for other valid setups, but it doesn't retry failed signals.
❓ Q: Can I run this indicator on multiple charts at once? A: Yes, but it's not necessary. The indicator analyzes all coins in your selected categories regardless of which chart you apply it to. For optimal resource usage, apply it to a single chart of a USDT Perpetual pair from your selected exchange. To stop trading a category, simply delete the alert created for that category.
❓ Q: How frequently does the indicator scan for new signals? A: The indicator scans all coins in your selected categories at the close of each bar (every hour if you selected the 1H timeframe).
----------------------------------------------
⚠️
Disclaimer
This indicator is for informational and educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves significant risk, including the potential loss of all invested capital, and past performance is not indicative of future results.
Always conduct your own thorough research (DYOR) and understand the risks involved before making any trading decisions. Trading with leverage significantly amplifies both potential profits and losses - exercise extreme caution when using leverage and never risk more than you can afford to lose.
The Bot ID and Email Token information are transmitted directly from TradingView to 3Commas via secure connections. No third party or entity will ever have access to this data (including the Author). Do not share your 3Commas credentials with anyone.
This indicator is not affiliated with, endorsed by, or sponsored by TradingView or 3Commas.
Major Rotation System | QuantumResearch🚀 MRS | QuantumResearch 🚀
The Major Rotation System is an advanced quantitative system designed to dynamically allocate between Bitcoin (BTC), Ethereum (ETH), and Solana (SOL) based on a proprietary Trend Position Indicator (TPI) framework. The system monitors relative strength across assets and adapts allocations to maximize edge in trending conditions while avoiding significant drawdowns.
This tool is particularly valuable for long-term investors and active traders looking for a data-driven way to enhance their portfolio allocation without relying on subjective decision-making.
🔍 How It Works
The system continuously evaluates the strength of BTC, ETH, and SOL by applying the AVWO. This oscillator calculates how each asset is performing relative to its volume-weighted moving average and applies a dynamic threshold mechanism to identify bullish or bearish trends.
The Key Features:
✅ Asset Rotation Based on Strength – The system allocates to BTC, ETH, or SOL depending on which asset exhibits the strongest positive momentum signals.
✅ Adaptive Trend Position Indicator (TPI) – The TPI system scores each asset based on its recent performance, assigning higher weight to assets leading in momentum while reducing allocation to underperforming assets.
✅ Risk-Aware Positioning – When all assets show weak momentum, the system defaults to a cash position, mitigating unnecessary exposure in high-risk environments.
✅ Live Performance Tracking & Score Metrics – Displays Sharpe Ratio, Sortino Ratio, Omega Ratio, and Max Drawdown, providing users with clear risk/reward insights.
✅ Equity Growth Representation – The system tracks portfolio equity over time, displaying its growth relative to a Buy & Hold BTC strategy since 2023.
📊 Equity Performance Interpretation
The system plots a tracking equity curve that represents growth over time.
🔹 Example interpretation:
An equity of 12 means the system has achieved a 12X return since 2023.
An equity of 5 means the system has achieved a 5X return compared to simply holding BTC over the same period.
📊 Tracking Equity Visualization:
📌 How to Read the Scoring System
The system dynamically assigns scores to BTC, ETH, and SOL based on their score and TPI:
✅ Score of 2 → Strongest asset (highest allocation priority)
✅ Score of 1 → Secondary asset (moderate allocation)
✅ Score of 0 → Weak/no allocation
✅ If all assets score low, the system moves into cash to avoid market downturns
📈 Current Recommended Positioning
💡 The system recommends an adaptive portfolio allocation based on real-time market conditions.
⚠️ Disclaimer
The content provided is for informational and educational purposes only. Nothing contained within should be considered financial, investment, legal, or other professional advice. Past performance does not guarantee future results. Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor.
🔥 Maximize your market edge with the MRS | QuantumResearch system! 🚀
3Commas Multicoin Scalper PRO [SwissAlgo]Introduction
Are you tired of tracking dozens of cryptocurrency charts and placing orders manually on your Exchange?
The 3Commas Multicoin Scalper PRO is an automated trading system designed to simultaneously identify and execute potential trading setups on multiple cryptocurrencies on your preferred Exchange (Binance, Bybit, OKX, Gate.io, Bitget) via 3Commas integration.
It analyzes price action, volume, momentum, volatility, and trend patterns across 180+ USDT Perpetual coins divided into 17 crypto categories , providing real-time signals directly to your 3Commas bots for automated trade execution. This indicator aims to identify potential trend-following and contrarian setups in both bull and bear markets.
-------------------------------------
What it Does
The 3Commas Multicoin Scalper PRO is a technical analysis tool that monitors multiple cryptocurrency pairs simultaneously and connects with 3Commas for signal delivery and execution.
Here's how the strategy works:
🔶 Technical Analysis : Analyzes price action, volume, momentum, volatility, and trend patterns across multiple USDT Perpetual Futures contracts simultaneously.
🔶 Pattern Detection : Identifies specific candle patterns and technical confluences that suggest potential trading setups across all USDT.P contracts of the selected categories
🔶 Signal Generation : When technical criteria are met at bar close, the indicator creates deal-start signals for the relevant pairs.
🔶 3Commas Integration : Packages these signals and delivers them to 3Commas through TradingView alerts, allowing 3Commas bots to receive specific pair information ('Deal-Start' signals).
🔶 Category Management : Each TradingView alert monitors an entire category (approximately 11 pairs), allowing selective activation of different crypto categories.
🔶 Visual Feedback : Provides color-coded candles and backgrounds to visualize technical conditions, with optional pivot points and trend visualization.
Candle types:
Signals:
-------------------------------------
Quick Start Guide
1. Setup 3Commas Bots : Configure two DCA bots in 3Commas (All USDT pairs) - one for LONG positions and one for SHORT positions.
2. Define Trading Parameters : Set your budget for each trade and adjust your preferred sensitivity within the indicator settings.
3. Create Category Alerts : Set up one TradingView alert for each crypto category you want to trade.
That's it! Once configured, the system automatically sends signals to your 3Commas bots when predefined trading setups are detected across coins in your selected/activated categories. The indicator scans all coins at bar close (for example, every hour on the 1H timeframe) and triggers trade execution only for those showing technical confluences.
Important : The more categories you activate by setting TradingView alerts, the more signals your 3Commas bots will receive. Consider your total capital when enabling multiple categories. More details about the setup process are provided below (see paragraph "Detailed Setup & Configuration")
-------------------------------------
Built-in Backtesting
The 3Commas Multicoin Scalper PRO includes backtesting visualization for each coin. When viewing any USDT Perpetual pair on your chart, you can visualize how the strategy would have performed historically on that specific asset.
Color-coded candles and signal markers show past trading setups, helping you evaluate which coins responded best to the strategy. This built-in backtesting capability can support your selection of assets/categories to trade before deploying real capital.
As backtesting results are hypothetical and do not guarantee future performance, your research and analysis are essential for selecting the crypto categories/coins to trade.
The default strategy settings are: Start Capital 1.000$, leverage 25X, Commissions 0.1% (average Taker Fee on Exchanges for average users), Order Amount 200$ for Longs/150$ for Shorts, Slippage 4
-------------------------------------
Key Features
🔶 Multi-Exchange Support : Compatible with BINANCE, BYBIT, BITGET, GATEIO, and OKX USDT Perpetual markets (USDT.P)
🔶 Wide Asset Coverage : Simultaneously analyzes 180+ cryptocurrencies across 17 specialized crypto categories
🔶 Custom Category Option : Create your watchlist with up to 10 custom USDT Perpetual pairs
🔶 3Commas Integration : Seamlessly connects with 3Commas bots to automate trade entries and exits
🔶 Dual Strategy Approach : Identifies both "trend following" and "contrarian" potential setups
🔶 Confluence-Based Signals : Uses a combination of multiple technical factors - price spikes, price momentum, volume spikes, volume momentum, trend analysis, and volatility spikes - to generate potential trading setups
🔶 Risk Management : Adjustable sensitivity/risk levels, leverage settings, and budget allocation for each trade
🔶 Visual Indicators : Color-coded candles and trading signals provide visual feedback on market conditions
🔶 Trend Indication : Background colors showing ongoing uptrends/downtrends
🔶 Pivot Points & Daily Open : Optional display of pivot points and daily open price for additional context
🔶 Liquidity Analysis : Optional display of high/low liquidity timeframes throughout the trading week
🔶 Trade Control : Configurable limit for the maximum number of signals sent to 3Commas for execution (per bar close and category)
Available Exchanges
Categories
Custom Category
Trend following/contrarian signals
-------------------------------------
Methodology
The 3Commas Multicoin Scalper PRO utilizes a multi-faceted approach to identify potential trading setups:
1. Price Action Analysis : Detects abnormal price movements by comparing the current candle's range to historical averages and standard deviations, helping identify potential "pump and dump" scenarios or new-trends start
2. Price Momentum : Evaluates the relative strength of bullish vs. bearish price movements over time, indicating the build-up of buying or selling pressure.
3. Volume Analysis: Identifies unusual volume spikes by comparing current volume to historical averages, signaling strong market interest in a particular direction.
4. Volume Momentum : Measures the ratio of bullish to bearish volume, revealing the dominance of buyers or sellers over time.
5. Trend Analysis : Combines EMA slopes, RSI, and Stochastic RSI to determine overall trend direction and strength.
6. Volatility : Monitors the ATR (Average True Range) to detect periods of increased market volatility, which may indicate potential breakouts or reversals
7. Candle Wick Analysis : Evaluates upper and lower wick percentages to detect potential rejection patterns and reversals.
8. Pivot Point Analysis : Uses pivot points (PP, R1-R3, S1-S3) for identifying key support/resistance areas and potential breakout/breakdown levels.
9. Daily Open Reference: Analyzes price action relative to the daily open for potential setups related to price movement vs. the opening price
10. Market Timing/Liquidity : Evaluates high/low liquidity periods, specific days/times of heightened risk, and potential market manipulation timeframes.
11. Boost Factors : Applies additional weight to certain confluence patterns to adjust global scores
These factors are combined into a "Global Score" ranging from -1 to +1 , applied at bar close to the newly formed candles.
Scores above predefined thresholds (configurable via the Sensitivity Settings) indicate strong bullish or bearish conditions and trigger signals based on predefined patterns. The indicator then applies additional filters to generate specific "Trend Following" and "Contrarian" trading signals. The identified signals are packaged and sent to 3Commas for execution.
Pivot Points
Daily open
Market Trend
Liquidity patterns by weekday
-------------------------------------
Who This Strategy Is For?
The 3Commas Multicoin Scalper PRO may benefit:
Crypto Traders seeking to automate their trading across multiple coins simultaneously
3Commas Users looking to enhance their bot performance with advanced technical signals
Busy Traders who want to monitor many market opportunities without constant chart-watching
Multi-strategy traders interested in both trend-following and reversal trading approaches
Traders of Various Experience Levels from intermediate traders wanting to save time to advanced traders seeking to scale their operations
Perpetual Futures Traders on major exchanges (Binance, Bybit, OKX, Gate.io, Bitget)
Swing and Scalp Traders seeking to identify short to medium-term profit opportunities
-------------------------------------
Visual Indicators
The indicator provides visual feedback through:
1. Candlestick Colors :
* Lime: Strong bullish candle (High positive score)
* Blue: Moderate bullish candle (Medium positive score)
* Red: Strong bearish candle (High negative score)
* Purple: Moderate bearish candle (Medium negative score)
* Pale Green/Red: Mild bullish/bearish candle
2. Signal Markers :
* ↗: Trend Following Long signal
* ↘: Trend Following Short signal
* ⤴: Contrarian Long signal
* ⤵: Contrarian Short signal
3. Optional Elements :
* Pivot Points: Daily support/resistance levels (R1-R3, S1-S3, PP)
* Daily Open: Reference price level for the current trading day
* Trend Background: Color-coded background suggesting potential ongoing uptrend/downtrend
* Liquidity Highlighting: Background colors indicating typical high/low market liquidity periods
4. TradingView Strategy Plots and Backtesting Data : Standard performance metrics showing entry/exit points, equity curves, and trade statistics, based on the signals generated by the script.
-------------------------------------
Detailed Setup & Configuration
The indicator features a user-friendly input panel organized in sequential steps to guide you through the complete setup process. Tooltips for each step provide additional information to help you understand the actions required to get the strategy running.
Informative tables provide additional details and instructions for critical setup steps such as 3Commas bot configuration and TradingView alert creation (to activate trading on specific categories).
1. Choose Exchange, Crypto Category & Sensitivity
* Select your USDT Perpetual Exchange (BINANCE, BYBIT, BITGET, GATEIO, or OKX) - i.e. the same Exchange connected in your 3Commas account
* Browse and choose your preferred crypto category, or define your watchlist
* Choose from three sensitivity levels: Default, Aggressive, or Test Mode (test mode is designed to generate way more signals, a potentially helpful feature when you are testing the indicator and alerts)
2. Setup 3Commas Bots and integrate them with the algo
* Create both LONG and SHORT DCA Bots in 3Commas
* Configure bots to accept signals for 'All USDT Pairs' with "TradingView Custom Signal" as deal start condition
* Enter your Bot IDs and Email Token in the indicator settings
* Set a maximum budget for LONG and SHORT trades
* Choose whether to allow LONG trades, SHORT trades, or both, according to your preference and market analysis
* Set maximum trades per bar/category (i.e. the max. number of simultaneous signals that the algo may send to your 3Commas bots for execution at every bar close - every hour if you set the 1H timeframe)
* Access the detailed setup guide table for step-by-step 3Commas configuration instructions
3Commas integration
3. Choose Visuals
* Toggle various optional visual elements to add to the chart: category metrics, fired alerts, coin metrics, daily open, pivot points
* Select a color theme: Dark or Light
4. Activate Trading via Alerts
* Create TradingView alerts for each category you want to trade
* Set alert condition to "3Commas Multicoin Scalper" with "Any alert() function call"
* Set the content of the message filed to: {{Message}}, deleting the default content shown in this text field, to enable proper 3Commas integration (any other text than {{Message}}, would break the delivery trading signals from Tradingview to 3Commas)
* View the alerts setup instruction table for visual guidance on this critical step
Alerts
Fired Alerts
Important Configuration Notes
Ensure that the TradingView chart's exchange matches your selected exchange in the indicator settings and your 3Commas bot settings.
You must configure the same leverage in both the script and your 3Commas bots
Your 3Commas bots must be configured for All USDT pairs
You must enter the exact Bot IDs and Email Token from 3Commas (these remain confidential - no one, including us, has access to them)
If you activate multiple categories without sufficient capital, 3Commas will display " insufficient funds " errors - align your available capital with the number of categories you activate (each deal will use the budget amount specified in user inputs)
You are free to set your Take Profit % / trailing on 3Commas
We recommend not to use DCA orders (i.e. set the number of DCA orders at zero)
Legend of symbols
-------------------------------------
FAQs
General Questions
❓ Q: What is Global Score? A: The Global Score serves as a foundation for signal generation. When a candle's score exceeds certain thresholds (defined by your Risk Level setting), it becomes a candidate for signal generation. However, not all high-scoring candles generate trading signals - the indicator applies additional pattern recognition and contextual filters. For example, a strongly positive score (lime candle) in an established uptrend may trigger a "Trend Following" signal, while a strongly negative score (red candle) in a downtrend might generate a "Trend Following Short" signal. Similarly, contrarian signals are generated when specific reversal patterns occur alongside appropriate Global Score values, often involving wick analysis and pivot point interactions. This multi-layer approach helps filter out false positives and identify higher-probability trading setups.
❓ Q: What's the difference between "Trend following" and "Contrarian" signals in the script? A: "Trend Following" signals follow the identified trends while "Contrarian" signals anticipate potential trend reversals.
❓ Q: Why can't I configure all the parameters? A: We've designed the solution to be plug-and-play to prevent users from getting lost in endless configurations. The preset values have been tested against their trade-offs in terms of financial performance, average trade duration, and risk levels.
❓ Q: Why don't I see any signals on my chart? A: Make sure you're viewing a USDT Perpetual pair from your selected exchange that belongs to the crypto category you've chosen to analyze. For example, if you've selected the "Top Major Coins" category with Binance as your exchange, you need to view a chart of one of those specific pairs (like BINANCE:BTCUSDT.P) to see signals. If you switch exchanges, for example from Binance to Bybit, you need to pull a Bybit pair on the chart to see backtesting data and signals.
❓ Q: Does this indicator guarantee profits? A: No. Trading cryptocurrencies involves significant risk, and past performance is not indicative of future results. This indicator is a tool to help you identify potential trading setups, but it does not and cannot guarantee profits.
❓ Q: Does this indicator repaint or use lookahead bias? A: No. All trading signals generated by this indicator are based only on completed price data and do not repaint. The system is designed to ensure that backtesting results reflect as closely as possible what you should experience in live trading.
While reference levels like pivot points are kept stable throughout the day using lookahead on, the actual buy and sell signals are calculated using only historical data (lookahead off) that would have been available at that moment in time. This ensures reliability and consistency between backtesting and real-time trading performance.
Technical Setup
❓ Q: What exchanges are supported? A: The strategy supports BINANCE, BYBIT, BITGET, GATEIO, and OKX USDT Perpetual markets (i.e. all the Exchanges you can connect to your 3Commas account for USDT Perpetual trading, excluding Coinbase Perpetual that offers UDSC pairs, instead of USDT).
❓ Q: What timeframe should I use? A: The indicator is optimized for the 1-hour (1H) timeframe but may run on any timeframe.
❓ Q: How many coins can I trade at once? A: You can trade all coins within each selected category (up to 11 coins per category in standard categories). You can activate multiple categories by setting up multiple alerts.
❓ Q: How many alerts do I need to set up? A: You need to set up one alert for each crypto category you want to trade. For example, if you want to trade both the "Top Major Coins" and the "DeFi" categories, you'll need to create two separate alerts, one for each category. We recommend starting with one category, testing the results carefully, monitoring performance daily, and perhaps activating additional categories in a second stage.
❓ Q: Are there any specific risk management features built into the indicator? A: Yes, the indicator includes risk management features: adjustable maximum trades per hour/category, the ability to enable/disable long or short signals depending on market conditions, customizable trade size for both long and short positions, and different sensitivity/risk level settings.
❓ Q: What happens if 3Commas can't execute a signal? A: If 3Commas cannot execute a signal (due to insufficient funds, bot offline, etc.), the trade will be skipped. The indicator will continue sending signals for other valid setups, but it doesn't retry failed signals.
❓ Q: Can I run this indicator on multiple charts at once? A: Yes, but it's not necessary. The indicator analyzes all coins in your selected categories regardless of which chart you apply it to. For optimal resource usage, apply it to a single chart of a USDT Perpetual pair from your selected exchange. To stop trading a category delete the alert created for that category.
❓ Q: How frequently does the indicator scan for new signals? A: The indicator scans all coins in your selected categories at the close of each bar (every hour if you selected the 1H timeframe).
3Commas Integration
❓ Q: Do I need a 3Commas account? A: Yes, a 3Commas account with active DCA bots (both LONG and SHORT) is required for automated trade execution. A paid subscription is needed, as multipair Bots and multiple simultaneous deals are involved.
❓ Q: How do I set the leverage? A: Set the leverage identically in both the indicator settings and your 3Commas DCA bots (the max supported leverage is 50x). Always be careful about leverage, as it amplifies both profits and losses.
❓ Q: Where do I find my 3Commas Bot IDs and Email Token? A: Open your 3Commas DCA bot and scroll to the "Messages" section. You'll find the Bot ID and Email Token within any message (e.g., "Start Deal").
Display Settings
❓ Q: What does the Sensitivity setting do? A: It adjusts the sensitivity of signal generation. "Default" provides a balanced approach with moderate signal frequency. "Aggressive" lowers the thresholds for signal generation, potentially increasing trade frequency but may include more noise. "Test Mode" is the most sensitive setting, useful for testing alert configurations but not recommended for live trading. Higher risk levels may generate more signals but with potentially lower average quality, while lower risk levels produce fewer but potentially better signals.
❓ Q: What does "Show fired alerts" do? A: The "Show fired alerts" option displays a label on your chart showing which signals have been fired and sent to 3Commas during the most recent candle closes. This visual indicator helps you confirm that your alerts are working properly and shows which coins from your selected category have triggered signals. It's useful when setting up and testing the system, allowing you to verify that signals are being sent to 3Commas as expected and their frequency over time.
❓ Q: What does "Show coin/token metrics" do? A: This toggle displays detailed technical metrics for the specific coin/token currently shown on your chart. When enabled, it shows statistics for the last closed candle for that coin.
❓ Q: What does "Show most liquid days/times" do? A: This toggle displays color-coded background highlighting to indicate periods of varying market liquidity throughout the trading week. Green backgrounds show generally higher liquidity periods (typically weekday trading hours), yellow highlights potentially manipulative periods (often Sunday/Monday overnight), and gray indicates low liquidity periods (when major markets are closed or during late hours).
⚠️ Disclaimer
This indicator is for informational and educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves significant risk, including the potential loss of all invested capital, and past performance is not indicative of future results.
Always conduct your own thorough research (DYOR) and understand the risks involved before making any trading decisions. Trading with leverage significantly amplifies both potential profits and losses - exercise extreme caution when using leverage and never risk more than you can afford to lose.
The Bot ID and Email Token information are transmitted directly from TradingView to 3Commas via secure connections. No third party or entity will ever have access to this data (including the Author). Do not share your 3Commas credentials with anyone.
This indicator is not affiliated with, endorsed by, or sponsored by TradingView or 3Commas.
Average Daily LiquidityIt is important to ensure sufficient stock trading liquidity so that you have sufficient volume to enter the trade and most importantly sufficient liquidity to exit the trade. Because daily trading liquidity can jump around so much by price changes and volume changes, it is important to smooth out the liquidity by using a moving average. Some use a 5 days (trading week) moving average, others use 10 day (2 weeks), 20 day ("month") and some use 65 day (quarter). The default is 10 days based upon the work of Colin Nicholson (The Aggressive Investor and Building Wealth in the Stock Market). Liquidity line changes color dependent upon the chart background luminescence. The amount you are planning to invest in a stock should have a liquidity of 10 (default) times that amount.
PnL MonitorThe PnL Monitor is a customizable tool designed to help traders track the Profit and Loss (PnL) of up to 20 currency pairs or assets in real-time. This script provides a clear and organized table that displays the entry price, and PnL percentage for each pair, making it an essential tool for monitoring open positions or tracking potential trades.
Key Features:
Multi-Asset Tracking:
Monitor up to 20 currency pairs or assets simultaneously. Simply input the pair symbol and your entry price, and the script will calculate the PnL in real-time.
Dynamic Table Positioning:
Choose where the table appears on your chart with the Table Position input. Options include:
Top Left
Top Right
Bottom Left
Bottom Right
Real-Time PnL Calculation:
The script fetches the current price of each pair and calculates the PnL percentage based on your entry price. Positive PnL is highlighted in green, while negative PnL is highlighted in red.
Exchange and Pair Separation:
The script automatically separates the exchange name (if provided) from the pair symbol, making it easier to identify the source of the data.
Customizable Inputs:
Add or remove pairs as needed.
Leave the price field blank for pairs you don’t want to track.
How to Use:
Input Your Pairs:
In the script settings, input the symbol of the pair (e.g., NASDAQ:AAPL or BTCUSD) and your entry price. Leave the price field blank for pairs you don’t want to track.
Choose Table Position:
Select where you want the table to appear on your chart.
Monitor PnL:
The table will automatically update with the current price and PnL percentage for each pair.
Why Use This Script?
Efficiency: Track multiple pairs in one place without switching charts.
Clarity: Easily identify profitable and losing positions at a glance.
Flexibility: Customize the table to fit your trading style and preferences.
Ideal For:
Forex, crypto, and stock traders managing multiple positions.
Position Size CalculatorPosition Size Calculator – Trading Risk Management Tool
📌 Overview:
The Position Size Calculator is a powerful and easy-to-use TradingView script designed to help traders calculate optimal position sizing, stop-loss levels, and potential profit/loss before entering a trade. By using this tool, traders can effectively manage risk and maximize reward with precise capital allocation.
🛠 Key Features:
✅ User-Friendly Inputs: Customize your entry price, portfolio size, position size, stop-loss %, and risk/reward ratio.
✅ Automatic Position Sizing: Calculates the capital required, quantity to buy, stop-loss, and target price dynamically.
✅ Risk & Reward Calculation: Displays potential profit/loss and risk on total capital (%) for better trade decisions.
✅ Customizable Display Options: Supports dark mode, adjustable table size, and flexible positioning.
✅ Visual Markers (Optional): Plots horizontal rays for stop-loss and target levels on the chart for better visualization.
✅ Optimized for All Markets: Works seamlessly with stocks, forex, crypto, and commodities.
🎯 How to Use:
1️⃣ Enter your entry price and portfolio amount.
2️⃣ Adjust the position size (%) and stop-loss % according to your risk appetite.
3️⃣ Set the risk/reward ratio to determine the profit target.
4️⃣ The script automatically calculates capital required, quantity to buy, stop-loss & target prices.
5️⃣ Use the display table to review trade metrics before executing your order.
🚀 Why Use This Script?
🔹 Helps traders avoid over-leveraging and control risk effectively.
🔹 Ensures consistent position sizing for disciplined trading.
🔹 Works across any time frame and instrument on TradingView.
🔹 Perfect for beginners and experienced traders to improve trade management.
⚡ Maximize your trading potential with proper risk management! Add this script to your chart and start making smarter trade decisions today! 🚀
Multi Asset Similarity MatrixProvides a unique and visually stunning way to analyze the similarity between various stock market indices. This script uses a range of mathematical measures to calculate the correlation between different assets, such as indices, forex, crypto, etc..
Key Features:
Similarity Measures: The script offers a range of similarity measures to choose from, including SSD (Sum of Squared Differences), Euclidean Distance, Manhattan Distance, Minkowski Distance, Chebyshev Distance, Correlation Coefficient, Cosine Similarity, Camberra Index, Mean Absolute Error (MAE), Mean Squared Error (MSE), Lorentzian Function, Intersection, and Penrose Shape.
Asset Selection: Users can select the assets they want to analyze by entering a comma-separated list of tickers in the "Asset List" input field.
Color Gradient: The script uses a color gradient to represent the similarity values between each pair of indices, with red indicating low similarity and blue indicating high similarity.
How it Works:
The script calculates the source method (Returns or Volume Modified Returns) for each index using the sec function.
It then creates a matrix to hold the current values of each index over a specified window size (default is 10).
For each pair of indices, it applies the selected similarity measure using the select function and stores the result in a separate matrix.
The script calculates the maximum and minimum values of the similarity matrix to normalize the color gradient.
Finally, it creates a table with the index names as rows and columns, displaying the similarity values for each pair of indices using the calculated colors.
Visual Insights:
The indicator provides an intuitive way to visualize the relationships between different assets. By analyzing the color-coded tables, traders can gain insights into:
Which assets are highly correlated (blue) or uncorrelated (red)
The strength and direction of these correlations
Potential trading opportunities based on similarities and differences between assets
Overall, MASM is a powerful tool for market analysis and visualization, offering a unique perspective on the relationships between various assets.
~llama3
Advanced Portfolio Equity [The Quant Science]Have you always dreamed of building investment portfolios on TradingView?
With our dedicated portfolio management suite, you can build investment portfolios and analyze advanced quantitative data directly on TradingView.
This specialized software allows you to build the equity curve of a buy & hold portfolio and compare its performance against a benchmark.
What is a buy & hold portfolio?
A buy & hold investment portfolio (Passive Investing) is a strategy in which an investor purchases financial assets (stocks, ETFs, bonds, cryptocurrencies, etc.) and holds them for the long term, regardless of market fluctuations. The goal is to benefit from long-term market growth, avoiding market timing and minimizing transaction costs.
Components
The software includes:
Dashboard: An interactive UI that allows you to manage software parameters without writing source code.
Visual Indicator: An advanced chart displaying the composition and performance of the portfolio.
How to build the portfolio equity?
1) Launch the software and set the capital.
Choose between fixed or custom capital. This value represents the total size of the portfolio. For example, setting Fixed $10,000 means the software will calculate performance based on a $10,000 portfolio.
2) Open the UI dashboard and configure portfolio costs.
Portfolio costs are applied as a percentage and can include spreads, opening and closing fees, commissions, and other expenses. Estimate your portfolio’s cost percentage and enter it in the Cost Configuration section.
3) Set the benchmark for your portfolio.
For example, BTC/USDT if you operate in the cryptocurrency sector, or NASDAQ if your portfolio mainly consists of U.S. tech stocks. The benchmark helps evaluate whether your portfolio is outperforming or underperforming compared to a specific market index or sector.
4) Configure the Asset Allocation.
Select the assets and define their percentage weight within the portfolio. The total portfolio weight must always sum to 100%. If the portfolio is overweighted or underweighted, the software will display an error notification.
What data does the software display?
1) Portfolio equity curve , highlighting growth and decline phases.
2) Equity comparison with the benchmark’s performance.
Additional Features
1) Change the timeframe to increase or decrease the indicator’s scale.
2) Adjust the date period analysis from the UI dashboard to focus on specific historical periods. This feature allows you to analyze how the portfolio behaves under different market conditions.
Performance Analysis by Period
2025 – Year to Date
2024-2025
2023-2024
2022-2023
2020-2025
How to select the ideal portfolio?
Choosing the ideal portfolio depends on many factors, many of which are personal and vary from investor to investor. However, from a quantitative perspective, an optimal portfolio should include a basket of assets that outperform the benchmark. Portfolios that generate slightly lower returns but with less severe drawdown compared to the benchmark may be the best choice for a portfolio manager seeking a lower-risk investment.
Advantages
1) High-quality data – By leveraging TradingView’s data providers, you can create portfolios with any asset available on the platform, tracking real-time prices from your chosen exchange or broker.
2) Fast & easy portfolio creation – Build investment portfolios effortlessly using a user-friendly UI dashboard without writing a single line of code.
3) Portfolio indicator – Beyond portfolio creation, TradingView’s advanced features allow you to use the portfolio as a quantitative analysis indicator with sophisticated visual tools.
4) Performance monitoring – Track your portfolio’s performance at a glance and compare it to the benchmark.
Limitations
1) Currently, the software supports portfolios with a maximum of 12 assets.
2) The software only supports spot assets – leverage and short positions are not included.
IMPORTANT!
The selected portfolio has been built for educational purposes only to demonstrate the software’s capabilities.
Who is this suite designed for?
This suite is tailored for traders and investors who need to create and analyze investment portfolios on TradingView using a quantitative approach.
Asset Allocation CalculatorOverview
This script is a tool that automatically calculates asset allocation for your investment portfolio. Users can set the weight of multiple assets and monitor the portfolio value in real time based on price fluctuations.
Key Features
Supports input of asset allocation percentages
Dynamic allocation calculation based on real-time price data
Automatically calculates allocated amounts for each asset based on the total investment amount
User-friendly interface with intuitive visual feedback
Settings
Total Capital : Enter the total capital, including the value of assets.
Quantity rounding : Using the rounding function may cause the target allocation to exceed 100%.
Tickers, Weight, Holdings :
To retrieve accurate asset prices, specify both the exchange and the ticker.
If you want to include cash in your portfolio, use $.
Ensure that the total allocation sums to 100%.
Refer to the pre-filled example for the correct format.
Table Settings : You can adjust the table's position, height, font size, and background color.
How to Use
By buying or selling the quantity shown in the Buy column, you can continuously maintain your target allocation.
Hold - Current holdings
Buy - Quantity to buy or sell to reach the target allocation
Target - Quantity aimed for after buying or selling
Caution
It can only calculate for a single currency, so do not mix multiple currency markets.
자산 배분 계산기
소개
이 스크립트는 투자 포트폴리오의 자산 배분을 자동으로 계산해주는 도구입니다. 사용자는 여러 자산의 비중을 설정할 수 있으며, 가격 변동에 따라 포트폴리오 가치를 실시간으로 모니터링할 수 있습니다.
주요 기능
자산 배분 비율 입력 지원
실시간 가격 데이터를 기반으로 한 동적 배분 계산
총 투자 금액을 기준으로 각 자산에 할당된 금액 자동 계산
직관적인 시각적 피드백을 제공하는 사용자 친화적인 인터페이스
설정
Total Capital : 자산 가치를 포함한 총 자본금을 입력하세요.
Quantity rounding : 반올림 기능을 사용하면 목표 비중이 100%를 초과할 수 있습니다.
Tickers, Weight, Holdings :
정확한 자산 가격을 불러오기 위해 거래소와 티커를 함께 입력하세요.
포트폴리오에 현금을 포함하려면 '$'를 사용하세요.
비중 합계가 반드시 100%가 되도록 설정하세요.
예제 형식을 참고하여 올바르게 입력하세요.
한국(원화) 시장을 위한 입력 예시입니다.
KRX:360750, 17.5, 100
KRX:310960, 17.5, 120
KRX:148070, 25, 20
KRX:305080, 25, 10
KRX:139320, 10, 150
UPBIT:BTCKRW, 5, 0.002
$,0,5000000
Table Settings : 테이블의 위치, 높이, 글자 크기 및 배경색을 조정할 수 있습니다.
사용 방법
Buy 열에 표시된 수량만큼 매수 또는 매도하면 목표 비중을 지속적으로 유지할 수 있습니다.
Hold - 현재 보유 수량
Buy - 목표 비중을 맞추기 위해 매수 또는 매도해야 하는 수량
Target - 매수, 매도 후 목표로 하는 수량
주의
한 가지 통화로만 계산할 수 있으니 여러 통화 시장을 혼용하지 마세요.
Consecutive Bullish/Bearish Candles🔍 Overview:
This indicator detects market manipulation and deception by identifying sequences of consecutive bullish or bearish candles. It highlights potential reversal zones where trends may exhaust or trap traders before reversing.
📌 How It Works:
The user can set a custom number of consecutive bullish or bearish candles (default: 5).
If the set number of consecutive green (bullish) or red (bearish) candles appears, the indicator plots a signal on the chart.
This pattern often signals exhaustion, stop hunts, or market traps, making it useful for traders looking for reversal opportunities.
📊 Features:
✅ Customizable candle count for detection
✅ Visual signals (✅ for bullish, ❌ for bearish)
✅ Alerts support for automated notifications
✅ Works on all timeframes and all markets (crypto, stocks, forex)
⚠️ Note:
This indicator does not guarantee reversals but helps identify areas where traders may be trapped and a trend shift is likely. Always use it with other confluence factors like volume, support/resistance, and market sentiment.
🚀 Use this tool to spot market deception and trade smart!
Volume Weighted SuperTrend | QuantumResearchQuantumResearch Volume Weighted Supertrend (VWST)
The Volume Adaptive Supertrend (VWST) is a dynamic trend-following tool that enhances traditional Supertrend calculations by incorporating volume-weighted market conditions.
This indicator adapts its trend signals based on volume-adjusted price action, allowing traders to refine their entries and exits with improved responsiveness. 🚀📊
1. Key Features
Volume-Weighted Adaptation: Uses various moving averages (VWMA, EMA, SMA, etc.) to adjust ATR bands based on market activity.
Customizable Trend Sensitivity: Adjusts ATR multipliers separately for bullish and bearish conditions.
Adaptive Supertrend Calculation: Dynamically recalculates trend direction based on volume-enhanced price movements.
Multi-Timeframe Compatibility: Can be applied across different assets and timeframes for versatile market analysis.
Visual Clarity & Alerts: Color-coded trend signals, shaded areas, and real-time alerts for trend shifts.
2. How It Works
A. Volume-Weighted Price Calculation
The indicator applies a user-selected moving average (EMA, VWMA, SMA, etc.) to price and volume data
This ensures that trend calculations are more reactive to strong volume surges and less influenced by low-liquidity fluctuations.
B. Adaptive ATR-Based Trend Filtering
ATR bands are dynamically adjusted based on volume-weighted price action.
Separate ATR multipliers for bullish and bearish conditions allow for refined sensitivity control.
The Supertrend line shifts dynamically to reflect these conditions.
C. Signal Generation
Bullish Trend: The price closes above the adaptive Supertrend line. ✅
Bearish Trend: The price closes below the adaptive Supertrend line. ❌
Long Entry: Triggered when trend direction switches from bearish to bullish.
Short Entry: Triggered when trend direction switches from bullish to bearish.
3. Visual Representation
A. Color-Coded Trend Signals
Green Trend Line: Indicates a bullish trend.
Red Trend Line: Indicates a bearish trend.
Gray Trend Line: Neutral phase.
B. Dynamic Background Fill
Shaded Green Areas: Confirmed uptrend zones.
Shaded Red Areas: Confirmed downtrend zones.
4. Customization & Parameters
ATR Length & Multipliers: Adjust trend sensitivity with separate multipliers for bullish and bearish phases.
Moving Average Type: Select from VWMA, EMA, SMA, HMA, WMA, DEMA, TEMA for volume-weighted calculations.
Volume Length: Modify how far back volume data is used to refine trend calculations.
Color Themes: Choose from 8 distinct color modes for clear visual representation.
5. Backtest & Market Applications
Backtest Summary :
The Volume Adaptive Supertrend (VWST) has been tested across multiple assets, including:
BTC/USD
ETH/USD
SOL/USD
📊 Key Observations:
Responsive Trend Detection: The volume-weighted adaptation helps minimize lag in trend shifts.
Versatile Across Market Conditions: Works well in both trending and consolidating phases with appropriate settings.
Customizable Risk Control: ATR multipliers can be adjusted to fine-tune signal sensitivity.
⚠️ Disclaimer: This indicator is designed to complement existing analysis techniques . Market conditions vary, and no tool can guarantee future performance. Always use proper risk management when trading.
6. Final Thoughts
The Volume Weighted Supertrend (VWST) enhances traditional Supertrend indicators by incorporating volume-adjusted trend detection.
Its dynamic ATR-based trend filtering ensures greater responsiveness to real market conditions.
Suitable for trend traders, breakout traders, and risk-conscious investors looking for volume-driven confirmations.
Use it alongside other confluences to build a robust trading system.
Important Reminder: No single indicator guarantees profitability. Always validate signals with additional market context. 📊
Btc and Eth 5 min winnerWhat the Strategy Does
Finding the Trend (Like Watching the Bus Move): The strategy uses special tools called Hull Moving Averages (HMAs) to figure out if Bitcoin (BTC) Ethereum (ETH) prices are generally going up or down. It looks at short-term (5 minutes) and long-term (10 minutes) price movements to make sure the “bus” (the market) is moving strongly in one direction—up for buying, down for selling.
Spotting Good Times to Jump On (Buy or Sell Signals): It looks for two types of opportunities:
Pullbacks: When the price dips a little while still moving up (like the bus slowing down but not stopping), it’s a chance to buy.
Breakouts: When the price suddenly jumps higher after being stuck (like the bus speeding up), it’s another chance to buy. It does the opposite for selling when prices are dropping.
It also checks if there’s enough “passenger activity” (volume) and momentum (speed of price change) to make sure it’s a good move.
Avoiding Traffic Jams (Filters): The strategy uses tools like RSI (to check if the market’s too fast or too slow), volume (to see if enough people are trading), and ATR (to measure how wild the price swings are). It skips trades if things look too chaotic or if the trend isn’t strong enough.
Setting Safety Stops and Profit Targets: Once you’re on the “bus,” it sets rules to protect you:
Stop-Loss: If the price moves against you by a small amount (0.5% of the typical price swing), you jump off to avoid losing too much—think of it as getting off before the bus crashes.
Take-Profit: If the price moves in your favor by a small amount (1.0% of the typical swing), you cash out—imagine getting off at your stop with a profit.
Trailing Stop: If the price keeps moving your way, it adjusts your exit point to lock in more profit, like moving your stop closer as the bus keeps going.
Using Leverage (10x Boost): This strategy uses 10x leverage on Binance futures, meaning for every $1 you have, you trade like you have $10. This can make profits (or losses) 10 times bigger, so it’s risky but can be rewarding if you’re careful.
Why 5 Minutes and Bitcoin and Ethereum?
5-Minute Chart: This is like checking the bus every 5 minutes to make quick, small trades—perfect for fast, short profits.
Bitcoin Ethereum (BTC/USD)(ETH/USD): It’s the most popular and liquid crypto, so there’s lots of activity, making it easier to jump on and off without getting stuck.
Why It Aims for 90% Wins (But Be Realistic)
The goal is to win 9 out of 10 trades by being super picky about when to trade—only jumping on when the trend, momentum, and volume are all perfect. But in real trading, markets can be unpredictable, so 90% is very hard to achieve. Still, this strategy tries to be as accurate as possible by avoiding bad moves and focusing on strong trends.
Risks for a New Trader
Leverage: Trading with 10x leverage means small price moves can lead to big losses if you’re not careful. Start with a demo account (pretend money) on TradingView or Binance to practice.
Learning Curve: This strategy uses technical terms (like HMAs, RSI) and tools you’ll need to learn over time. Don’t rush—just practice and ask questions!
How to Use It
Go to TradingView, load this strategy on a 5-minute BTC/USD futures chart on Binance.
Watch the green triangles (buy signals) and red triangles (sell signals) on the chart—they tell you when to trade.
Use the stops and targets to manage your trades—don’t guess, let the strategy guide you.
Start small, learn from each trade, and don’t risk money you can’t afford to lose.
This is like learning to ride a bike—start slow, practice, and you’ll get better. If you have more questions or want simpler tips, feel free to ask! Trading can be fun and rewarding, but it takes patience and practice.
Trade SafeTrade Safe: The Ultimate Discipline Tool for Traders
Are you tired of overtrading, revenge trading, or letting emotions ruin your trading plan? Trade Safe is here to transform your trading psychology and help you achieve consistent profitability. Unlike traditional indicators that focus solely on market analysis, Trade Safe addresses the number one reason traders fail: lack of discipline.
With its innovative features, Trade Safe enforces strict trading rules, prevents emotional decision-making, and helps you stick to your plan—no matter how volatile the markets get. If you're serious about becoming a disciplined and profitable trader, this is the tool you've been waiting for.
Enforces Trading Discipline:
Trade Safe ensures you stick to your daily trading plan by visually blocking your charts after a predetermined number of trades or a stop-loss, Take profit event.
No more overtrading or deviating from your strategy—Trade Safe keeps you in check.
Eliminates Emotional Trading:
The screen block feature prevents you from seeing the candles after a loss, helping you avoid the emotional spiral of "tilt" and revenge trading.
This unique approach focuses on the psychological side of trading, which is often overlooked by other tools.
Simple and Intuitive Interface:
Easily set your stop-loss and take-profit level with the red line marker for stop-loss and green for take-profit and choose between long or short positions with just a few clicks.
Trade Safe is designed to be user-friendly, so you can focus on trading without distractions.
Customizable for All Trading Styles:
Whether you're a scalper, swing trader, or long-term investor, Trade Safe can be tailored to fit your strategy.
Set your stop-loss and take-profit, and let Trade Safe handle the rest.
Prevents Revenge Trading:
By locking your screen after a stop-loss, Trade Safe eliminates the temptation to "make back" losses through impulsive trades.
This helps you break the cycle of emotional trading and stay focused on your long-term goals.
Builds Healthy Trading Habits:
Trade Safe encourages you to walk away after a loss, reinforcing the importance of patience and discipline.
Asset Correlation Heatmap [SeerQuant]Asset Correlation Heatmap
Overview:
The Asset Correlation Heatmap is a powerful visualization tool designed to analyze and compare the correlation between multiple assets and a selected benchmark. The indicator provides a heatmap representation of correlation coefficients, allowing for easy identification of highly correlated and uncorrelated assets at a glance.
How It Works:
Benchmark Asset: The benchmark is the chart that the indicator is applied to. For example, if applied to BTC, the heatmap will display the correlation of various assets relative to BTC.
Correlation Calculation: The script calculates the correlation coefficient between the benchmark asset and each of the 30 user-selected assets over a user-defined period.
Heatmap Display: The results are plotted in a stacked format where the bottom-most plot represents Asset 1, and the top-most plot represents Asset 30.
Each asset’s correlation is color-coded based on its strength (from positive correlation to negative correlation).
Inputs & Customization:
Correlation Length: Users can adjust the lookback period for correlation calculation (default: 20 periods).
30 Selectable Assets: The indicator allows users to input up to 30 assets for correlation analysis.
Color Gradient: The heatmap dynamically assigns colors based on correlation strength where blue shades → strong positive correlation, neutral white → no correlation (~0.0) and red shades → strong negative correlation.
Table Display
A dynamic table in the bottom-right corner provides key insights, including:
Benchmark Asset (the chart symbol)
Highest Correlated Asset & its correlation value
Lowest Correlated Asset & its correlation value
Average & Median Correlation across all selected assets
Composite Signal based on the overall correlation trend
Use Cases
Portfolio Diversification: Identify assets that are highly correlated or negatively correlated with your benchmark to manage risk.
Mean Reversion & Trend Following: Spot assets diverging from their historical correlation to identify trading opportunities.
Pair Trading: Find assets with strong positive or negative correlation to develop hedging strategies.
Enjoy!
The Ultimate Lot Size Calculator Backstory
I created this Pine Script tool to calculate lot sizes with precision. While there are many lot size calculators available on TradingView, I found that most had significant flaws. I started teaching myself Pine Script over three and a half years ago with the sole purpose of building this tool. My first version was messy and lacked accuracy, so I never published it. I wanted it to be better than any other available tool, but my limited knowledge back then held me back.
Recently, I received a request to create a similar tool, as the current options still fail to deliver the precision and reliability traders need. This inspired me to revisit my original idea. With improved skills and a better understanding of Pine Script, I redesigned the tool from scratch, making it as precise, reliable, and efficient as possible.
This tool features built-in error detection to minimize mistakes and ensure accuracy in lot size calculations. I've spent more time on this project than on any other, focusing on delivering a solution that stands out on TradingView. While I plan to add more features based on user feedback, the current version is already a powerful, dependable, and easy-to-use tool for traders who value precision and efficiency in their lot size calculations.
How to use the tool ?
At first it might seem complicated, but it is quite easy to use the tool. There are two modes: auto and manual. By default, the tool is set on manual mode. When you apply the tool on the chart, it will ask you to choose the entry price, then the stop-loss price, and at last the take-profit price. Select all of them one by one. These values can be changed later.
Settings
There are various setting given for making the tool as flexible as possible. Here is the explanation for some of most important settings. Play with them and make yourself comfortable.
General settings
Auto mode : Use this mode if you want the the risk reward to be fixed and stop loss to be based on ATR. However the stop loss can be changed to be based on user input.
Manual mode : Use this mode if you want full control over entry, stop loss and take profit.
Contract Size : The tool works perfectly for all forex pairs including gold and silver but as the contract size is different for different assets it is difficult to add every single asset into the script manually so i have provided this option. In case you want to calculate lot size for a asset other then forex, gold or silver make sure to change this. Contract size = Quantity of the asset in 1 standerd lot.
Account settings
Automatic mode settings and ATR stop settings
Manual mode settings
Table and risk-reward box settings are pretty much self-explanatory i guess.
Error handling
A lot size calculator is a complex program. There are numerous points where it may fail and produce incorrect results. To make it robust and accurate, these issues must be addressed and managed properly, which practically all existing lot size calculator scripts fail to do.
Golden tip
When the symbol is changed it will display a symbol change warning as the entry, stop loss and take profit price won't change.
There are 2 ways to get fix this. Either manually enter all three values which i hate the most or remove the script from the chart and re-apply the script on chart again.
So to re-apply the indicator in most easy way follow the following instructions:
Note : If you encounter any other error then read the instruction to fix it and if it is an unknow error pleas report it to me in comments or DM.
Relative Strength Portfolio [AlphaAlgos]🚀 Relative Strength Matrix Portfolio - Advanced Multi-Asset Rotation Strategy
This institutional-grade portfolio rotation system represents a culmination of sophisticated quantitative research methodologies, delivering a comprehensive approach to systematic crypto-asset selection and portfolio management. Through advanced relative strength analysis and multi-factor filtering, the system identifies optimal trading opportunities while maintaining strict risk management protocols.
The Matrix Foundation
At its core, the system employs an intricate relative strength matrix that evaluates each asset against every other asset in the universe through RSI calculations. This creates a robust scoring framework where assets accumulate points based on their relative performance, generating a detailed picture of market leadership and strength. The matrix calculations account for the complex interrelationships between assets, ensuring a thorough understanding of relative performance.
Multi-Factor Filtering Framework
Beyond the foundational matrix, the system incorporates sophisticated filtering mechanisms that analyze multiple aspects of asset behavior:
Alpha and Beta Analysis examines each asset's performance characteristics relative to the broader market, identifying those that demonstrate superior risk-adjusted returns while maintaining favorable volatility profiles.
The GunzoTrendSniper algorithm provides specialized trend analysis, ensuring selected assets maintain positive directional bias. This combines with momentum calculations that evaluate price action characteristics across multiple timeframes.
Risk-adjusted performance metrics including Sharpe, Sortino, and Omega ratios undergo continuous calculation, offering deep insight into the quality of returns. These metrics ensure selected assets not only perform well but do so with favorable risk characteristics.
Market Regime Analysis
The system maintains constant awareness of broader market conditions through analysis of total cryptocurrency market capitalization (TOTAL). This crucial overlay determines whether market conditions warrant active positions or defensive positioning. When market trends or valuations deteriorate beyond critical thresholds, the system enters a protective cash state, preserving capital during adverse conditions.
Scoring Integration
The comprehensive scoring mechanism integrates all analyzed factors into a unified ranking system. Assets must demonstrate strength across multiple categories to qualify for selection, ensuring well-rounded technical characteristics rather than isolated metric strength.
Position Selection & Management
Final asset selection emerges from a rigorous evaluation process where candidates must:
- Rank highly in the relative strength matrix
- Display favorable alpha and beta metrics
- Maintain strong momentum characteristics
- Demonstrate superior risk-adjusted returns
- Pass the GunzoTrendSniper criteria
- Meet minimum threshold requirements across all metrics
Performance Analytics
The sophisticated dashboard provides real-time performance tracking, comparing strategy results against traditional buy-and-hold approaches. This includes:
- Risk-adjusted return metrics
- Maximum drawdown analysis
- Comparative performance ratios
- Real-time equity curves
- Current system state indication
- Active position monitoring
Timeframe Flexibility
While optimized for daily analysis, the system's mathematical framework adapts seamlessly across timeframes. The core logic maintains effectiveness whether deployed for intraday trading or longer-term position management.
Professional Applications
This system serves multiple roles in professional trading environments:
- Portfolio managers seeking systematic rotation strategies
- Risk managers requiring market state evaluation
- Quantitative analysts conducting relative strength assessment
- Long-term investors pursuing systematic exposure
- Active traders requiring comprehensive market analysis
Financial Advisor Disclaimer
This indicator is for informational and educational purposes only and should not be considered financial advice or a recommendation to buy, sell, or hold any investment or security. The creator is not a registered investment advisor. Trading and investing in financial markets carries significant risk, including the potential loss of principal. Past performance does not indicate future results. Users must conduct their own due diligence and consult with licensed financial advisors, accountants, or attorneys for professional advice regarding their specific situation before making any investment decisions. The user assumes all responsibility and liability for their trading and investment decisions.
Majors Rotation [AlphaAlgos]Majors Rotation System
---
Overview
The Majors Rotation System is a trend-following strategy designed to dynamically allocate capital to the strongest-performing assets in the market. By leveraging long-term, medium-term, and equity curve trend filters, this system identifies the top assets and rotates between them based on prevailing market conditions. The system is defaulted for Bitcoin (BTC), Ethereum (ETH), and Solana (SOL) but is fully customizable and can be applied to any asset, trading pair, or asset class across various timeframes.
How It Works
At the core of this strategy are three key trend filters that help determine which assets to allocate capital to:
1. Long-Term Trend Filter:
- The long-term trend filter evaluates the broader market's direction. If the market is in a bullish phase, the system will engage with top assets, while in a bearish phase, it will exit positions to avoid unnecessary risk exposure.
2. Medium-Term Trend Filter:
- This filter assesses the market's momentum over a medium-term period. It ensures that the strategy stays aligned with short-to-medium-term market moves. When positive momentum is detected, the system adjusts its positions accordingly to capture these trends.
3. Equity Curve Trend Filter:
- The system continuously tracks the performance of its portfolio. If the equity curve (the overall portfolio value over time) is trending downward, the system will exit positions to mitigate losses. If the equity curve is trending upward, the system remains active and continues to rotate between top assets based on market strength.
These three filters work together to ensure that the system remains in assets only when market conditions are favorable, avoiding unnecessary risk during downturns while capitalizing on profitable trends.
Flexibility
While the Majors Rotation System is initially set up with BTC, ETH, and SOL, it is fully adaptable. Traders can apply the system to any assets they prefer, whether they’re trading cryptocurrencies, stocks, commodities, or forex. The system is defaulted for the one day timeframe, although, it is designed to be used on any timeframe, making it suitable for both short-term and long-term strategies. This versatility allows users to tailor the system to their specific trading style and asset preferences.
System Features
- Asset Selection and Rotation: The system ranks multiple assets based on the trend filters, allocating capital to the top performers and rotating out of weaker ones.
- Risk Management: Dynamic risk management is integrated, allowing the system to exit positions during unfavorable market conditions, ensuring that capital is only exposed to assets showing strength.
- Performance Metrics: Key metrics such as the Sharpe Ratio, Sortino Ratio, Omega Ratio, and Drawdowns are tracked to provide insight into the system’s performance and risk-adjusted returns.
- Equity Curve Tracking: The system displays the equity curve, allowing users to visualize how the strategy is performing over time and compare it to a simple buy-and-hold strategy.
- Customization: Traders can modify the system’s asset selection to match their trading preferences.
Performance Metrics and Comparison to Buy-and-Hold Bitcoin
The Majors Rotation System tracks several important performance metrics to help traders evaluate its effectiveness:
1. Sharpe Ratio:
- The Sharpe Ratio evaluates the risk-adjusted return, measuring how much excess return the system generates relative to its volatility. A higher Sharpe Ratio indicates that the system is delivering better returns for each unit of risk.
2. Sortino Ratio:
- Similar to the Sharpe Ratio, the Sortino Ratio focuses on downside risk (negative volatility), providing a more accurate measure of how the system generates returns while avoiding significant drawdowns.
3. Omega Ratio:
- The Omega Ratio evaluates both the upside and downside of the system’s performance. It measures the probability of achieving returns higher than a specified threshold, offering a clearer picture of how the strategy manages both risk and reward.
4. Equity Drawdown:
- This metric tracks the peak-to-trough decline in the portfolio’s value. It helps traders understand the worst-case scenario in terms of losses. Lower drawdowns indicate better risk management and smoother performance.
These metrics give traders a clear understanding of the risk-adjusted returns and overall stability of the system. By tracking these figures, traders can assess whether the Majors Rotation System aligns with their investment goals and risk tolerance.
Disclaimer
This script is a technical analysis tool designed to assist with asset rotation and portfolio management. While it uses real-time market data and trend-following strategies to generate asset recommendations, there are no guarantees regarding future performance. The system relies on historical and real-time data, which may not accurately predict future market behavior. Trading and investing inherently involve risk, and past performance is not indicative of future results.
Users should always conduct their own research, use proper risk management strategies, and consult with a qualified financial advisor before making investment decisions. This script is not intended as financial advice and should only be used as part of a broader investment strategy.
LongWave | QuantumResearchQuantumResearch LongWave Indicator
The LongWave Indicator is a comprehensive trend-following system that integrates two universal strategies, two technical indicators, and one on-chain indicator tailored specifically for Bitcoin (BTC).
By blending advanced market dynamics with on-chain insights, this indicator provides precise long and short signals to help traders navigate the market with confidence. 📊🚀
1. Overview
This indicator is designed to:
Identify Market Trends: Combines multiple trend-based methodologies to define clear market directions. 🔄
Leverage On-Chain Data: Utilizes fundamental Bitcoin network activity for enhanced trend validation. ⚡
Provide Customization: Allows users to fine-tune sensitivity, thresholds, and visual preferences. 🎨
2. How It Works
A. Multi-Layer Trend Detection
Two Universal Strategies – These strategies apply proprietary trend-following algorithms to analyze price movements over multiple timeframes. 🕰️
Two Technical Indicators – A combination of statistical smoothing and momentum-based calculations refines trend signals. 📈
One On-Chain Indicator – Analyzes Bitcoin’s market valuation and investor behavior to confirm directional bias. 🏦
B. Trend Score Calculation
Each component contributes to a weighted trend score, ensuring robust and adaptive market assessments. 📊
The final LongWave Score is derived by averaging inputs from the five core systems. ⚖️
C. Dynamic Thresholds & Signal Generation
Long Entry Signal – Triggered when the LongWave Score exceeds the upper threshold, indicating strong bullish momentum. ✅
Short/Cash Signal – Triggered when the LongWave Score drops below the lower threshold, signaling market weakness. ❌
3. Visual Representation
Trend Bar Coloring:
Green Bars – Indicate bullish momentum (Long Signal). ✅
Blue Bars – Indicate bearish momentum (Short/Cash Signal). ❌
Trend Confirmation Line:
A Hull Moving Average (HMA) dynamically shifts color based on market conditions. 📊
Table-Based Signal Dashboard:
Displays real-time trend scores for each component. 🔢
Includes rate of change (ROC) metrics to assess momentum shifts. 🚀
LW signal ligne:
Aligns with the LongWave Score to confirm entry and exit decisions.
4. Customization & Parameters
The LongWave Indicator is designed with high flexibility to adapt to various trading styles:
Threshold Adjustments:
Users can modify long and short thresholds to optimize signal sensitivity. 🎛️
Trend Component Weights:
Custom weighting for each universal strategy and indicator to tailor output precision. ⚙️
On-Chain Sensitivity:
Fine-tune on-chain Z-score parameters to reflect market conditions accurately. 📡
Visual Preferences:
Color Modes: Choose from multiple pre-set themes for enhanced readability. 🎨
5. Trading Applications
Trend Following – Ideal for traders looking to capitalize on extended bullish and bearish trends. 📈
Market Timing – Helps identify optimal entry and exit points with trend-based validation. ⏳
On-Chain Confluence – Merges technical analysis with on-chain insights to confirm directional bias. 🔗
Risk Management – Provides clear buy/cash indications, reducing uncertainty in trading decisions. ⚠️
6. Final Thoughts
The QuantumResearch LongWave Indicator is a high-precision tool designed for trend confirmation, risk mitigation, and market positioning.
By integrating technical and fundamental insights, it offers traders a complete market perspective.
Important Disclaimer: No indicator guarantees future performance. Always use proper risk management and conduct additional research. ⚠️📊