NDX Scalping StrategySignals Long and Short Entries using moving averages with profit targets on NDX
Indikator dan strategi
LV Breakout And Reversal Combined Strategy// breakout condition
// 1. current close price must be higher than all close prices in X days (period set as 20 by default)
// 2. close prices change in X days must be less than 20%
// 3. current volume must be greater than previous volume by 10%
BRAHIM KHATTARA Components of the Strategy
Input Settings:
RSI Oversold Level: Set at 30, meaning the asset is considered oversold when RSI drops below this level.
RSI Overbought Level: Set at 70, meaning the asset is considered overbought when RSI rises above this level.
Stop Loss: A percentage-based stop loss (default: 1%).
Take Profit: A percentage-based take profit level (default: 2%).
Trade Entry Conditions:
A buy trade (long position) is triggered when the RSI is below 30 and was previously above 30 in the last candle.
A sell trade (short position) is triggered when the RSI is above 70 and was previously below 70 in the last candle.
Risk Management:
When a long position is opened:
The take profit is set 2% above the entry price.
The stop loss is set 1% below the entry price.
When a short position is opened:
The take profit is set 2% below the entry price.
The stop loss is set 1% above the entry price.
Buy and Sell Signals on the Chart:
A "BUY" label appears below the candles when a buy condition is met.
A "SELL" label appears above the candles when a sell condition is met.
Fibonacci Bollinger Bands:
The middle line is calculated using VWMA (Volume-Weighted Moving Average).
The bands are calculated using standard deviation with Fibonacci levels: 0.236, 0.382, 0.5, 0.618, 0.764, and 1.0.
The upper bands act as resistance, while the lower bands act as support.
✅ Advantages of the Strategy
✔️ Simple and easy to understand, relying only on RSI and support/resistance levels.
✔️ Suitable for scalping and swing trading.
✔️ Uses Fibonacci Bollinger Bands to improve entry and exit accuracy.
✔️ Clear risk management with predefined stop loss and take profit levels.
Multi-Timeframe Strategy with Time FiltersLooks at overall trend on 15 minute timeframe and identifies candlestick types on 1 minute time frame to determine entry. Does not execute trades too close to market open or close and doesn't hold any trades past the end of trading day.
My Buy Signal Strategy"My Buy Signal Strategy", teknik analiz göstergeleri ve mum formasyonlarını birleştirerek piyasada alım fırsatlarını tespit etmeyi amaçlayan esnek ve özelleştirilebilir bir stratejidir. 9 koşuluyla, kullanıcıların ihtiyaçlarına göre uyarlanabilir ve TradingView üzerinde kolayca test edilebilir. Strateji, hem trend takip hem de dönüş sinyallerini yakalamak için dengeli bir yaklaşım sunar.
My Buy Signal Strategy"Hugo v.1.0", teknik analiz göstergeleri ve mum formasyonlarını birleştirerek piyasada alım fırsatlarını tespit etmeyi amaçlayan esnek ve özelleştirilebilir bir stratejidir. 9 koşuluyla, kullanıcıların ihtiyaçlarına göre uyarlanabilir ve TradingView üzerinde kolayca test edilebilir. Strateji, hem trend takip hem de dönüş sinyallerini yakalamak için dengeli bir yaklaşım sunar.
Buy/Sell StrategyStrategy Description:
This strategy combines technical analysis with short-term buy and sell signals to help you optimize profits. To enhance your results, it's essential to incorporate additional technical indicators, such as moving averages, for better profitability.
Bollinger Ultra - Work VersionDetailed Code Explanation
1. Overview & Strategy Settings
Strategy Declaration:
The script starts by declaring a Pine Script strategy (using version 5) with overlay enabled so that all plots and visual markers appear on the chart. It also limits pyramiding to 1 (only one entry in the same direction at a time).
Drop‑Down Menus:
Two main drop‑down menus allow you to choose:
Exit Mode: Offers many options such as using Bollinger Bands, basis line, SuperTrend signals, ATR/percentage trailing stops, ADX/DI exits, and fixed take‑profit levels.
Entry Mode: Lets you choose how entries are generated—from simple Bollinger crossovers to more complex conditions that combine RSI, volume (VWMA/OBV), MACD, Stoch RSI, trend confirmation via SuperTrend, and even divergence checks.
Additional Rules:
Inputs such as “Minimum Signal Tier” (1 for basic, up to 3 for ultra‑strength signals), options to avoid trades against the SuperTrend, and to force trades in the trend’s direction add further control.
2. Indicator Calculations
Bollinger Bands:
The code calculates the mid‑line using a simple moving average (SMA) over a specified length (default 20, with tooltip noting optimization for 15‑minute charts). The upper and lower bands are computed by adding/subtracting a multiple (default 2.0) of the standard deviation from the mid‑line.
Volume-Based Indicators:
VWMA (Volume‑Weighted Moving Average): Averages the price weighted by volume over a set period (default 20).
OBV (On‑Balance Volume): Calculated cumulatively, with a lookback period to compare recent volume changes. The script then determines whether the OBV is trending up or down.
Momentum Indicators:
MACD: Uses standard fast (default 12), slow (default 26), and signal (default 9) EMA lengths.
RSI and Stoch RSI: Computes a standard RSI followed by a Stochastic transformation (with its own lengths and smoothing factors) to measure overbought/oversold conditions.
Trend Indicators:
SuperTrend: Uses an ATR‑based calculation (with inputs like ATR period and multiplier) to generate a dynamic trend line and direction.
ADX/DI: Manually computes the Average Directional Index (ADX) along with the positive and negative directional indicators to assess trend strength.
3. Signal Generation & Trade Execution
Base Entry Signals:
For long trades, a basic signal is generated when the previous bar’s close is below the lower Bollinger Band and the current bar’s close crosses above it. The opposite logic applies for short trades.
Mode‑Specific Entry Conditions:
Depending on the chosen entry mode from the dropdown, the strategy may add extra filters such as:
RSI Filter: Checking for oversold/overbought conditions.
Volume Confirmation: Requiring that price is above/below the VWMA and that the OBV trend is supportive.
MACD & Stoch RSI: Confirming momentum with both MACD and smoothed Stoch RSI.
Trend Confirmation: Adding conditions that require the SuperTrend to agree with the trade direction.
Combined/Optimized Entry: Requiring several conditions (volume, momentum, trend, and even a volatility filter via ATR) for stronger signals.
Signal Strength & Confirmation Count:
The script calculates a “confirmation count” for both long and short entries based on volume, momentum, and trend filters. This allows visual labeling (strong, super, ultra) and also serves as a minimum threshold for executing trades.
Additional Rules:
Options to avoid trading against the SuperTrend and to force a trade when there’s a breakout in the trend direction are implemented to further refine the entry conditions.
Trade Execution:
Based on the conditions, the script will enter long or short positions. It also checks if an opposing position exists (and closes it before entering a new one) to prevent conflicting trades.
4. Exit Strategies
Exit Conditions:
Similar to entries, exit conditions depend on the selected exit mode. For example:
Exiting when the price moves above the upper Bollinger Band (for long positions) or below the lower band (for short positions).
Using the basis line or SuperTrend direction as an exit signal.
More advanced methods include ATR-based trailing stops (with various multipliers), percentage-based trailing stops, or fixed take‑profit levels (e.g., 5%, 7%, 10%, etc.).
Trailing Stop & Limit Exits:
The strategy can dynamically trail the stop based on the ATR or a fixed percentage of the current price. Alternatively, it can exit when the price reaches a predetermined profit level relative to the average entry price.
5. Visualization & Alerts
Visual Plots:
The strategy plots the Bollinger Bands, VWMA, and SuperTrend. It uses different colors and line styles for clarity.
Signal Markers:
Visual markers (labels and arrows) indicate signal strength tiers:
Ultra, Super, and Strong markers for both long and short signals.
Weak signals are also optionally shown.
Dynamic Background:
The background color changes based on the SuperTrend, providing a quick visual cue for the current trend.
Alerts:
Optional alert conditions are defined for:
Ultra, Super, and Strong Signals (both long and short).
Buy (long) and Sell (short) signals.
These alerts can be toggled on or off via input settings and will trigger notifications when their respective conditions are met.
Recommended Parameter Settings for Different Timeframes
Because the strategy’s defaults are somewhat tuned for a 15‑minute chart (as noted in the Bollinger Bands tooltip), you may want to adjust key parameters when switching timeframes. Below are general recommendations to consider:
5‑Minute Chart (Short-Term Scalping)
Bollinger Bands:
Length: 10–15 (e.g., 12)
StdDev: 1.8–2.0 (a slightly tighter band can capture quick moves)
VWMA:
Length: 10
OBV Lookback:
Around 5 bars
MACD:
Fast: 9, Slow: 18, Signal: 7 (faster settings for quicker signals)
SuperTrend:
ATR Period: 7
Multiplier: 2.5
ADX:
Length: 7, Threshold: ~20
15‑Minute Chart (Default / Intraday)
Bollinger Bands:
Length: 20
StdDev: 2.0
VWMA:
Length: 20
OBV Lookback:
10 bars
MACD:
Standard 12, 26, 9
SuperTrend:
ATR Period: 10
Multiplier: 3.0
ADX:
Length: 14, Threshold: 25
45‑Minute Chart (Intermediate Term)
Bollinger Bands:
Length: 25 (to smooth out noise)
StdDev: 2.0–2.2
VWMA:
Length: 20
OBV Lookback:
Around 12 bars
MACD:
Can remain at 12,26,9 or experiment with slightly slower settings (e.g., 14,30,9)
SuperTrend:
ATR Period: 12
Multiplier: 3.0
ADX:
Length: 14, Threshold: 25
1‑Hour Chart (Swing/Intraday)
Bollinger Bands:
Length: 20–25
StdDev: 2.0
VWMA:
Length: 20–25
OBV Lookback:
10–15 bars
MACD:
Standard 12,26,9
SuperTrend:
ATR Period: 14
Multiplier: 3.0
ADX:
Length: 14, Threshold: 25
4‑Hour Chart (Longer-Term Swing)
Bollinger Bands:
Length: 30–50 (longer periods capture the broader trend)
StdDev: 2.0
VWMA:
Length: 50 (to reflect a longer‑term average)
OBV Lookback:
Around 20 bars
MACD:
You may keep the standard 12,26,9 or try slower settings (e.g., 20,50,9) for smoother signals
SuperTrend:
ATR Period: 21
Multiplier: 3.0
ADX:
Length: 14, with the threshold potentially adjusted upward if the asset shows stronger trends
Final Notes
Optimization:
These suggestions are only a starting point. The “best” settings will depend on your chosen market, the asset’s volatility, and your risk management preferences. Always run backtests and forward‑test in a demo environment before trading live.
Flexibility:
The code is designed to allow switching between various entry and exit modes. Experiment with different combinations and parameter tweaks to see which blend of conditions works best on your preferred timeframe.
Adaptive Trend Continuation StrategyStrategy Explanation: This is a Trend continuation Strategy that uses directional measures to inform trade decisions.
Trend Identification: The ADX indicator measures trend strength. An ADX value above 25 signifies a strong trend, aligning with research indicating that trends, once established, tend to continue.
Entry Criteria: The strategy detects bullish flag patterns, which are known to have a high success rate in predicting upward continuations.
STRIKE.MONEY (www.strike.money)
A breakout from this pattern, confirmed by higher-than-average volume, serves as the entry signal.
Risk Management: The ATR is employed to set dynamic stop-loss levels, adjusting for market volatility. Position sizing is calculated based on a fixed percentage of capital at risk per trade, ensuring consistent risk management.
Exit Strategy: A stop-loss is placed at 1.5 times the ATR below the entry price, and a take-profit is set at 3 times the ATR above the entry price, establishing a 2:1 reward-to-risk ratio.
5. Known Limitations and Edge Cases:
False Breakouts: Not all breakouts lead to sustained trends. The volume confirmation filter aims to mitigate this risk, but false signals can still occur.
Market Conditions: The strategy may underperform in choppy or sideways markets where clear trends are absent.
Pattern Recognition: The simplified detection of bullish flag patterns may not capture all valid patterns or might identify false ones.
OB-MSS-FVG StrategyStrategy Explanation:
Identify the Order Block
Look for the last bearish (red) candle before a sustained rally. This candle represents the Order Block, signaling institutional buying/selling activity.
Confirm the Order Block is validated by a liquidity sweep (price briefly wicks into a prior swing high/low to trigger stop orders before reversing).
Confirm Market Structure Shift (MSS)
A ChoCh (Change of Character) occurs when price breaks a prior swing high in a downtrend (or low in an uptrend).
Validate with upward displacement: A strong bullish candle closing above the Order Block, confirming trend reversal.
Locate High-Probability FVGs
FVG Definition: A 3-candle pattern where the middle candle gaps above/below adjacent candles (e.g., bullish FVG in a downtrend).
Conditions for FVG:
a. Unmitigated: Price hasn’t retested the FVG zone.
b. No close below: If tested, price should not close below the FVG (bullish confirmation).
c. Confluence: FVG aligns with a key level (e.g., trendline, Order Block, or Fibonacci retracement).
d. Prioritize farthest FVG: The earliest FVG after the ChoCh is stronger (less likely to be a retracement trap).
e. Fibonacci Filter: Draw Fib (0–100%) from the swing low to high of the rally. Strong FVGs lie between 0–50%; avoid those above 50%.
f. BOS/ChoCH Confirmation: FVG must form after a Break of Structure (BOS) or ChoCh, alongside a liquidity sweep (e.g., stop runs).
Entry, Stop Loss, and Take Profit
Entry: Enter long when price retests the FVG (preferably in the 0–50% Fib zone) and shows rejection (e.g., bullish pin bar, engulfing).
Stop Loss: Place below the FVG’s low or the Order Block’s low, whichever is lower.
Take Profit: Target the next liquidity zone (prior swing high) or use a trailing stop after a BOS.
Example Scenario
Downtrend: Price sweeps liquidity below a swing low.
MSS: Price rallies, breaks the prior swing high (ChoCh).
FVG Formation: A bullish FVG appears during the rally.
Fib Confluence: FVG lies between 0–50% of the rally’s Fib retracement.
Entry: Price retraces to FVG, bounces with a bullish candle.
Exit: Profit at next swing high or liquidity pool.
BITCOIN SMASHERThe BITCOIN SMASHER strategy is a trend-following and momentum-based trading system designed for Bitcoin. It utilizes a combination of Exponential Moving Averages (EMAs), RSI,to determine optimal entry and exit points while incorporating risk management features such as dynamic stop loss, take profit, trade cooldowns, and max daily loss limits.
5 Dakika Özel AL-SAT5 Dakikalık Performans Optimizasyonları:
Hızlı EMA Kesmeleri: 20/50 EMA kombinasyonu
Agresif Risk Yönetimi: %0.25 SL / %0.50 TP
Hacim Spike Filtresi: 1.5x ortalama hacim zorunlu
Dar Bollinger Bandı: 1.8 standart sapma ile
RSI Thresholds: 38/62 seviyelerinde
Kullanım Önerileri:
Zaman Seçimi:
Londra Açılışı (08:00 TSİ)
New York Açılışı (14:30 TSİ)
Enstrüman Seçimi:
EUR/USD, GBP/USD, BTC/USDT gibi yüksek likidite çiftleri
Risk Yönetimi:
Maksimum pozisyon büyüklüğü: %2-5 sermaye
Günde maksimum 5 işlem kuralı
TMA StrategyThe **TMA Strategy** is a trend-following strategy that leverages **Smoothed Moving Averages (SMMA)** and **candlestick patterns** to identify high-probability trading opportunities. It is designed for traders who want to capture strong trends while minimizing noise from short-term fluctuations.
**Key Features:**
✔ **Multiple Smoothed Moving Averages (SMMA):** Uses 21, 50, 100, and 200-period SMMAs to identify market trends and key support/resistance zones.
✔ **Candlestick Pattern Confirmation:** Incorporates **3-line strike** and **engulfing candle** patterns to confirm trade entries.
✔ **Dynamic Trend Filter:** A **2-period EMA** ensures that trades align with the dominant trend, reducing false signals.
✔ **Customizable Session Filter:** Allows users to enable/disable trading within specific market sessions (New York, London, Tokyo, etc.), ensuring trades are executed only during high-liquidity hours.
✔ **Risk Management:** Uses predefined exit conditions based on EMA/SMMA crossovers to lock in profits and minimize losses.
**Trading Logic:**
📌 **Long Entry:**
- Bullish Engulfing or 3-Line Strike pattern appears.
- Price is above the 200 SMMA.
- 2 EMA confirms an uptrend.
- Trade executes if session filter allows.
📌 **Short Entry:**
- Bearish Engulfing or 3-Line Strike pattern appears.
- Price is below the 200 SMMA.
- 2 EMA confirms a downtrend.
- Trade executes if session filter allows.
📌 **Exit Conditions:**
- Long trades exit when EMA(2) crosses **below** SMMA(200).
- Short trades exit when EMA(2) crosses **above** SMMA(200).
**Ideal Markets & Timeframes:**
✅ Best suited for **Forex, Stocks, and Crypto** markets.
✅ Works well on **higher timeframes (15m, 1H, 4H, Daily)** for stronger trend confirmation.
📢 **Disclaimer:**
This strategy is for educational purposes only. Backtest results do not guarantee future performance. Always use proper risk management and test in a demo account before live trading.
🚀 **Try the TMA Strategy now and enhance your trend-following approach!**
碩士幣業生 會員專屬策略 - 多方逆勢抄底使用資格:碩士幣業生旗下會員
取得資格方式:請私訊IG @master_crypto_shuo
www.instagram.com
1. 標的 :ETH
2. 時間級別 :4 HR
3. 回測倉位參數 :初始本金 = 1000u,資金比例 = 50%,槓桿 = x1,意即每次總艙位=500u
4. 倉位管理方式 :單利,可自行決定投入『資金比例(保證金/初始資金)』和『槓桿』
5. 資金比例選擇 :本金*(1-資金比例) > |MDD|,讓策略有能開最後一單打回來的機會
6. 策略失效判別 :當最大虧損MDD創新高後,代表策略失效
7. 風險提示 :所有Rule base的交易策略,幾乎都有失效的可能,意即走完了alpha cycle,請重新調整參數,或是暫停使用。但用單利的方式管理,有機會讓MDD發生時,整體還是賺錢的。
8. 策略邏輯介紹:
進場方式:當價格由下,上穿下軌後,且符合下軌正斜率,進場做多
出場方式-保本:當盈虧比達到1R或是碰到上軌,啟動保本
出場方式-停利:進入保本狀態後,價格收k跌破中軌,市價出場
9. 使用方式:
可當作抄底現貨的輔助工具,長期遠勝DCA。
ThePawnAlgoPROThe Pawn algo PRO is an automated strategy that is useful to trade retracements and expansions using any higher timeframe reference.
Why is useful?
This algorithm is helpful to trade with the higher timeframe Bias and to see the HTF manipulations of the highs or lows once the candle open, usually in a normal buy candle will be a manipulation lower to end up higher. In a normal sell candle will be a manipulation higher to close lower. Once the potential direction of the Higher time frame candle is clear the algo will just enter on a trade on the lower timeframe aligned with the higher timeframe trend.
You can select any HTF you want from 1-365Days, 1-12Months or 1-52W ranges. Making this algorithm very flexible to adapt to any trader specialized timeframe.
How it works and how it does it?
It works with a simple but powerful pattern a close above previous candle high means higher prices and a close below previous candle low means lower prices, Close inside previous candle range means price is going to consolidate do some kind of retracement or reversal. The algo plots the candles with different colors to identify each of these states. And it does this in the HTF range plot.
This algo is similar to the previously released Pawn algo with the additional features that is an automated strategy that can take trade using desired risk reward and different entry types and trade management options. When the simple pattern is detected.
Also this version allows to plot the current developing HTF levels meaning the high, low and the 50%, plus the first created FVG(fair value gap introduced by ICT) in the range allowing to easily track any change in the potential direction of the HTF candle.
How to use it?
First select a higher timeframe reference and then select a lower timeframe, to visualize it better is recommended that the LTF is at least 10 times lower. Default HTF is 1 Week and LTF is 60min for trading the weekly expansions intraday.
Then we configure the HTF visualization it can be configure to show different HTF levels the premium/discount, wicks midpoints, previous levels, actual developing range or both. The Shade of the HTF range can be the body or the whole HTF range.
After that we configure the automated entries we can chose between buys only ,sell only entries or both and minimum risk reward to take a trade. Default value is 1.8RR and both entries selected. We can choose the maximum Risk Reward to avoid unrealistic targets default is 10RR. The maximum trades per HTF candle is also possible to select around this section.
Then we got the option to select which type of trade you want to take a trade around the open, the 50% or 75-80% or around the previous High for shorts or Low for longs. And off course the breakout entry that is for taking expansions outside previous HTF range. The picture below showcase an option using only entries on previous candles High or lows and 1Day as a HTF. You can also see the actual and previous HTF levels plotted.
Is important to take into account that these default settings are optimized for the MNQ! the 1W and 1H timeframes, but traders can adjust these settings to their desire timeframes or market and find a profitable configuration adjusting the parameters as they prefer. Initial balance, order size and commissions might be needed to be configured properly depending of the market. The algo provides a dashboard that make it easy to find a profitable configuration. It specifies the total trades, ARR that is an approximate value of the accumulative risk reward assuming all loses are 1R. The profit factor(PF) and percent profitable trades(PP) values are also available plus consecutives take profits and consecutives loses experimented in the simulation.
Finally there is an option to allow the algo to just trade following the direction of the trend if you just want to use it for sentiment or potential trend detection, this will place a trade in the most probable direction using the HTF reference levels, first FVG and LTF price action.
In the picture below you can see it in action in the 1min chart using 1H as HTF. When its trending works pretty well but when is consolidating is better to avoid using this option. Configuration below uses a time filter with the macro times specified by ICT that is also an available filter for taking trades. And the risk reward is set to minimum 2RR.
The cyan dotted line is the stop loss and the blue one above is the take profit level. The algo allows for different ways to exit in this case is using exit on a reversal, but can also be when the take profit is hit, or in a retracement. For the stop loss we can chose to exit on a close, reversal or when price hit the level.
Strategy Results
The results are obtained using 2000usd in the MNQ! 1 contract per trade. Commission are set to 2USD,slippage to 1tick,
The backtesting range is from April 19 2021 to the present date that is march 2025 for a total of 180 trades, this Strategy default settings are designed to take trades on retracements only, in any of the available options meaning around 50% to the extreme HTF high or low following the HTF trend, but can only take 2 trades per HTF candle and the risk reward must be minimum 1.8RR and maximum 8RR. Break even is set when price reaches 2RR and the exit on profit is on a reversal, and for loses when the stop is hit. The HTF range is 1 Week and LTF is 1H. The strategy give decent results, makes around 2 times the money is lost with around 30% profitable. It experiments drawdown when the market makes quick market structure shifts or consolidates for long periods of time. So should be used with caution, remember entries constitute only a small component of a complete winning strategy. Other factors like risk management, position-sizing, trading frequency, trading fees, and many others must also be properly managed to achieve profitability. Past performance doesn’t guarantee future results.
Summary of features
-Take advantage of market fractality select HTF from 1-365Days, 1-12Months or 1-52W ranges
-Easily identify manipulations in the LTF using any HTF key levels, from previous or actual HTF range
-LTF Candles and shaded HTF boxes change color depending of previous candle close and price action
-Plot the first presented FVG of the selected HTF range plus 50% developing range of the HTF
-Configurable automated trades for retracements into the previous close, around 50%,75-80% or using the HTF high or low
-Option to enable automated breakout entries for expansions of the HTF range
-Trend follower algo that automatically place a trade where is likely to expand.
-Time filter to allow only entries around the times you trade or the macro times.
-Risk Reward filter to take the automated trades with visible stop and take profit levels
- Customizable trade management take profit, stop, breakeven level with standard deviations
-Option to exit on a close, retracement or reversal after hitting the take profit level
-Option to exit on a close or reversal after hitting stop loss
-Dashboard with instant statistics about the strategy current settings
MY3 ADX+StokastikBu strateji, ADX’nin manuel hesaplaması ve Stokastik göstergesinin sinyallerini kullanarak potansiyel alım ve satım noktalarını belirlemeyi amaçlar.
Divergence IQ [TradingIQ]Hello Traders!
Introducing "Divergence IQ"
Divergence IQ lets traders identify divergences between price action and almost ANY TradingView technical indicator. This tool is designed to help you spot potential trend reversals and continuation patterns with a range of configurable features.
Features
Divergence Detection
Detects both regular and hidden divergences for bullish and bearish setups by comparing price movements with changes in the indicator.
Offers two detection methods: one based on classic pivot point analysis and another that provides immediate divergence signals.
Option to use closing prices for divergence detection, allowing you to choose the data that best fits your strategy.
Normalization Options:
Includes multiple normalization techniques such as robust scaling, rolling Z-score, rolling min-max, or no normalization at all.
Adjustable normalization window lets you customize the indicator to suit various market conditions.
Option to display the normalized indicator on the chart for clearer visual comparison.
Allows traders to take indicators that aren't oscillators, and convert them into an oscillator - allowing for better divergence detection.
Simulated Trade Management:
Integrates simulated trade entries and exits based on divergence signals to demonstrate potential trading outcomes.
Customizable exit strategies with options for ATR-based or percentage-based stop loss and profit target settings.
Automatically calculates key trade metrics such as profit percentage, win rate, profit factor, and total trade count.
Visual Enhancements and On-Chart Displays:
Color-coded signals differentiate between bullish, bearish, hidden bullish, and hidden bearish divergence setups.
On-chart labels, lines, and gradient flow visualizations clearly mark divergence signals, entry points, and exit levels.
Configurable settings let you choose whether to display divergence signals on the price chart or in a separate pane.
Performance Metrics Table:
A performance table dynamically displays important statistics like profit, win rate, profit factor, and number of trades.
This feature offers an at-a-glance assessment of how the divergence-based strategy is performing.
The image above shows Divergence IQ successfully identifying and trading a bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a bearish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bearish divergence between an indicator and price action!
The performance table is designed to provide a clear summary of simulated trade results based on divergence setups. You can easily review key metrics to assess the strategy’s effectiveness over different time periods.
Customization and Adaptability
Divergence IQ offers a wide range of configurable settings to tailor the indicator to your personal trading approach. You can adjust the lookback and lookahead periods for pivot detection, select your preferred method for normalization, and modify trade exit parameters to manage risk according to your strategy. The tool’s clear visual elements and comprehensive performance metrics make it a useful addition to your technical analysis toolbox.
The image above shows Divergence IQ identifying divergences between price action and OBV with no normalization technique applied.
While traders can look for divergences between OBV and price, OBV doesn't naturally behave like an oscillator, with no definable upper and lower threshold, OBV can infinitely increase or decrease.
With Divergence IQ's ability to normalize any indicator, traders can normalize non-oscillator technical indicators such as OBV, CVD, MACD, or even a moving average.
In the image above, the "Robust Scaling" normalization technique is selected. Consequently, the output of OBV has changed and is now behaving similar to an oscillator-like technical indicator. This makes spotting divergences between the indicator and price easier and more appropriate.
The three normalization techniques included will change the indicator's final output to be more compatible with divergence detection.
This feature can be used with almost any technical indicator.
Stop Type
Traders can select between ATR based profit targets and stop losses, or percentage based profit targets and stop losses.
The image above shows options for the feature.
Divergence Detection Method
A natural pitfall of divergence trading is that it generally takes several bars to "confirm" a divergence. This makes trading the divergence complicated, because the entry at time of the divergence might look great; however, the divergence wasn't actually signaled until several bars later.
To circumvent this issue, Divergence IQ offers two divergence detection mechanisms.
Pivot Detection
Pivot detection mode is the same as almost every divergence indicator on TradingView. The Pivots High Low indicator is used to detect market/indicator highs and lows and, consequently, divergences.
This method generally finds the "best looking" divergences, but will always take additional time to confirm the divergence.
Immediate Detection
Immediate detection mode attempts to reduce lag between the divergence and its confirmation to as little as possible while avoiding repainting.
Immediate detection mode still uses the Pivots Detection model to find the first high/low of a divergence. However, the most recent high/low does not utilize the Pivot Detection model, and instead immediately looks for a divergence between price and an indicator.
Immediate Detection Mode will always signal a divergence one bar after it's occurred, and traders can set alerts in this mode to be alerted as soon as the divergence occurs.
TradingView Backtester Integration
Divergence IQ is fully compatible with the TradingView backtester!
Divergence IQ isn’t designed to be a “profitable strategy” for users to trade. Instead, the intention of including the backtester is to let users backtest divergence-based trading strategies between the asset on their chart and almost any technical indicator, and to see if divergences have any predictive utility in that market.
So while the backtester is available in Divergence IQ, it’s for users to personally figure out if they should consider a divergence an actionable insight, and not a solicitation that Divergence IQ is a profitable trading strategy. Divergence IQ should be thought of as a Divergence backtesting toolkit, not a full-feature trading strategy.
Strategy Properties Used For Backtest
Initial Capital: $1000 - a realistic amount of starting capital that will resonate with many traders
Amount Per Trade: 5% of equity - a realistic amount of capital to invest relative to portfolio size
Commission: 0.02% - a conservative amount of commission to pay for trade that is standard in crypto trading, and very high for other markets.
Slippage: 1 tick - appropriate for liquid markets, but must be increased in markets with low activity.
Once more, the backtester is meant for traders to personally figure out if divergences are actionable trading signals on the market they wish to trade with the indicator they wish to use.
And that's all!
If you have any cool features you think can benefit Divergence IQ - please feel free to share them!
Thank you so much TradingView community!
Destroyer LifeDestroyer Life Strategy - High-Frequency Long & Short Trading
Overview:
The Destroyer Life strategy is an advanced cryptocurrency trading algorithm designed for high-frequency execution on the 15-second timeframe. It combines CRT (Candle Range Trend) and Turtle Soup trading logic with multi-timeframe analysis to optimize entries and exits for both long and short trades. This strategy is specifically optimized for high-volatility crypto pairs, such as SOL/USD on MEXC, ensuring precise execution with minimal drawdown.
Key Features:
15-Second Timeframe Execution: Optimized for ultra-short-term trading.
Long & Short Strategy: Simultaneously identifies profitable buy and sell opportunities.
CRT & Turtle Soup Logic: Leverages price action patterns for enhanced trade accuracy.
Higher Timeframe Analysis (HTF): Incorporates liquidity zones, fair value gaps (FVG), and breaker blocks for context-aware trading.
Dynamic Position Sizing: Uses an adjustable leverage multiplier for risk-controlled trade sizing.
Commission Optimization: Ensures profitability even with trading fees.
Strict Risk Management: Implements exit conditions based on liquidity structure and trend reversals.
Strategy Performance (Backtested on SOL/USD - MEXC):
Overall Profitability: ~80% win rate in backtesting.
Net Profit: $3,151.12 (6.30% ROI).
Gross Profit: $3,795.68 (7.59%).
Gross Loss: $644.56 (1.29%).
Long Trades Profit: $1,459.05 (2.92%).
Short Trades Profit: $1,692.07 (3.38%).
Commission Paid: $924.82.
Minimum Trade Holding Period: 1-minute cooldown between trades.
Trading Logic:
Entry Conditions:
Long Trades: Triggered when the price enters a liquidity void and aligns with higher timeframe bullish bias.
Short Trades: Triggered when price approaches a resistance level with bearish higher timeframe confluence.
CRT & Turtle Soup Patterns: Identifies reversals by analyzing breakout and fake-out structures.
Exit Conditions:
Long Positions Close: Upon price exceeding a 3.88% profit threshold or reversing below an HTF structure.
Short Positions Close: Upon reaching a similar 3.88% threshold or showing strong bullish signals.
Dynamic Position Sizing:
Uses a leverage-based calculation that adapts trade size based on volatility.
Liquidity Awareness:
Tracks Mitigation Blocks (MB), Fair Value Gaps (FVG), Buy/Sell-Side Liquidity (BSL/SSL) to determine optimal execution.
Best Use Cases:
Scalpers & High-Frequency Traders: Those looking for rapid trade execution with short holding periods.
Crypto Traders Focused on Low Timeframes: Optimized for 15-second price action.
Traders Utilizing Liquidity Concepts: Built to exploit liquidity traps and inefficiencies.
Risks & Considerations:
High-Frequency Execution Requires Low Latency: Ensure your broker or exchange supports fast order execution.
Backtested Results May Vary: Real-time performance depends on market conditions.
Commission & Fees Impact Profits: Consider exchanges with low fees to maximize strategy efficiency.
Final Thoughts:
The Destroyer Life Strategy is designed for serious traders looking to take advantage of high-volatility markets with a structured, liquidity-based approach. By combining price action, liquidity concepts, and adaptive risk management, it provides a solid framework for executing high-probability trades on crypto markets.
🚀 Ready to take your trading to the next level? Try Destroyer Life today and dominate the markets!
Double Bollinger Bands Strategy with Signals (By Rolwin)Double Bollinger Bands Strategy with Signals 1.0 (By Rolwin)
📌 Overview
The Double Bollinger Bands Strategy is a trend-following system that utilizes two sets of Bollinger Bands (2 standard deviations and 3 standard deviations) to identify high-probability entry and exit points. This strategy helps traders capitalize on strong price movements and potential reversals by detecting overbought and oversold conditions more effectively.
📊 How It Works
• Bollinger Bands Setup:
o Middle Band: 20-period Simple Moving Average (SMA)
o Upper & Lower Bands (2 SD): Standard Bollinger Bands (±2 standard deviations)
o Extreme Bands (3 SD): Additional Bollinger Bands (±3 standard deviations) for extreme price moves
• Entry Signals:
✅ Buy (Long Entry): When the price crosses above the lower 3SD band (oversold zone)
❌ Sell (Short Entry): When the price crosses below the upper 3SD band (overbought zone)
• Exit Signals:
🔼 Exit Long: When the price reaches the upper 2SD band
🔽 Exit Short: When the price reaches the lower 2SD band
• Additional Features:
✅ Buy & Sell Signals plotted directly on the chart
🎨 Candles turn white when price touches the extreme 3SD band
🔥 Why Use This Strategy?
✔️ Clear Entry & Exit Points: Based on strong statistical levels
✔️ Effective in Trending & Reversal Markets: Captures both momentum & mean reversion setups
✔️ Easy-to-Use Visualization: Signals & bands make it beginner-friendly
✔️ Customizable: Adjust Bollinger Band length and multipliers to fit different assets & timeframes
⚠️ Risk Management Tip
While this strategy provides high-probability trade signals, it is essential to use stop-loss orders (e.g., ATR-based) and proper position sizing to manage risk effectively.
📈 Try it out and optimize the settings for your favorite markets! 🚀
TEMA OBOS Strategy PakunTEMA OBOS Strategy
Overview
This strategy combines a trend-following approach using the Triple Exponential Moving Average (TEMA) with Overbought/Oversold (OBOS) indicator filtering.
By utilizing TEMA crossovers to determine trend direction and OBOS as a filter, it aims to improve entry precision.
This strategy can be applied to markets such as Forex, Stocks, and Crypto, and is particularly designed for mid-term timeframes (5-minute to 1-hour charts).
Strategy Objectives
Identify trend direction using TEMA
Use OBOS to filter out overbought/oversold conditions
Implement ATR-based dynamic risk management
Key Features
1. Trend Analysis Using TEMA
Uses crossover of short-term EMA (ema3) and long-term EMA (ema4) to determine entries.
ema4 acts as the primary trend filter.
2. Overbought/Oversold (OBOS) Filtering
Long Entry Condition: up > down (bullish trend confirmed)
Short Entry Condition: up < down (bearish trend confirmed)
Reduces unnecessary trades by filtering extreme market conditions.
3. ATR-Based Take Profit (TP) & Stop Loss (SL)
Adjustable ATR multiplier for TP/SL
Default settings:
TP = ATR × 5
SL = ATR × 2
Fully customizable risk parameters.
4. Customizable Parameters
TEMA Length (for trend calculation)
OBOS Length (for overbought/oversold detection)
Take Profit Multiplier
Stop Loss Multiplier
EMA Display (Enable/Disable TEMA lines)
Bar Color Change (Enable/Disable candle coloring)
Trading Rules
Long Entry (Buy Entry)
ema3 crosses above ema4 (Golden Cross)
OBOS indicator confirms up > down (bullish trend)
Execute a buy position
Short Entry (Sell Entry)
ema3 crosses below ema4 (Death Cross)
OBOS indicator confirms up < down (bearish trend)
Execute a sell position
Take Profit (TP)
Entry Price + (ATR × TP Multiplier) (Default: 5)
Stop Loss (SL)
Entry Price - (ATR × SL Multiplier) (Default: 2)
TP/SL settings are fully customizable to fine-tune risk management.
Risk Management Parameters
This strategy emphasizes proper position sizing and risk control to balance risk and return.
Trading Parameters & Considerations
Initial Account Balance: $7,000 (adjustable)
Base Currency: USD
Order Size: 10,000 USD
Pyramiding: 1
Trading Fees: $0.94 per trade
Long Position Margin: 50%
Short Position Margin: 50%
Total Trades (M5 Timeframe): 128
Deep Test Results (2024/11/01 - 2025/02/24)BTCUSD-5M
Total P&L:+1638.20USD
Max equity drawdown:694.78USD
Total trades:128
Profitable trades:44.53
Profit factor:1.45
These settings aim to protect capital while maintaining a balanced risk-reward approach.
Visual Support
TEMA Lines (Three EMAs)
Trend direction is indicated by color changes (Blue/Orange)
ema3 (short-term) and ema4 (long-term) crossover signals potential entries
OBOS Histogram
Green → Strong buying pressure
Red → Strong selling pressure
Blue → Possible trend reversal
Entry & Exit Markers
Blue Arrow → Long Entry Signal
Red Arrow → Short Entry Signal
Take Profit / Stop Loss levels displayed
Strategy Improvements & Uniqueness
This strategy is based on indicators developed by "l_lonthoff" and "jdmonto0", but has been significantly optimized for better entry accuracy, visual clarity, and risk management.
Enhanced Trend Identification with TEMA
Detects early trend reversals using ema3 & ema4 crossover
Reduces market noise for a smoother trend-following approach
Improved OBOS Filtering
Prevents excessive trading
Reduces unnecessary risk exposure
Dynamic Risk Management with ATR-Based TP/SL
Not a fixed value → TP/SL adjusts to market volatility
Fully customizable ATR multiplier settings
(Default: TP = ATR × 5, SL = ATR × 2)
Summary
The TEMA + OBOS Strategy is a simple yet powerful trading method that integrates trend analysis and oscillators.
TEMA for trend identification
OBOS for noise reduction & overbought/oversold filtering
ATR-based TP/SL settings for dynamic risk management
Before using this strategy, ensure thorough backtesting and demo trading to fine-tune parameters according to your trading style.
Non-Repainting Renko Emulation Strategy [PineIndicators]Introduction: The Repainting Problem in Renko Strategies
Renko charts are widely used in technical analysis for their ability to filter out market noise and emphasize price trends. Unlike traditional candlestick charts, which are based on fixed time intervals, Renko charts construct bricks only when price moves by a predefined amount. This makes them useful for trend identification while reducing small fluctuations.
However, Renko-based trading strategies often fail in live trading due to a fundamental issue: repainting .
Why Do Renko Strategies Repaint?
Most trading platforms, including TradingView, generate Renko charts retrospectively based on historical price data. This leads to the following issues:
Renko bricks can change or disappear when new data arrives.
Backtesting results do not reflect real market conditions. Strategies may appear highly profitable in backtests because historical data is recalculated with hindsight.
Live trading produces different results than backtesting. Traders cannot know in advance whether a new Renko brick will form until price moves far enough.
Objective of the Renko Emulator
This script simulates Renko behavior on a standard time-based chart without repainting. Instead of using TradingView’s built-in Renko charting, which recalculates past bricks, this approach ensures that once a Renko brick is formed, it remains unchanged .
Key benefits:
No past bricks are recalculated or removed.
Trading strategies can execute reliably without false signals.
Renko-based logic can be applied on a time-based chart.
How the Renko Emulator Works
1. Parameter Configuration & Initialization
The script defines key user inputs and variables:
brickSize : Defines the Renko brick size in price points, adjustable by the user.
renkoPrice : Stores the closing price of the last completed Renko brick.
prevRenkoPrice : Stores the price level of the previous Renko brick.
brickDir : Tracks the direction of Renko bricks (1 = up, -1 = down).
newBrick : A boolean flag that indicates whether a new Renko brick has been formed.
brickStart : Stores the bar index at which the current Renko brick started.
2. Identifying Renko Brick Formation Without Repainting
To ensure that the strategy does not repaint, Renko calculations are performed only on confirmed bars.
The script calculates the difference between the current price and the last Renko brick level.
If the absolute price difference meets or exceeds the brick size, a new Renko brick is formed.
The new Renko price level is updated based on the number of bricks that would fit within the price movement.
The direction (brickDir) is updated , and a flag ( newBrick ) is set to indicate that a new brick has been formed.
3. Visualizing Renko Bricks on a Time-Based Chart
Since TradingView does not support live Renko charts without repainting, the script uses graphical elements to draw Renko-style bricks on a standard chart.
Each time a new Renko brick forms, a colored rectangle (box) is drawn:
Green boxes → Represent bullish Renko bricks.
Red boxes → Represent bearish Renko bricks.
This allows traders to see Renko-like formations on a time-based chart, while ensuring that past bricks do not change.
Trading Strategy Implementation
Since the Renko emulator provides a stable price structure, it is possible to apply a consistent trading strategy that would otherwise fail on a traditional Renko chart.
1. Entry Conditions
A long trade is entered when:
The previous Renko brick was bearish .
The new Renko brick confirms an upward trend .
There is no existing long position .
A short trade is entered when:
The previous Renko brick was bullish .
The new Renko brick confirms a downward trend .
There is no existing short position .
2. Exit Conditions
Trades are closed when a trend reversal is detected:
Long trades are closed when a new bearish brick forms.
Short trades are closed when a new bullish brick forms.
Key Characteristics of This Approach
1. No Historical Recalculation
Once a Renko brick forms, it remains fixed and does not change.
Past price action does not shift based on future data.
2. Trading Strategies Operate Consistently
Since the Renko structure is stable, strategies can execute without unexpected changes in signals.
Live trading results align more closely with backtesting performance.
3. Allows Renko Analysis Without Switching Chart Types
Traders can apply Renko logic without leaving a standard time-based chart.
This enables integration with indicators that normally cannot be used on traditional Renko charts.
Considerations When Using This Strategy
Trade execution may be delayed compared to standard Renko charts. Since new bricks are only confirmed on closed bars, entries may occur slightly later.
Brick size selection is important. A smaller brickSize results in more frequent trades, while a larger brickSize reduces signals.
Conclusion
This Renko Emulation Strategy provides a method for using Renko-based trading strategies on a time-based chart without repainting. By ensuring that bricks do not change once formed, it allows traders to use stable Renko logic while avoiding the issues associated with traditional Renko charts.
This approach enables accurate backtesting and reliable live execution, making it suitable for trend-following and swing trading strategies that rely on Renko price action.
[3Commas] Turtle StrategyTurtle Strategy
🔷 What it does: This indicator implements a modernized version of the Turtle Trading Strategy, designed for trend-following and automated trading with webhook integration. It identifies breakout opportunities using Donchian channels, providing entry and exit signals.
Channel 1: Detects short-term breakouts using the highest highs and lowest lows over a set period (default 20).
Channel 2: Acts as a confirmation filter by applying an offset to the same period, reducing false signals.
Exit Channel: Functions as a dynamic stop-loss (wait for candle close), adjusting based on market structure (default 10 periods).
Additionally, traders can enable a fixed Take Profit level, ensuring a systematic approach to profit-taking.
🔷 Who is it for:
Trend Traders: Those looking to capture long-term market moves.
Bot Users: Traders seeking to automate entries and exits with bot integration.
Rule-Based Traders: Operators who prefer a structured, systematic trading approach.
🔷 How does it work: The strategy generates buy and sell signals using a dual-channel confirmation system.
Long Entry: A buy signal is generated when the close price crosses above the previous high of Channel 1 and is confirmed by Channel 2.
Short Entry: A sell signal occurs when the close price falls below the previous low of Channel 1, with confirmation from Channel 2.
Exit Management: The Exit Channel acts as a trailing stop, dynamically adjusting to price movements. To exit the trade, wait for a full bar close.
Optional Take Profit (%): Closes trades at a predefined %.
🔷 Why it’s unique:
Modern Adaptation: Updates the classic Turtle Trading Strategy, with the possibility of using a second channel with an offset to filter the signals.
Dynamic Risk Management: Utilizes a trailing Exit Channel to help protect gains as trades move favorably.
Bot Integration: Automates trade execution through direct JSON signal communication with your DCA Bots.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Best suited for trending markets; higher timeframes (e.g., H4, D1) are recommended to minimize noise.
Sideways Markets: In choppy conditions, breakouts may lead to false signals—consider using additional filters.
Backtesting & Demo Testing: It is crucial to thoroughly backtest the strategy and run it on a demo account before risking real capital.
Parameter Adjustments: Ensure that commissions, slippage, and position sizes are set accurately to reflect real trading conditions.
🔷 STRATEGY PROPERTIES
Symbol: BINANCE:ETHUSDT (Spot).
Timeframe: 4h.
Test Period: All historical data available.
Initial Capital: 10000 USDT.
Order Size per Trade: 1% of Capital, you can use a higher value e.g. 5%, be cautious that the Max Drawdown does not exceed 10%, as it would indicate a very risky trading approach.
Commission: Binance commission 0.1%, adjust according to the exchange being used, lower numbers will generate unrealistic results. By using low values e.g. 5%, it allows us to adapt over time and check the functioning of the strategy.
Slippage: 5 ticks, for pairs with low liquidity or very large orders, this number should be increased as the order may not be filled at the desired level.
Margin for Long and Short Positions: 100%.
Indicator Settings: Default Configuration.
Period Channel 1: 20.
Period Channel 2: 20.
Period Channel 2 Offset: 20.
Period Exit: 10.
Take Profit %: Disable.
Strategy: Long & Short.
🔷 STRATEGY RESULTS
⚠️Remember, past results do not guarantee future performance.
Net Profit: +516.87 USDT (+5.17%).
Max Drawdown: -100.28 USDT (-0.95%).
Total Closed Trades: 281.
Percent Profitable: 40.21%.
Profit Factor: 1.704.
Average Trade: +1.84 USDT (+1.80%).
Average # Bars in Trades: 29.
🔷 How to Use It:
🔸 Adjust Settings:
Select your asset and timeframe suited for trend trading.
Adjust the periods for Channel 1, Channel 2, and the Exit Channel to align with the asset’s historical behavior. You can visualize these channels by going to the Style tab and enabling them.
For example, if you set Channel 2 to 40 with an offset of 40, signals will take longer to appear but will aim for a more defined trend.
Experiment with different values, a possible exit configuration is using 20 as well. Compare the results and adjust accordingly.
Enable the Take Profit (%) option if needed.
🔸Results Review:
It is important to check the Max Drawdown. This value should ideally not exceed 10% of your capital. Consider adjusting the trade size to ensure this threshold is not surpassed.
Remember to include the correct values for commission and slippage according to the symbol and exchange where you are conducting the tests. Otherwise, the results will not be realistic.
If you are satisfied with the results, you may consider automating your trades. However, it is strongly recommended to use a small amount of capital or a demo account to test proper execution before committing real funds.
🔸Create alerts to trigger the DCA Bot:
Verify Messages: Ensure the message matches the one specified by the DCA Bot.
Multi-Pair Configuration: For multi-pair setups, enable the option to add the symbol in the correct format.
Signal Settings: Enable the option to receive long or short signals (Entry | TP | SL), copy and paste the messages for the DCA Bots configured.
Alert Setup:
When creating an alert, set the condition to the indicator and choose "alert() function call only".
Enter any desired Alert Name.
Open the Notifications tab, enable Webhook URL, and paste the Webhook URL.
For more details, refer to the section: "How to use TradingView Custom Signals".
Finalize Alerts: Click Create, you're done! Alerts will now be sent automatically in the correct format.
🔷 INDICATOR SETTINGS
Period Channel 1: Period of highs and lows to trigger signals
Period Channel 2: Period of highs and lows to filter signals
Offset: Move Channel 2 to the right x bars to try to filter out the favorable signals.
Period Exit: It is the period of the Donchian channel that is used as trailing for the exits.
Strategy: Order Type direction in which trades are executed.
Take Profit %: When activated, the entered value will be used as the Take Profit in percentage from the entry price level.
Use Custom Test Period: When enabled signals only works in the selected time window. If disabled it will use all historical data available on the chart.
Test Start and End: Once the Custom Test Period is enabled, here you select the start and end date that you want to analyze.
Check Messages: Check Messages: Enable this option to review the messages that will be sent to the bot.
Entry | TP | SL: Enable this options to send Buy Entry, Take Profit (TP), and Stop Loss (SL) signals.
Deal Entry and Deal Exit: Copy and paste the message for the deal start signal and close order at Market Price of the DCA Bot. This is the message that will be sent with the alert to the Bot, you must verify that it is the same as the bot so that it can process properly.
DCA Bot Multi-Pair: You must activate it if you want to use the signals in a DCA Bot Multi-pair in the text box you must enter (using the correct format) the symbol in which you are creating the alert, you can check the format of each symbol when you create the bot.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
Strategy SuperTrend SDI WebhookThis Pine Script™ strategy is designed for automated trading in TradingView. It combines the SuperTrend indicator and Smoothed Directional Indicator (SDI) to generate buy and sell signals, with additional risk management features like stop loss, take profit, and trailing stop. The script also includes settings for leverage trading, equity-based position sizing, and webhook integration.
Key Features
1. Date-based Trade Execution
The strategy is active only between the start and end dates set by the user.
times ensures that trades occur only within this predefined time range.
2. Position Sizing and Leverage
Uses leverage trading to adjust position size dynamically based on initial equity.
The user can set leverage (leverage) and percentage of equity (usdprcnt).
The position size is calculated dynamically (initial_capital) based on account performance.
3. Take Profit, Stop Loss, and Trailing Stop
Take Profit (tp): Defines the target profit percentage.
Stop Loss (sl): Defines the maximum allowable loss per trade.
Trailing Stop (tr): Adjusts dynamically based on trade performance to lock in profits.
4. SuperTrend Indicator
SuperTrend (ta.supertrend) is used to determine the market trend.
If the price is above the SuperTrend line, it indicates an uptrend (bullish).
If the price is below the SuperTrend line, it signals a downtrend (bearish).
Plots visual indicators (green/red lines and circles) to show trend changes.
5. Smoothed Directional Indicator (SDI)
SDI helps to identify trend strength and momentum.
It calculates +DI (bullish strength) and -DI (bearish strength).
If +DI is higher than -DI, the market is considered bullish.
If -DI is higher than +DI, the market is considered bearish.
The background color changes based on the SDI signal.
6. Buy & Sell Conditions
Long Entry (Buy) Conditions:
SDI confirms an uptrend (+DI > -DI).
SuperTrend confirms an uptrend (price crosses above the SuperTrend line).
Short Entry (Sell) Conditions:
SDI confirms a downtrend (+DI < -DI).
SuperTrend confirms a downtrend (price crosses below the SuperTrend line).
Optionally, trades can be filtered using crossovers (occrs option).
7. Trade Execution and Exits
Market entries:
Long (strategy.entry("Long")) when conditions match.
Short (strategy.entry("Short")) when bearish conditions are met.
Trade exits:
Uses predefined take profit, stop loss, and trailing stop levels.
Positions are closed if the strategy is out of the valid time range.
Usage
Automated Trading Strategy:
Can be integrated with webhooks for automated execution on supported trading platforms.
Trend-Following Strategy:
Uses SuperTrend & SDI to identify trend direction and strength.
Risk-Managed Leverage Trading:
Supports position sizing, stop losses, and trailing stops.
Backtesting & Optimization:
Can be used for historical performance analysis before deploying live.
Conclusion
This strategy is suitable for traders who want to automate their trading using SuperTrend and SDI indicators. It incorporates risk management tools like stop loss, take profit, and trailing stop, making it adaptable for leverage trading. Traders can customize settings, conduct backtests, and integrate it with webhooks for real-time trade execution. 🚀
Important Note:
This script is provided for educational and template purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.