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! 🚀
Altcoins DCA ScalperIntroduction
The Altcoins DCA Scalper is a Pine Strategy Script designed to automate Altcoins trading through 3Commas integration. It implements a Dollar-Cost Averaging (DCA) strategy that expands upon 3Commas' standard DCA capabilities, helping to manage risk while trading both long and short positions automatically.
This tool aims to assist both beginners exploring automated trading and experienced 3Commas users seeking dynamic DCA automation. The script is specifically designed for the 1-minute timeframe , where it has shown a good balance between performance and risk management. Complete setup typically takes less than 10 minutes, with a detailed guide making configuration straightforward for users of all experience levels.
------------------------------
🔶 What is DCA?
------------------------------
Dollar-cost averaging (DCA) refers to the practice of gradually increasing your position size at lower prices when trading long, or at higher prices when trading short, to achieve a better average entry price if the market moves against the initial entry . Instead of investing all capital at once, which could result in a significant drawdown if the price moves unfavorably, DCA spreads entries across different price levels to help manage potential drawdowns as they occur.
In this script, DCA is implemented through a system that:
🔹 Triggers safety orders only when/if needed (if take profit isn't reached quickly)
🔹 Dynamically adjusts order sizing based on market volatility
🔹 Automatically reduces take profit targets after each DCA order to increase the likelihood of a positive outcome
🔹 Can handle drawdowns depending on market volatility and settings
The images below illustrate two scenarios: one where an entry reaches the take profit directly, without activating DCA orders, and another where DCA is utilized, with the order closing positively after two DCA orders.
Case 1: Order closes in profit after entry
Case 2: Order closes in profit after 2 DCA orders (dynamically placed based on trend and volatility)
This DCA implementation aims to enhance standard 3Commas DCA by adding market-adaptive features while maintaining risk management principles.
------------------------------
🔶 Could this strategy script benefit you?
------------------------------
This script may be helpful if you are:
✅ Looking to automate your trading through 3Commas integration while maintaining full control of your assets
✅ Wanting to enhance 3Commas' standard DCA with market-adaptive features that consider:
Multi-timeframe trend analysis
Real-time volatility assessment
Dynamic safety order sizing and timing
✅ Seeking to minimize chart monitoring through full automation of:
Entry and exit decisions
Safety order management
Risk controls
✅ Interested in comprehensive performance tracking with:
Real-time position metrics
Detailed backtesting capabilities
Risk/reward analysis
Backtesting Metrics (script performance over the backtesting period - which is approx. 15 days on the 1min timeframe with the TradingView Pro Plan):
Current/Open Deal Metrics (the deal is currently under DCA, and waiting for further actions to close):
✅ Looking for trading automation that remains easy to set up and use
Note: While this script provides trading automation, successful trading requires proper education, risk management, and regular performance monitoring. No automated tool can guarantee trading success or profits.
------------------------------
🔶 How it Works
------------------------------
The Altcoins DCA Scalper provides trading automation through:
Market Analysis
* Multi-timeframe trend analysis (1m to 1d) for market direction and entry validation
* Volatility assessment (1h, 4h, 24h) benchmarked against TOTAL3 (excluding Top10 Altcoins and Stablecoins)
* Real-time adjustment of DCA parameters based on:
* Current volatility class (low/medium/high) vs. overall Altcoins market
* Market trend strength
* Price action dynamics
Trading Execution
* Position opening aligned with detected market trends
* "Beast Mode" base order sizing that increases position size during strong trends
* Dynamic take-profit targets that automatically reduce after each safety order to increase the likelihood of positive exits
* Dynamic DCA with safety orders that can:
* Adapt timing based on volatility
* Scale order sizes based on market conditions
* Handle 30-50% drawdowns depending on volatility class
* Execute up to 6 safety orders per position
Risk Management
* Emergency exits during extreme market events:
* "Black Swan" protection for long positions
* "God-Candle" protection for short positions
* Configurable stop-loss with volatility-based placement
* Trend-switch management with automated position reversal
* Position aging controls to prevent capital lock-up
* Leveraged trading protection with a pre-liquidation exit system
Integration & Automation
* Quick setup with two 3Commas bots (typically under 10 minutes)
* Fully automated signal generation and execution through 3Commas
* Detailed performance tracking including:
* Real-time position metrics
* DCA depth analysis
* Win rate and ROE calculations
* Pre-configured settings optimized for most pairs
* Multiple customization options for experienced users
Note: While this strategy employs automation and risk management, trading always carries the risk of loss. No system can guarantee profits, and market conditions significantly impact performance. Always do your own research and monitor your positions closely.
------------------------------
How to Use
------------------------------
Setting up the Altcoins DCA Scalper is quick and facilitated by the User Interface:
1️⃣ 3Commas/TradingView Setup
* Create two 3Commas accounts if using the FREE plan:
* One account for Long Bot
* One account for Short Bot
* This split allows full functionality while staying within 3Commas' free tier limits
* You do not need two separate accounts if you have a Paid 3Commas subscription
* While a free TradingView account works with the script, it limits you to one trading pair and a 4-day backtesting history. A paid TradingView subscription removes these limitations (such as the "Essential" plan).
2️⃣ Bot Configuration
* Create one Long and one Short DCA Bot in 3Commas
* Follow the setup guide available in the script itself for hassle-free configuration
* Copy Bot IDs and Email Token for script connection
* No complex settings needed - the script manages all DCA parameters by itself
3️⃣ Script Implementation
* Apply the script to your TradingView charts
* Use the built-in backtesting to analyze performance on different pairs
* Focus on USDT.P futures pairs with good volatility
4️⃣ Trading Activation
* Create TradingView alerts for each trading pair you want to activate
* Example: Set an alert for BINANCE: XRPUSDT.P following the in-script guide
* The script automatically manages all aspects:
* Entry and exit decisions
* DCA execution
* Risk management
* Position monitoring
Capital Requirements
* Important: Ensure sufficient capital to cover all activated pairs
* Consider volatility class when allocating capital to specific pairs
Once setup is complete, the script operates fully automatically while you maintain complete control of your funds through 3Commas and your exchange.
Note: While the setup is straightforward, always start with a small number of pairs and monitor performance before expanding. Trade responsibly and never risk more than you can afford to lose.
------------------------------
Explaining the Settings
------------------------------
The Altcoins DCA Scalper offers mulitple customization options during the setup process. All settings include detailed tooltips and default values.
Core Settings Sections:
1️⃣ 3Commas Connection
* Bot IDs and Email Token configuration
* Leverage settings (1x to 5x supported)
* Detailed 3Commas bot setup guide included
* Automatic bot control configuration
2️⃣ Trading Parameters
* Capital allocation per trade
* Timeframe verification
* Alert system setup
* Backtesting period control
* Performance tracking preferences
3️⃣ Advanced Features
🔹 Risk Management Suite
* Emergency exit controls (to strengthen protection against extraordinary market events)
* Customizable stop-loss system
* Trend-based exit management
* Position aging controls
* Liquidation protection features
* Advanced DCA controls
🔹 Performance Analytics
* Real-time position monitoring
* Comprehensive backtesting metrics
* DCA depth analysis
* Win rate calculations
* Capital efficiency tracking
🔹 Technical Optimizations
* Exchange minimum order adjustment
* Trading pair name override capability
* System stability controls
* Error handling mechanisms
🔹 Interface Customization
* Theme selection
* Chart overlay options
* Warning display preferences
* Performance metrics visibility
All settings come pre-configured but can be fully customized based on your trading preferences and risk tolerance. The script includes tooltips and setup guides for each option.
Note: While default settings may be tested, market conditions vary and all trading involves risk. Monitor performance and adjust settings according to your risk management requirements.
------------------------------
Frequently Asked Questions
------------------------------
Here are some common questions you may have, and our answers:
❓ Is this tool only for experts? I'm new to algo trading, can I use it?
No, the Altcoins DCA Scalper could be used by both beginners and experienced traders. The setup process is guided, and the algorithm handles all the calculations in the background.
❓ I'm not familiar with 3Commas. Is that a problem?
While the script is designed to work with 3Commas, a step-by-step guide is provided within the script to help you set up your 3Commas accounts and bots, if needed.
❓ Do I need to constantly monitor the script after it's set up?
No, after the initial setup and configuration, the script operates autonomously. It handles all aspects of trading including entries, exits, DCA management, and risk controls. However, we recommend:
* Checking performance metrics daily
* Reviewing position statistics weekly
* Adjusting pair selection monthly based on performance
* Monitoring overall market conditions that might require adjustments
❓ Can I use it with leverage?
Yes, the script is designed to work with leverage up to 5x on perpetual futures pairs (USDT.P). It includes specific features for leveraged trading:
* Dynamic safety order placement based on distance to liquidation
* Pre-liquidation exit system to minimize exchange fees
* Adjustable take-profit targets optimized for leveraged positions
* Emergency exit system for extreme market movements
* Optional risk controls specific to leverage:
* Automatic exit in the liquidation danger zone
* Position size scaling based on leverage level
* Safety order adjustments for different leverage settings
While leverage can amplify returns, it also increases risk. We recommend starting with lower leverage (2x), or no leverage at all, until familiar with the script's operation.
❓ Does this script guarantee profits?
No, no script or trading strategy can guarantee profits. The Altcoins DCA Scalper provides a framework for implementing an automated DCA strategy, but your success will depend on many different factors and conditions.
❓ Do I need to understand the complex algorithms used in the script?
No, it’s not necessary. The logic is handled by the script, and you do not need to understand every detail to use it effectively. However, a basic knowledge of DCA concepts will be beneficial.
❓ Can I use this script with spot or leveraged trades?
The script is optimized for USDT.P pairs (perpetual futures) with leverage up to 5x. This allows:
* Automatic long/short position management
* Increased capital utilization
* Full DCA functionality without holding the underlying assets
* Enhanced risk management features specific to futures
While spot trading is possible, it requires holding underlying assets for shorts and doesn't access the script's full capabilities.
❓What timeframe should I use?
This script is optimized for the 1-minute timeframe , which is the recommended setting for the best balance between performance, capital efficiency, and risk. While we recommend using the tool on the 1 minute TF, it would work on other timeframes too.
❓ What happens if my internet/computer goes down?
Since the script sends signals from Tradingview to 3Commas (which executes trades on your exchange), your positions and DCA management continue to function even if your TradingView chart is closed or your computer is off. The script only needs to be active to generate new signals.
❓ How are the DCA parameters determined?
The script dynamically adjusts DCA parameters based on:
* The pair's volatility class (compared to the overall altcoin market)
* Current market conditions and volatility
* Position direction (long/short)
* Leverage settings
* Number of safety orders already executed
This allows for adaptive/dynamic DCA compared to static or %-based parameters.
❓ What exchanges are supported?
The script works with any exchange supported by 3Commas for futures trading (approximately 15 different crypto Exchanges). However, it's optimized for Binance Futures (USDT.P pairs) due to its high liquidity and for consistency.
❓ What happens during extreme market conditions?
The script includes some (optional) protective measures that can be activated:
* Emergency exits during sharp and abnormal market moves
* Automatic adjustment of DCA parameters during high volatility
* Position closure on significant trend changes
* Special handling of aged positions
These features aim to protect capital during unusual market conditions.
❓How many pairs can I trade simultaneously?
This depends on your total capital. As a general indication, define the number of pairs to activate based on:
* Total available capital
* Desired position size per pair
* Risk tolerance
* Pairs' volatility class
------------------------------
Final Thoughts
------------------------------
We believe that your trading performance will greatly depend on your selection of appropriate trading pairs for this script (high volatility), and your commitment to regularly monitoring its performance and adjust the settings, rather than on the script alone.
------------------------------
⚠️ Risk Disclaimer
------------------------------
Remember that trading involves risk, and most day traders experience losses. This script is for educational and informational purposes only. Past performance does not guarantee future results. This is not financial advice, and you should always do your own research (DYOR). Trade responsibly with capital you can afford to lose.
The Altcoins DCA Scalper is an independent tool and is not endorsed, connected, or validated by TradingView.
3Commas is a third-party service, and TradingView is not responsible for the 3Commas integration or the performance of 3Commas bots. You are solely responsible for the security and management of your 3Commas account. Do not share your 3Commas access credentials (like login information, Bots-ID, Email Token) with anyone. The Author of the script has no access to such information, and nobody (but you) should.
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. ⚠️📊
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.
Flux Charts - SFX Automation💎 GENERAL OVERVIEW
The SFX Automation is a powerful and versatile tool designed to help traders rigorously test their trading strategies against historical market data. With various advanced settings, traders can fine-tune their strategies, assess performance, and identify key improvements before deploying in live trading environments. This tool offers a wide range of configurable settings, explained within this write-up.
Features of the new SFX Automation :
Step By Step : Configure your strategy step by step, which will allow you to have OR & AND logic in your strategies.
Highly Configurable : Offers multiple parameters for fine-tuning trade entry and exit conditions.
Multi-Timeframe Analysis : Allows traders to analyze multiple timeframes simultaneously for enhanced accuracy.
Provides advanced stop-loss, take-profit, and break-even settings.
Incorporates Buy & Sell signals, with settings like Signal Sensitivity, Strength, Time Weighting, Dynamic TP & SL Methods and more for refined strategy execution.
🚩 UNIQUENESS
The SFX Automation stands out from conventional backtesting tools due to its unparalleled flexibility, precision, and advanced trading logic integration. Key factors that make it unique include:
✅ Comprehensive Strategy Customization – Unlike traditional backtesters that offer basic entry and exit conditions, SFX Automation provides a highly detailed parameter set, allowing traders to fine-tune their strategies with precision.
✅ Multi-Timeframe Signals – This is the first-ever tool that allows traders to backtest Buy & Sell Signals on multiple timeframes.
✅ Customizable Take-Profit Conditions – Offers various methods to set take-profit exits, including using core features from SFX Algo, and dynamic exits like signal rating upgrades/downgrades, enabling traders to tailor their exit strategies to specific market behaviors.
✅ Customizable Stop-Loss Conditions – Provides several ways to set up stop losses, including using concepts from SFX Algo and trailing stops or dynamic exits like signal rating upgrades/downgrades, allowing for dynamic risk management tailored to individual strategies.
✅ Integration of External Indicators – Allows the inclusion of other indicators or data sources from TradingView for creating strategy conditions, enabling traders to enhance their strategies with additional insights and data points.
By integrating these advanced features, SFX Automation ensures that traders can rigorously test and optimize their strategies with great accuracy and efficiency.
📌 HOW DOES IT WORK ?
The first setting you will want to set it the pyramiding setting. This setting controls the number of simultaneous trades in the same direction allowed in the strategy. For example, if you set it to 1, only one trade can be active in any time, and the second trade will not be entered unless the first one is exited. If it is set to 2, the script will handle both of them at the same time. Note that you should enter the same value to this pyramiding setting, and the pyramiding setting in the "Properties" tab of the script for this to work.
You can enable and set a backtesting window that will limit the entries to between the start date & end date.
Entry Conditions
From the "Long Conditions" or the "Short Conditions" groups, you can set your position entry conditions. For settings like "initial capital" or "order size", you can open the "Properties" tab, where these are handled.
The SFX Algo can use the following conditions for entry conditions :
1. Buy Signal (Any, or 1-5 ☆)
This condition is triggered when a Buy Signal occurs. Other timeframes are supported with this condition.
2. Buy | TP (1, 2 or 3)
This condition is triggered when a TP signal of any Buy signal occurs.
3. Buy | SL
This condition is triggered when a SL signal of any Buy signal occurs.
4. Buy | Rating Upgrade
This condition is triggered when the rating of a buy signal is increased.
5. Buy | Rating Downgrade
This condition is triggered when the rating of a buy signal is decreased.
6. Sell Signal (Any, or 1-5 ☆)
This condition is triggered when a Sell Signal occurs. Other timeframes are supported with this condition.
7. Sell | TP (1, 2 or 3)
This condition is triggered when a TP signal of any Sell signal occurs.
8. Sell | SL
This condition is triggered when a SL signal of any Sell signal occurs.
9. Sell | Rating Upgrade
This condition is triggered when the rating of a sell signal is increased.
10. Sell | Rating Downgrade
This condition is triggered when the rating of a sell signal is decreased.
11. Retracement Wave Retest (Bullish or Bearish)
A retest on the Retracement Wave occurs when the price temporarily moves against the prevailing trend, touching or entering the wave before continuing in the original trend direction. This retest serves as a confirmation that the wave is acting as dynamic support or resistance.
12. Retracement Wave Retracement (Bullish or Bearish)
A retracement on the Retracement Wave occurs when the price touches the wave, the condition is triggered immediately.
13. Volatility Bands Retest (Bullish or Bearish)
A retest of Volatility Bands occurs when the price initially moves beyond the bands, then pulls back to "retest" the band it just broke through before continuing its move. This can provide traders with confirmation of a breakout or signal a potential reversal.
14. Volatility Bands Retracement (Bullish or Bearish)
A retracement on the Volatility Bands occur when the price touches the band, the condition is triggered immediately.
🕒 TIMEFRAME CONDITIONS
The SFX Automation supports Multi-Timeframe (MTF) features for Buy & Sell signals. When setting an entry condition, you can also choose the timeframe.
External Conditions
Users can use external indicators on the chart to set entry conditions.
The second dropdown in the external condition settings allows you to choose a conditional operator to compare external outputs. Available options include:
Less Than or Equal To: <=
Less Than: <
Equal To: =
Greater Than: >
Greater Than or Equal To: >=
The position entry conditions work like this ;
Each side has 3 SFX Algo conditions and 2 Source conditions. Each condition can be enabled or disabled using the checkbox on the left side of them.
You can select which timeframe this condition should work on for Buy & Sell signals. If you select "Chart", the condition will work for the chart's current timeframe.
Lastly select the step of this condition from 1 to 6.
The Source Condition
The last condition on each side is a source condition that is different from the others. Using this condition, you can create your own logic using other indicators' outputs on your chart. For example, suppose that you have an EMA indicator in your chart. You can have the source condition to something like "EMA > high".
The Step System
Each condition has a step number, and conditions are in topological order based on them.
The conditions are executed step by step. This means the condition with step 2 cannot be executed before the condition with step 1 is executed.
Conditions with the same step numbers have "OR" logic. This means that if you have 2 conditions with step 3, the condition with step 4 can trigger after only one of the step 3 conditions is executed.
➕ OTHER ENTRY FEATURES
The SFX Automation allows traders to choose when to execute trades and when not to execute trades.
1. Only Take Trades
This setting lets users specify the time period when their strategy can open or execute trades.
2. Don't Take Trades
This setting lets users specify time periods when their strategy can't open or execute trades.
↩️ EXIT CONDITIONS
1. Exit on Opposite Signal
When enabled, a long position will close when short entry conditions are met, and a short position will close when long entry conditions are met.
2. Exit on Session End
When enabled, positions will be closed at the end of the trading session.
📈 TAKE PROFIT CONDITIONS
There are several methods available for setting take profit exits and conditions.
1. Entry Condition TP
Users can use entry conditions as triggers for take profit exits. This setting can be found under the long and short exit conditions.
2. Fixed TP
Users can set a fixed TP for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:
Price: This method triggers a TP exit when price reaches a specified level. For example, if you set the Price TP to 10 and buy NASDAQ:TSLA at $190, the trade will automatically exit when the price reaches $200 ($190 + $10).
Ticks: This method triggers a TP exit when price moves a specified number of ticks.
Percentage (%): This method triggers a TP exit when price moves a specified percentage.
ATR: This method triggers a TP exit based on a specified multiple of the Average True Range (ATR).
🧩EXIT PERCENTAGES
For each 3 dynamic take-profit conditions, you can set the amount of the position to exit in terms of percentage. It's important to make sure that the total of the exit percentages are 100%.
📉 STOP LOSS CONDITIONS
There are several methods available for setting stop-loss exits and conditions.
1. Entry Condition SL
Users can use entry conditions as triggers for stop-loss exits. This setting can be found under the long and short exit conditions.
2. Fixed SL
Users can set a fixed SL for exits. This setting can be found under the long and short exit conditions. Users can choose between the following:
Price: This method triggers a SL exit when price reaches a specified level. For example, if you set the Price SL to 10 and buy NASDAQ:TSLA at $200, the trade will automatically exit when the price reaches $190 ($200 - $10).
Ticks: This method triggers a SL exit when price moves a specified number of ticks.
Percentage (%): This method triggers a SL exit when price moves a specified percentage.
ATR: This method triggers a SL exit based on a specified multiple of the Average True Range (ATR).
3. Trailing Stop
An explanation & example for the trailing stop feature is present on the write-up within the next section.
Exit conditions have the same logic of constructing conditions like the entry ones. You can construct a Take-Profit Condition & a Stop-Loss Condition. Note that the Take-Profit condition will only work if the position is in profit, regardless of if it's triggered or not. The same applies for the Stop-Loss condition, meaning that it will only work if the position is in loss.
You can also set a Fixed TP & Fixed SL based on the price movement after the position is entered. You have options like "Price", "Ticks", "%", or "Average True Range". For example, you can set a Fixed TP like "5%", and the position will be entered once it moves 5% up in a long position.
Trailing Stop
For the Fixed SL, you also have a "Trailing" stop option, which you can set it's activation level as well. The Trailing stop activation level and it's value are expressed in ticks. Check this scenerio for an example :
We have a ticker with a tick value of $1. Our Trailing Stop is set to 10 ticks, and the activation level is set to 30 ticks.
We buy 1 contract when the price is $100.
When the price becomes $110, we are in $10 (10 ticks) profit and the trailing stop is now activated.
The current price our stop's on is $110 - $30 (30 ticks), which is the level of $80.
The trailing stop will only move if the price moves up the highest high the price has been after we entered the position.
Let's suppose that price moves up $40 right after our trailing stop is activated. The price will now be $150, and our trailing stop will sit on $150 - $30 (30 ticks) = $120.
If the price is down the $120 level, our stop loss will be triggered.
There is also a "Hard SL" option designed for a backup stop-loss when trailing stops are enabled. You can enable & set this option and if the price goes down before our trailing stop even activates, the position will be exited.
You can also move stop-loss to the break-even (entry price of the position) after a certain profit is achieved using the last setting of the exit conditions. Note that for this to work, you will need to have a Fixed SL setup.
➕ OTHER EXIT FEATURES
1. Move Stop Loss to Breakeven
This setting allows the strategy to automatically move the SL to Breakeven (BE) when the position is in profit by a certain amount. Users can choose between the following:
Price: This method moves the SL to BE when price reaches a specified level.
Ticks: This method moves the SL to BE when price moves a specified number of ticks.
Percentage (%): This method moves the SL to BE when price moves a specified percentage.
ATR: This method moves the SL to BE when price moves a specified multiple of the Average True Range (ATR).
Example Entry Scenario
To give an example , check this scenario; out conditions are :
LONG CONDITIONS
Buy Signal Any☆, Step 1
Bullish R. Wave Retest, Step 2
Bullish V. Bands Retest, Step 2
open > close, Step 3
First, the strategy needs to detect a Buy Signal with any star rating in order to start working.
After it's detected, now it's looking for either a Bullish R. Wave Retest, or a Bullish V. Bands Retest to proceed to the next step, the reason for this is that they both have the same step number.
After one of them is detected, the strategy will consistently check candlesticks for the condition open > close. If a bullish candlestick occurs, a long position will be entered.
⏰ ALERTS
This indicator uses TradingView's strategy alert system. All entries and exits will be sent as an alert if configured. It's possible to further customize these alerts to your liking. For more information, check TradingView's strategy alert customization page: www.tradingview.com
⚙️ SETTINGS
1. Backtesting Settings
Pyramiding: Controls the number of simultaneous trades allowed in the strategy. This setting must have the same value that is entered on the script's properties tab on the settings pane.
Enable Custom Backtesting Period: Restricts backtesting to a specific date range.
Start & End Time Configuration: Define precise start and end dates for historical analysis.
2. Algorithm Settings
Sensitivity: The sensitivity setting is a key parameter that influences the number of signals the SFX Algo generates. By adjusting this parameter, you can control the frequency of signals produced by the algorithm.
Signal Strength: The Signal Strength setting filters signals based on their quality, allowing traders to focus on the most reliable opportunities. This feature helps traders balance the quantity and reliability of the algorithm’s signals to suit their trading strategy.
Time Weighting: The Time Weighting setting determines how the SFX Algo evaluates historical market data to generate signals.
a) Recent Trends
Focuses on the most recent movements for short-term analysis. This setting is good for scalpers and intraday traders who need to react quickly to market changes.
b) Mixed Trends
Balances recent and historical price movements for a comprehensive market view. This setting is well-suited for swing traders and those who want to capture medium-term opportunities by combining the benefits of short-term responsiveness with the reliability of long-term trends.
c) Long-term Trends
Relies on extended historical market data to identify broader market trends, making it an excellent choice for traders focused on long-term strategies.
Minimum Star Rating: The Minimum Star Rating setting allows you to filter signals based on their strength, showing only those that meet or exceed your chosen threshold. For instance, setting the minimum star rating to 3 ensures you only receive signals with a rating of 3 stars or higher.
3. Take Profit / Stop Loss Methods
Key Levels
The Key Levels method uses pivot points to set take profit and stop-loss levels. The TP and SL levels are shown when a new signal is generated.
Volatility Bands
This TP/SL method uses the Volatility Bands overlay to set dynamic TP and SL levels. These levels are not predetermined so they will not be shown in advance when a signal is generated.
Signal Rating
Sets take profit and stop-loss levels based on changes in a signal's rating strength. These levels are not predetermined so they will not be shown in advance when a signal is generated.
Auto Stop-Loss
The auto method can only be applied to the SL. The auto method allows the algorithm to detect SL automatically when a momentum shift is detected. You can adjust the risk tolerance of the Auto SL by adjusting the ‘Auto Risk Tolerance’ setting. You can choose between Low, Medium, and High. A high-risk tolerance will result in stop losses being triggered less often.
4. Entry Conditions for Long & Short Trades
Multiple Conditions (1-6): Configure up to six independent conditions per trade direction.
Timeframe Specification: Choose between timeframes for Buy & Sell signals.
Trade Execution Filters: Restrict trades within specific trading sessions.
5. Exit Conditions for Long & Short Trades
Exit on Opposite Signal: Automatically exit trades upon opposite trade conditions.
Exit on Session End: Closes all positions at the end of the trading session.
Multiple Take-Profit (TP) and Stop-Loss (SL) Configurations:
TP/SL based on % move, ATR, Ticks, or Fixed Price.
Hard SL option for additional risk control.
Move SL to BE (Break Even) after a certain profit threshold.
JMA Quantum Edge: Adaptive Precision Trading System JMA Quantum Edge: Adaptive Precision Trading System - Enhanced Visuals & Risk Management
Get ready to experience a groundbreaking trading strategy that adapts in real-time to market conditions! This powerful, open-source script combines advanced technical analysis with state-of-the-art risk management tools, designed to give you the edge you need in today's dynamic markets.
What It Does:
Adaptive JMA Indicator:
Utilizes a custom Jurik Moving Average (JMA) that adjusts its sensitivity based on market volatility, ensuring you get precise signals even in the most fluctuating environments.
Dynamic Risk Management:
Features built-in support for partial exits (scaling out) to secure profits, along with an optional Kelly Criterion-based position sizing that tailors your exposure based on historical performance metrics.
Robust Error Handling:
Incorporates market condition filters—like minimum volume and maximum allowed gap percentage—to ensure trades are only executed under favorable conditions.
Vivid Visual Enhancements:
Enjoy an animated background that reflects market momentum, dynamic pivot markers, and clearly drawn trend channels. Plus, interactive tables provide real-time performance analytics and detailed error metrics.
Fully Customizable:
With a comprehensive set of inputs, you can easily tailor the strategy to your personal trading style and market preferences. Adjust everything from JMA parameters to refresh intervals for tables and labels!
How to Use It:
Add the Script:
Copy and paste the script into the Pine Script Editor on TradingView and click “Add to Chart.”
Configure Your Settings:
Customize your risk management (capital, commission, position sizing, partial exits, etc.) and tweak the JMA settings to match your preferred trading style. Use the extensive input panel to adjust visuals, alerts, and more.
Backtest & Optimize:
Run the strategy in the Strategy Tester to analyze its historical performance. Monitor real-time analytics and error metrics via the interactive tables, and fine-tune your parameters for optimal performance.
Go Live with Confidence:
Once you're satisfied with the backtest results, use the generated signals for live trading, and let the system help you stay ahead in fast-paced markets!
How to use the imputs:
This cutting-edge strategy is designed to adapt to changing market conditions and offers you complete control over your trading parameters. Here’s a breakdown of what each group of inputs does and how you should use them:
Risk Management & Trade Settings
Recalculate on Every Tick:
What it does: When enabled, the strategy recalculates on every price update.
Recommendation: Leave it true for fast charts.
Initial Capital:
What it does: Sets your starting capital for backtesting, which influences position sizing and performance metrics.
Recommendation: Start with $10,000 (or adjust according to your trading capital).
Commission (%):
What it does: Simulates the cost per trade.
Recommendation: Use a realistic rate (e.g., 0.04%).
Position Size & Quantity Type:
What they do: Define how large each trade will be. Choose between a fixed unit amount or a percentage of equity.
Recommendation: For beginners, the default fixed value is a good start. Experiment later with percentage-based sizing if needed.
Order Comment:
What it does: Adds a label to your orders for easier tracking.
Allow Reverse Orders:
What it does: If disabled, the strategy will close opposing positions before entering a new trade, reducing conflicts.
Enable Dynamic Position Sizing:
What it does: Adjusts trade size based on current volatility.
Recommendation: Beginners may start with this disabled until they understand basic sizing.
Partial Exit Inputs:
What they do:
Enable Partial Exits: When turned on, you can scale out of your position to lock in profits.
Partial Exit Profit (%): The profit percentage that triggers a partial exit.
Partial Exit Percentage: The percentage of your current position to exit. Recommendation: Use defaults (e.g., 5% profit, 50% exit) to secure profits gradually.
Kelly Criterion Option:
What it does: When enabled, adjusts your position sizing using historical performance (win rate and profit factor).
Recommendation: Beginners might leave this disabled until comfortable with backtest performance metrics.
Market Condition Filters:
What they do:
Minimum Volume: Ensures trades occur only when there’s sufficient market activity.
Maximum Gap (%): Prevents trading if there’s an unusually large gap between the previous close and current open. Recommendation: Defaults work well for most markets. If trades seem erratic, consider tightening these limits.
JMA Settings
Price Source:
What it does: The input series for the JMA calculation, typically set to the closing price.
JMA Length:
What it does: Controls the smoothing period of the JMA. Lower values are more sensitive; higher values smooth out the noise. Recommendation: Start with 21.
JMA Phase & Power:
What they do: Adjust how responsive the JMA is. Phase controls timing; power adjusts the intensity. Recommendation: Default settings (63 phase and 3 power) are a balanced starting point.
Visual Settings & Style
Show JMA Line, Pivot Lines, and Pivot Labels:
What they do: Toggle visual elements on your chart for easier signal identification.
Pivot History Count:
What it does: Limits how many historical pivot markers are displayed.
Color Settings (Up/Down Neon Colors):
What they do: Set the visual cues for buy and sell signals.
Pivot Marker & Line Style:
What they do: Choose the style and thickness of your pivot markers and lines.
Show Stats Panel:
What it does: Displays real-time performance and error metrics.
Dynamic Background & Visual Enhancements
Animate Background:
What it does: Changes the background color based on market momentum.
Show Trend Channels & Volume Zones:
What they do: Draw trend channels and highlight areas of high volatility/volume.
Show Data-Rich Labels:
What it does: Displays key metrics like volume, error percentage, and momentum on the chart.
High Volatility Threshold:
What it does: Determines the multiplier for when the chart background should change due to high volatility.
Multi-Timeframe Settings
Higher Timeframe:
What it does: Uses a higher timeframe’s JMA for trend confirmation. Recommendation: Use Daily ('D') or Weekly ('W') for broader trend analysis.
Show HTF Trend Zone & Opacity:
What they do: Display a visual zone from the higher timeframe to help confirm trends.
6. Trailing Stop Settings
Trailing Stop ATR Factor & Offset Multiplier:
What they do: Calculate trailing stops based on the Average True Range (ATR), adjusting stop distances dynamically. Recommendation: Default settings are a good balance but can be fine-tuned based on asset volatility.
Alerts & Notifications
Alerts on Pivot Formation & JMA Crossover:
What they do: Notify you when key events occur.
Dynamic Power Threshold:
What it does: Sets the sensitivity for dynamic alerts.
8. Static Stop Loss / Take Profit
Static Stop Loss (%) & Take Profit (%):
What they do: Allow you to set fixed stop loss or take profit levels. Recommendation: Leave them at 0 to disable if you prefer dynamic risk management, or set them if you have strict risk/reward preferences.
Advanced Settings
ATR Length:
What it does: Determines the period for ATR calculation, impacting trailing stop sensitivity. Recommendation: Start with 14.
Optimization Feedback & Enhanced Error Analysis
Error Metric Length & Error Threshold (%):
What they do: Calculate error metrics (like average error, skewness, and kurtosis) to help you fine-tune the JMA. Recommendation: Use the defaults and adjust if the error metrics seem off during backtesting.
UI - User-Driven Tweaking & Table Customization
Parameter Tweaker Panel, Debug/Performance Table Settings:
What they do: Provide interactive tables that display real-time performance, error metrics, and allow you to monitor strategy parameters.
Refresh Frequency Options (Table & Label Refresh Intervals):
What they do: Set how often the tables and labels update.
Recommendation: Start with an interval of 1 bar; increase it if your chart is too busy.
Important for Beginners:
Default Settings:
All default values have been chosen for balanced performance across different markets. If you ever experience unexpected behavior, start by resetting the inputs to their defaults.
Step-by-Step Adjustments:
Experiment by changing one setting at a time while observing how the strategy’s signals and performance metrics change. This will help you understand the impact of each parameter.
Resetting to Defaults:
If things seem off or you’re not getting the expected results, you can always reset the indicator. Either reload the script or use the “Reset Inputs” option (if available) to revert to the default settings.
Jump in, experiment, and enjoy the power of adaptive precision trading. This strategy is built to grow with your skills—have fun exploring and refining your trading edge!
Happy trading!
DCA Price LevelsThe indicator is used to set price targets in the chart on the basis of waste.
Whenever the price falls from the current DCA price to minus 30 percent, a new price target is set.
There are a total of 10 price targets, so a drop of up to minus 71 percent is covered by the default setting.
The number of price targets can be set individually, up to a maximum of 10, and the percentages can also be changed.
Money Flow Index MTF + Alerts with Candle Opacity & LabelsHow to Use the Money Flow Index MTF + Alerts with Candle Opacity & Labels Indicator
Overview:
This indicator is designed to help you gauge the buying and selling pressure in a market by using the Money Flow Index (MFI). Unlike many momentum oscillators, the MFI incorporates both price and volume, providing a unique perspective on market activity. It is particularly useful when you want to visually assess potential overbought or oversold conditions.
Indicator Components:
Money Flow Index (MFI) Calculation:
The indicator computes the MFI using a user-defined look-back period (default is 14 bars). The MFI is scaled between 0 and 100, where values above 80 typically indicate overbought conditions and values below 20 suggest oversold conditions.
Multi-Timeframe (MTF) Capability:
You can choose to calculate the MFI using either the current chart’s timeframe or a custom timeframe (for example, a 4-hour chart). This flexibility allows you to compare longer-term money flow trends against your primary trading timeframe.
Candle Opacity Based on MFI:
The opacity of the candles on your chart is dynamically adjusted based on the current MFI reading. When the MFI is high (near 100), candles become more opaque; when the MFI is low (near 0), candles appear more transparent. This visual cue can help you quickly spot changes in market momentum.
Visual Labels for Overbought/Oversold Conditions:
When the MFI crosses into the overbought territory, a red label reading “Overbought” is displayed above the high of the bar. Similarly, when it crosses into the oversold territory, a green label reading “Oversold” is placed below the low of the bar. These labels provide an immediate visual alert to potential reversal points or areas of caution.
Alert Conditions:
The script also includes alert conditions for both overbought and oversold signals. You can set up TradingView alerts so that you are notified in real time when the indicator detects these conditions.
Theory Behind the Money Flow Index (MFI):
The Money Flow Index is a momentum oscillator that uses both price and volume to signal the strength behind price moves.
Overbought Conditions: When the MFI is above 80, it suggests that buying pressure is very strong and the asset might be due for a pullback or consolidation.
Oversold Conditions: Conversely, when the MFI falls below 20, selling pressure is high and the asset might be oversold, potentially priming it for a bounce.
Keep in mind that in strong trending markets, overbought or oversold readings can persist for extended periods, so the MFI should be used in conjunction with other technical analysis tools.
Position Management Guidance:
While the indicator is useful for spotting potential overbought and oversold conditions, it is not designed to serve as an automatic signal to completely close a position. Instead, you might consider using it as a guide for pyramiding—gradually adding to your position over several days rather than exiting all at once. This approach allows you to better manage risk by:
Scaling In or Out Gradually: Instead of making one large position change, you can add or reduce your position in increments as market conditions evolve.
Diversifying Risk: Pyramiding helps you avoid the pitfalls of trying to time the market perfectly on a single trade exit or entry.
How to Get Started:
Apply the Indicator:
Add the indicator to your TradingView chart. Adjust the input settings (length, oversold/overbought levels, and resolution) as needed for your trading style and the market you’re analyzing.
Watch the Candles:
Observe the dynamic opacity of your candles. A sudden change in opacity can be a sign that the underlying money flow is shifting.
Monitor the Labels:
Pay attention to the “Overbought” or “Oversold” labels that appear. Use these cues in combination with your broader analysis to decide if it might be a good time to add to or gradually exit your position.
Set Up Alerts:
Configure TradingView alerts based on the indicator’s alert conditions so that you are notified when the MFI reaches extreme levels.
Use as Part of a Broader Strategy:
Remember, no single indicator should dictate your entire trading decision. Combine MFI signals with other technical analysis, risk management rules, and market insights to guide your trades.
Price Action Trend and Margin EquityThe Price Action Trend and Margin Equity indicator is a multifunctional market analysis tool that combines elements of money management and price pattern analysis. The indicator helps traders identify key price action patterns and determine optimal entry, exit and stop loss levels based on the current trend.
The main components of the indicator:
Money Management:
Allows the trader to set risk management parameters such as the percentage of possible loss on the position, the use of fixed leverage and the total capital.
Calculates the required leverage level to achieve a specified percentage of loss.
Price Action:
Correctly identifies various price patterns such as Pin Bar, Engulfing Bar, PPR Bar and Inside Bar.
Displays these patterns on the chart with the ability to customize candle colors and display styles.
Allows the trader to customize take profit and stop loss points to display them on the chart.
The ability to display patterns only in the direction of the trend.
Trend: (some code taken from ChartPrime)
Uses a trend cloud to visualize the current market direction.
The trend cloud is displayed on the chart and helps traders determine whether the market is in an uptrend or a downtrend.
Alert:
Allows you to set an alert that will be triggered when the pattern is formed.
Example of use:
Let's say a trader uses the indicator to trade the crypto market. He sets the money management parameters, setting the maximum loss per position to 5% and using a fixed leverage of 1:100. The indicator automatically calculates the required position size to meet these parameters ($: on the label). Or displays the leverage (X: on the label) to achieve the required risk.
The trader receives an alert when a Pin Bar is formed. The indicator displays the entry, exit, and stop loss levels based on this pattern. The trader opens a position for the recommended amount in the direction indicated by the indicator and sets the stop loss and take profit at the recommended levels.
General Settings:
Position Loss Percentage: Sets the maximum loss percentage you are willing to take on a single position.
Use Fixed Leverage: Enables or disables the use of fixed leverage.
Fixed Leverage: Sets the fixed leverage level.
Total Equity: Specifies the total equity you are using for trading. (Required for calculation when using fixed leverage)
Turn Patterns On/Off: You can turn on or off the display of various price patterns such as Pin Bar, Outside Bar (Engulfing), Inside Bar, and PPR Bar.
Pattern Colors: Sets the colors for displaying each pattern on the chart.
Candle Color: Allows you to set a neutral color for candles that do not match the price action.
Show Lines: Allows you to turn on or off the display of labels and lines.
Line Length: Sets the length of the stop, entry, and take profit lines.
Label color: One color for all labels (configured below) or the color of the labels in the color of the candle pattern.
Pin entry: Select the entry point for the pin bar: candle head, bar close, or 50% of the candle.
Coefficients for stop and take lines.
Use trend for price action: When enabled, will show price action signals only in the direction of the trend.
Display trend cloud: Enables or disables the display of the trend cloud.
Cloud calculation period: Sets the period for which the maximum and minimum values for the cloud are calculated. The longer the period, the smoother the cloud will be.
Cloud colors: Sets the colors for uptrends and downtrends, as well as the transparency of the cloud.
The logic of the indicator:
Pin Bar is a candle with a long upper or lower shadow and a short body.
Logic: If the length of one shadow is twice the body and the opposite shadow of the candle, it is considered a Pin Bar.
An Inside Bar is a candle that is completely engulfed by the previous candle.
Logic: If the high and low of the current candle are inside the previous candle, it is an Inside Bar.
An Outside Bar or Engulfing is a candle that completely engulfs the previous candle.
Logic: If the high and low of the current candle are outside the previous candle and close outside the previous candle, it is an Outside Bar.
A PPR Bar is a candle that closes above or below the previous candle.
Logic: If the current candle closes above the high of the previous candle or below its low, it is a PPR Bar.
Stop Loss Levels: Calculated based on the specified ratios. If set to 1.0, it shows the correct stop for the pattern by pushing away from the entry point.
Take Profit Levels: Calculated based on the specified ratios.
Create a Label: The label is created at the stop loss level and contains information about the potential leverage and loss.
The formula for calculating the $ value is:
=(Total Capital x (Maximum Loss Percentage on Position/100)) / (Difference between Entry Level and Stop Loss Level × Ratio that sets the stop loss level relative to the length of the candlestick shadow × Fixed Leverage Value) .
Labels contain the following information:
The percentage of price change from the recommended entry point to the stop loss level.
Required Leverage (X: ): The amount of leverage required to achieve the specified loss percentage. (Or a fixed value if selected).
Required Capital ($: ): The amount of capital required to open a position with the specified leverage and loss percentage (only displayed when using fixed leverage).
The trend cloud identifies the maximum and minimum price values for the specified period.
The cloud value is set depending on whether the current price is equal to the high or low values.
If the current closing price is equal to the high value, the cloud is set at the low value, and vice versa.
RU
Индикатор "Price Action Trend and Margin Equity" представляет собой многофункциональный инструмент для анализа рынка, объединяющий в себе элементы управления капиталом и анализа ценовых паттернов. Индикатор помогает трейдерам идентифицировать ключевые прайс экшн паттерны и определять оптимальные уровни входа, выхода и стоп-лосс на основе текущего тренда.
Основные компоненты индикатора:
Управление капиталом:
Позволяет трейдеру задавать параметры управления рисками, такие как процент возможного убытка по позиции, использование фиксированного плеча и общий капитал.
Рассчитывает необходимый уровень плеча для достижения заданного процента убытка.
Price Action:
Правильно идентифицирует различные ценовые паттерны, такие как Pin Bar, Поглащение Бар, PPR Bar и Внутренний Бар.
Отображает эти паттерны на графике с возможностью настройки цветов свечей и стилей отображения.
Позволяет трейдеру настраивать точки тейк профита и стоп лосса для отображения их на графике.
Возможность отображения паттернов только в натправлении тренда.
Trend: (часть кода взята у ChartPrime)
Использует облако тренда для визуализации текущего направления рынка.
Облако тренда отображается на графике и помогает трейдерам определить, находится ли рынок в восходящем или нисходящем тренде.
Оповещение:
Дает возможность установить оповещение которое будет срабатывать при формировании паттерна.
Пример применения:
Предположим, трейдер использует индикатор для торговли на крипто рынке. Он настраивает параметры управления капиталом, устанавливая максимальный убыток по позиции в 5% и используя фиксированное плечо 1:100. Индикатор автоматически рассчитывает необходимый объем позиции для соблюдения этих параметров ($: на лейбле). Или отображает плечо (Х: на лейбле) для достижения необходимого риска.
Трейдер получает оповещение о формировании Pin Bar. Индикатор отображает уровни входа, выхода и стоп-лосс, основанные на этом паттерне. Трейдер открывает позицию на рекомендуемую сумму в направлении, указанном индикатором, и устанавливает стоп-лосс и тейк-профит на рекомендованных уровнях.
Общие настройки:
Процент убытка по позиции: Устанавливает максимальный процент убытка, который вы готовы понести по одной позиции.
Использовать фиксированное плечо: Включает или отключает использование фиксированного плеча.
Уровень фиксированного плеча: Задает уровень фиксированного плеча.
Общий капитал: Указывает общий капитал, который вы используете для торговли. (Необходим для расчета при использовании фиксированного плеча)
Включение/отключение паттернов: Вы можете включить или отключить отображение различных ценовых паттернов, таких как Pin Bar, Outside Bar (Поглощение), Inside Bar и PPR Bar.
Цвета паттернов: Задает цвета для отображения каждого паттерна на графике.
Цвет свечей: Позволяет задать нейтральный цвет для свечей неподходящих под прйс экшн.
Показывать линии: Позволяет включить или отключить отображение лейблов и линий.
Длинна линий: Настройка длинны линий стопа, линии входа и тейк профита.
Цвет лейбла: Один цвет для всех лейблов (настраивается ниже) или цвет лейблов в цвет паттерна свечи.
Вход в пин: Выбор точки входа для пин бара: голова свечи, точка закрытия бара или 50% свечи.
Коэффиценты для стоп и тейк линий.
Использовать тренд для прайс экшна: При включении будет показывать прайс экшн сигналы только в направлении тренда.
Отображение облака тренда: Включает или отключает отображение облака тренда.
Период расчета облака: Устанавливает период, за который рассчитываются максимальные и минимальные значения для облака. Чем больше период, тем более сглаженным будет облако.
Цвета облака: Задает цвета для восходящего и нисходящего трендов, а также прозрачность облака.
Логика работы индикатора:
Pin Bar — это свеча с длинной верхней или нижней тенью и коротким телом.
Логика: Если длина одной тени вдвое больше тела и противоположной тени свечи, считается, что это Pin Bar.
Inside Bar — это свеча, полностью поглощенная предыдущей свечой.
Логика: Если максимум и минимум текущей свечи находятся внутри предыдущей свечи, это Inside Bar.
Outside Bar или Поглощение — это свеча, которая полностью поглощает предыдущую свечу.
Логика: Если максимум и минимум текущей свечи выходят за пределы предыдущей свечи и закрывается за пределами предыдущей свечи, это Outside Bar.
PPR Bar — это свеча, которая закрывается выше или ниже предыдущей свечи.
Логика: Если текущая свеча закрывается выше максимума предыдущей свечи или ниже ее минимума, это PPR Bar.
Уровни стоп-лосс: Рассчитываются на основе заданных коэффициентов. При значении 1.0 показывает правильный стоп для паттерна отталкиваясь от точки входа.
Уровки тейк-профита: Рассчитываются на основе заданных коэффициентов.
Создание метки: Метка создается на уровне стоп-лосс и содержит информацию о потенциальном плече и убытке.
Формула для вычисления значения $:
=(Общий капитал x (Максимальный процент убытка по позиции/100)) / (Разница между уровнем входа и уровнем стоп-лосс × Коэффициент, задающий уровень стоп-лосс относительно длины тени свечи × Значение фиксированного плеча).
Метки содержат следующую информацию:
Процент изменения цены от рекомендованной точки входа до уровня стоп-лосс.
Необходимое плечо (Х: ): Уровень плеча, необходимый для достижения заданного процента убытка. (Или фиксированное значение если оно выбрано).
Необходимый капитал ($: ): Сумма капитала, необходимая для открытия позиции с заданным плечом и процентом убытка (отображается только при использовании фиксированного плеча).
Облако тренда определяет максимальные и минимальные значения цены за указанный период.
Значение облака устанавливается в зависимости от того, совпадает ли текущая цена с максимальными или минимальными значениями.
Если текущая цена закрытия равна максимальному значению, облако устанавливается на уровне минимального значения, и наоборот.
Broad Market MOEX non normalazeBroad Market MOEX - Relative Strength Indicator for MOEX Stocks
This indicator allows you to compare the price dynamics of major Moscow Exchange stocks relative to the selected asset during the trading session.
Features:
• Tracks 10 key MOEX stocks: Sberbank, Rosneft, Lukoil, Gazprom Neft, NOVATEK, Nornickel, Polyus, Tatneft, Surgutneftegas, Severstal
• Shows the percentage price change of each stock relative to the base price at the start of trading (default 9:00 MSK)
• Allows you to customize the base time for reference
• Clearly displays the strength and weakness of individual stocks relative to each other
• Helps identify leaders and laggards during the trading session
How to use:
1. Add the indicator to any MOEX stock chart
2. Adjust the base time if needed (default 9:00)
3. Monitor the relative dynamics of stocks
4. Use for:
- Finding strong/weak stocks
- Identifying sector rotation
- Intraday trading
- Correlation analysis
Color coding of lines helps easily identify each stock on the chart.
The indicator is useful for intraday traders and anyone monitoring the relative strength of stocks on the Moscow Exchange.