Strategy Builder With IndicatorsThis strategy script is designed for traders who enjoy building systems using multiple indicators.
Please note : This script does not include any built-in indicators. Instead, it works by referencing the plot outputs of the indicators you’ve already added to your chart.
For example, if you add a MACD and an ATR indicator to your chart, you can assign their plot values as inputs in the settings panel of this strategy.
• MACD as a trigger
• ATR as a filter
How Filters Work
Filters check whether certain conditions are met before a trade can be opened. For instance, if you set a filter like ATR > 30, then no trade will be executed unless that condition is true — even if the trigger fires.
All filters are linked, meaning every active filter must be satisfied for a trade to occur.
How Triggers Work
Triggers are what actually fire a trade signal — such as a moving average crossover or RSI breaking above a specific level. Unlike filters, triggers are independent. Only one active trigger needs to be true for the trade to execute.
Thanks to its modular structure, this strategy can be used with any indicator of your choice.
⸻
Risk Management Features
In the settings, you’ll find flexible options for:
• Stop Loss (SL)
• Trailing Stop Loss (TSL)
• Multi Take-Profit (TP)
These features enhance trade safety and let you tailor your risk management.
SL types available:
• Tick-based SL
• Percent-based SL
• ATR-based SL
Once you select your preferred SL type, you can fine-tune its distance using the offset field.
Trailing SL allows your stop to follow price as it moves in your favor — helping to lock in profits.
Multi-TP lets you take profits at two different levels, helping you secure gains while leaving room for extended moves.
Breakeven option is also available to automatically move your SL to entry after reaching a profit threshold.
⸻
How to Build a Solid Strategy
Let’s break down a good setup into three key components:
1. Trend Filter
Avoid trading against the trend — that’s like swimming against the current.
Use a filter like:
• Supertrend
• Momentum indicators
• Candlestick bias, etc.
Example: In this case, I used Supertrend and filtered for trades only if the price is above the uptrend line.
2. Trigger Condition
Once we confirm the trend is on our side, we need a trigger to execute at the right moment. This can be:
• RSI cross
• Candlestick patterns
• Trendline breaks
• Moving average crossovers, etc.
Example: I used RSI crossing above 50 as the entry trigger.
3. Risk Management
Even in the right trend at the right time — anything can happen. That’s why you should always define Stop Loss and Take Profit levels.
⸻
And there you have it! Your strategy is ready to backtest, refine, and deploy with alerts for live trading.
If you’d like a step-by-step guide on how to use this strategy and set everything up correctly, watch this video tutorial:
youtu.be
Questions or suggestions? Feel free to reach out
Penunjuk dan strategi
magic wand STSM"Magic Wand STSM" Strategy: Trend-Following with Dynamic Risk Management
Overview:
The "Magic Wand STSM" (Supertrend & SMA Momentum) is an automated trading strategy designed to identify and capitalize on sustained trends in the market. It combines a multi-timeframe Supertrend for trend direction and potential reversal signals, along with a 200-period Simple Moving Average (SMA) for overall market bias. A key feature of this strategy is its dynamic position sizing based on a user-defined risk percentage per trade, and a built-in daily and monthly profit/loss tracking system to manage overall exposure and prevent overtrading.
How it Works (Underlying Concepts):
Multi-Timeframe Trend Confirmation (Supertrend):
The strategy uses two Supertrend indicators: one on the current chart timeframe and another on a higher timeframe (e.g., if your chart is 5-minute, the higher timeframe Supertrend might be 15-minute).
Trend Identification: The Supertrend's direction output is crucial. A negative direction indicates a bearish trend (price below Supertrend), while a positive direction indicates a bullish trend (price above Supertrend).
Confirmation: A core principle is that trades are only considered when the Supertrend on both the current and the higher timeframe align in the same direction. This helps to filter out noise and focus on stronger, more confirmed trends. For example, for a long trade, both Supertrends must be indicating a bearish trend (price below Supertrend line, implying an uptrend context where price is expected to stay above/rebound from Supertrend). Similarly, for short trades, both must be indicating a bullish trend (price above Supertrend line, implying a downtrend context where price is expected to stay below/retest Supertrend).
Trend "Readiness": The strategy specifically looks for situations where the Supertrend has been stable for a few bars (checking barssince the last direction change).
Long-Term Market Bias (200 SMA):
A 200-period Simple Moving Average is plotted on the chart.
Filter: For long trades, the price must be above the 200 SMA, confirming an overall bullish bias. For short trades, the price must be below the 200 SMA, confirming an overall bearish bias. This acts as a macro filter, ensuring trades are taken in alignment with the broader market direction.
"Lowest/Highest Value" Pullback Entries:
The strategy employs custom functions (LowestValueAndBar, HighestValueAndBar) to identify specific price action within the recent trend:
For Long Entries: It looks for a "buy ready" condition where the price has found a recent lowest point within a specific number of bars since the Supertrend turned bearish (indicating an uptrend). This suggests a potential pullback or consolidation before continuation. The entry trigger is a close above the open of this identified lowest bar, and also above the current bar's open.
For Short Entries: It looks for a "sell ready" condition where the price has found a recent highest point within a specific number of bars since the Supertrend turned bullish (indicating a downtrend). This suggests a potential rally or consolidation before continuation downwards. The entry trigger is a close below the open of this identified highest bar, and also below the current bar's open.
Candle Confirmation: The strategy also incorporates a check on the candle type at the "lowest/highest value" bar (e.g., closevalue_b < openvalue_b for buy signals, meaning a bearish candle at the low, suggesting a potential reversal before a buy).
Risk Management and Position Sizing:
Dynamic Lot Sizing: The lotsvalue function calculates the appropriate position size based on your Your Equity input, the Risk to Reward ratio, and your risk percentage for your balance % input. This ensures that the capital risked per trade remains consistent as a percentage of your equity, regardless of the instrument's volatility or price. The stop loss distance is directly used in this calculation.
Fixed Risk Reward: All trades are entered with a predefined Risk to Reward ratio (default 2.0). This means for every unit of risk (stop loss distance), the target profit is rr times that distance.
Daily and Monthly Performance Monitoring:
The strategy tracks todaysWins, todaysLosses, and res (daily net result) in real-time.
A "daily profit target" is implemented (day_profit): If the daily net result is very favorable (e.g., res >= 4 with todaysLosses >= 2 or todaysWins + todaysLosses >= 8), the strategy may temporarily halt trading for the remainder of the session to "lock in" profits and prevent overtrading during volatile periods.
A "monthly stop-out" (monthly_trade) is implemented: If the lres (overall net result from all closed trades) falls below a certain threshold (e.g., -12), the strategy will stop trading for a set period (one week in this case) to protect capital during prolonged drawdowns.
Trade Execution:
Entry Triggers: Trades are entered when all buy/sell conditions (Supertrend alignment, SMA filter, "buy/sell situation" candle confirmation, and risk management checks) are met, and there are no open positions.
Stop Loss and Take Profit:
Stop Loss: The stop loss is dynamically placed at the upTrendValue for long trades and downTrendValue for short trades. These values are derived from the Supertrend indicator, which naturally adjusts to market volatility.
Take Profit: The take profit is calculated based on the entry price, the stop loss, and the Risk to Reward ratio (rr).
Position Locks: lock_long and lock_short variables prevent immediate re-entry into the same direction once a trade is initiated, or after a trend reversal based on Supertrend changes.
Visual Elements:
The 200 SMA is plotted in yellow.
Entry, Stop Loss, and Take Profit lines are plotted in white, red, and green respectively when a trade is active, with shaded areas between them to visually represent risk and reward.
Diamond shapes are plotted at the bottom of the chart (green for potential buy signals, red for potential sell signals) to visually indicate when the buy_sit or sell_sit conditions are met, along with other key filters.
A comprehensive trade statistics table is displayed on the chart, showing daily wins/losses, daily profit, total deals, and overall profit/loss.
A background color indicates the active trading session.
Ideal Usage:
This strategy is best applied to instruments with clear trends and sufficient liquidity. Users should carefully adjust the Your Equity, Risk to Reward, and risk percentage inputs to align with their individual risk tolerance and capital. Experimentation with different ATR Length and Factor values for the Supertrend might be beneficial depending on the asset and timeframe.
📈 Supertrend + Volume Spike Strategy (AAPL Optimized)🚀 Overview
This strategy is specifically optimized for AAPL on the 45-minute timeframe, combining the Supertrend indicator with volume breakout confirmation and dynamic ATR-based trailing exits. Designed for high-frequency, low-drawdown performance, it maintains strong win rates with smart trade timing.
Whether you're trading tech stocks, indices, or crypto, this logic adapts well to trending markets and offers scalable position control for automated systems or manual traders.
🔍 How It Works
✅ Entry Conditions:
Supertrend flips bullish or bearish
Volume spike confirms move (volume > 1.3 × SMA(20))
Short cooldown to reduce noise
🔁 Exit Logic:
Trailing stop-loss based on ATR
Optional exit on opposite signal to lock gains or cut losses
📊 AAPL 45min Backtest Highlights
✅ Total P&L: +$278,454.67
✅ Profit Factor: 7.384
✅ Win Rate: 98.72%
✅ Drawdown: 1.15%
✅ Total Trades: 2,658
✅ Timeframe: 45-minute
✅ Symbol: AAPL (NASDAQ)
📌 Settings may be fine-tuned per asset or timeframe for maximum edge.
💡 Strategy Settings
ATR Period: 10
Supertrend: ATR = 10, Factor = 3.0
Volume Spike Threshold: 1.3 × SMA(20)
Cooldown Between Trades: 2 bars
Trailing Stop: 1.2 × ATR with offset
🧠 Generated by AI
This strategy was developed using an AI Pine Script Generator, trained to optimize trade logic for trend-based setups with visual clarity and risk control.
It combines real-time analytics with consistent logic tested across various assets and sessions.
🛠 How to Use
Add the script to AAPL 45m or similar trending asset
Adjust cooldown or trailing multiplier as needed
Enable alerts or automation for live setups
Test across assets like TSLA, BTC, QQQ, or ETHUSDT
💬 Final Thoughts
This system is ideal for trend-followers, breakout traders, and semi-automated setups. Use it as-is or evolve it with your own filters or dashboards.
Feedback and ideas are welcome — comment or reach out!
3 EMA Trend Strategy (Locks Trailing Stop Tightening)How I Created a Smart Trading Strategy Using 3 EMAs + Trailing StopLoss with help of ChatGPT
Ever wondered if AI can really help with trading? I put it to the test by asking ChatGPT to build a strategy using 3 Exponential Moving Averages (EMAs). Here's what I got:
✅ Custom Pine Script
✅ Trend-based entry logic
✅ Clean exits using Trailing Stop Loss
✅ Backtested on multiple tickers (QQQ, NVDA, SPY, AAPL)
I wanted to say anyone create the strategies with their ideas. Just take help of chatGPT and tweak for better results.
Here’s a quick summary of what the strategy does:
Condition Action Taken
==============================================
EMAs aligned + pullback Enter LONG (Buy)
Trade reaches 10% profit Trailing Stop set to 5%
Trade reaches 20% profit Trailing Stop locked at 2%
Price drops to stop level Exit Trade
I've fine-tuned the code, which is available to public. It is been tested , see the performance on chart. More detailed description and shared all insights in my latest blog post on
eemanispace.com
Let me know your comments / feedback.
Trend Surge with Pullback FilterTrend Surge with Pullback Filter
Overview
Trend Surge with Pullback Filter is a price action-based strategy designed to enter strong trends not at the breakout, but at the first controlled pullback after a surge. It filters out noise by requiring momentum confirmation and low volatility conditions, aiming for better entry prices and reduced risk exposure.
How It Works
A strong upward trend is identified when the Rate of Change (ROC) exceeds a defined percentage (e.g., 2%).
Instead of jumping into the trend immediately, the strategy waits for a pullback: the price must drop at least 1% below its recent high (over the past 3 candles).
A low volatility environment is also required for entry — measured using ATR being below its 20-period average multiplied by a safety factor.
If all three conditions are met (trend + pullback + quiet volatility), the system enters a long position.
The trade is managed using a dynamic ATR-based stop-loss and a take-profit at 2x ATR.
An automatic exit occurs after 30 bars if neither SL nor TP is hit.
Key Features
- Momentum-triggered trend detection via ROC
- Smart pullback filter avoids overbought entries
- Volatility-based filter to eliminate noise and choppy conditions
- Dynamic risk-reward ratio with ATR-driven exit logic
- Time-limited exposure using bar-based exit
Parameter Explanation
ROC Length (10): Looks for short-term price surges
ROC Threshold (2.0%): Trend is considered valid if price increased more than 2%
Pullback Lookback (3): Checks last 3 candles for price retracement
Minimum Pullback % (1.0%): Entry only if price pulled back at least 1%
ATR Length (14): Measures current volatility
Low Volatility Multiplier (1.2): ATR must be below this multiple of its 20-period average
Risk-Reward (2.0): Target is set at 2x the stop-loss distance
Max Bars (30): Trade is closed automatically after 30 bars
Originality Statement
This strategy doesn’t enter at the trend start, unlike many momentum bots. Instead, it waits for the first market hesitation — a minor pullback under low volatility — before entering. This logic mimics how real traders often wait for a better entry after a breakout, avoiding emotional overbought buys. The combined use of ROC, dynamic pullback detection, and ATR-based environment filters makes it both practical and original for real-world trading.
Disclaimer
This strategy is intended for educational and research purposes. Backtest thoroughly and understand the logic before using with real capital.
Contrarian PRO - Smart MoneyContrarian PRO - Smart Money" for TradingView detects liquidity sweeps and CHoCH signals to enter against the crowd, with dynamic TP/SL based on ATR and proper risk management per trade.
You can test it on BTC or gold using the 1H or 30M timeframe.
Ripster Cloud Trend Strategy - ParameterstyrdRipster Cloud Trend Strategy – Simple Explanation
This is a trend-following strategy that aims to enter trades early in a new trend using moving average crossovers. It uses four "clouds" made from different EMAs to identify the overall trend and timing of entries.
It goes long when the long-term trend is up and a shorter-term bullish crossover happens within certain zones.
It goes short when the long-term trend is down and a bearish crossover happens.
Once in a trade:
A fixed stop loss is placed.
After some time, it switches to a trailing stop based on EMA levels to lock in profits while staying in the trend.
It only exits when the stop loss is hit, not on new signals, and it allows only one trade at a time.
EURUSD 90% Win Rate Strategy with Risk Control//@version=5
strategy("EURUSD 90% Win Rate Strategy with Risk Control", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
emaFast = ta.ema(close, 5)
emaSlow = ta.ema(close, 20)
rsi = ta.rsi(close, 14)
// Entry Conditions
longCondition = ta.crossover(emaFast, emaSlow) and rsi < 70
shortCondition = ta.crossunder(emaFast, emaSlow) and rsi > 30
// Risk Settings
accountBalance = 5000 // starting capital
maxLossPerTrade = 250 // risk 5% per trade
stopLossPerc = 0.01 // 1% stop loss
takeProfitPerc = 0.02 // 2% take profit
// Calculate position size dynamically
riskPerUnit = close * stopLossPerc
positionSize = maxLossPerTrade / riskPerUnit
// Entry & Exit Logic
if (longCondition)
strategy.entry("Long", strategy.long, qty=positionSize)
strategy.exit("TP/SL Long", from_entry="Long", limit=close * (1 + takeProfitPerc), stop=close * (1 - stopLossPerc))
if (shortCondition)
strategy.entry("Short", strategy.short, qty=positionSize)
strategy.exit("TP/SL Short", from_entry="Short", limit=close * (1 - takeProfitPerc), stop=close * (1 + stopLossPerc))
RSI + 止盈比例策略 修正版lt's a simple strategy
applicable to eth one hour
automatic profit taking
it only applies to an upward trend
so the overall profit and loss look very bad
welcome to correct
MNQ EMA StrategyThis strategy is not perfected yet. ONE MINUTE TIMEFRAME
The goal is to take Longs above the 5 ema when price is above all the 200, 30, and 5 ema.
Short side is when candle closes below the 5 ema and price is below the 300, 30, and 5 ema.
I use candle range blocks for different time zones to avoid excess orders from being triggered. As well as blocks when stoploss is hit or after a profitable trade of certain ticks.
There is an RSI to avoid trades when there isn't too much movement.
My goal is to get an entry when price trades above the 5 ema and then next candle passes it by .25 instead of entering immediately. The stoploss as the low of candle before entry and TP as 3 times the stoploss. I've tried a million times to make it like this but I don't know how to use pine script or Code.
The sell side is basically the same, enter at candle close below 5 ema wait for low to get swept to enter and stoploss above previous high, with TP 3 times the stoploss.
Publishing in hopes anyone knows how to adjust this
CAUTION THIS STRATEGY WORKS WITH CURRENT PRICE ACTION DUE TO ME USING RECENT TICK COUNT RATHER THAN BASED ON CANDLES OR PERCENTAGES. THIS WILL ONLY WORK AS LONG AS MARKET MOVES AS IT HAS BEEN SINCE 2024. CME_MINI:MNQ1!
Ultra Trend Strategy @Peet V.4We use MA trend line to indicated the market's status.
Four MA trend line were used, fast, medium, long and very long.
We can select MA method with default in Pine Script such as Simple MA, Exponential MA and others depend on best results on each securities.
You can select any type of open order such as MA cross or ATR signals.
You can select open long only, short only or both.
You can select time interval to test the programme.
I also eliminate the noise by determine different of open order and close order to protect un-want position in side way by setting PDI (percent Differential Index)
Finally you can set Long position when long term is bullish of Short position when long term is bearish.
Volatility Pulse with Dynamic ExitVolatility Pulse with Dynamic Exit
Overview
This strategy, Volatility Pulse with Dynamic Exit, is designed to capture impulsive price moves following volatility expansions, while ensuring risk is managed dynamically. It avoids trades during low-volatility periods and uses momentum confirmation to enter positions. Additionally, it features a time-based forced exit system to limit overexposure.
How It Works
A position is opened when the current ATR (Average True Range) significantly exceeds its 20-period average, signaling a volatility expansion.
To confirm the move is directional and not random noise, the strategy checks for momentum: the close must be above/below the close of 20 bars ago.
Low volatility zones are filtered out to avoid chop and poor trade entries.
Upon entry, a dynamic stop-loss is set at 1x ATR, while take-profit is set at 2x ATR, offering a 2:1 reward-to-risk ratio.
If the position remains open for more than 42 bars, it is forcefully closed, even if targets are not hit. This prevents long-lasting, stagnant trades.
Key Features
✅ Volatility-based breakout detection
✅ Momentum confirmation filter
✅ Dynamic stop-loss and take-profit based on real-time ATR
✅ Time-based forced exit (42 bars max holding)
✅ Low-volatility environment filter
✅ Realistic settings with 0.05% commission and slippage included
Parameters Explanation
ATR Length (14): Captures recent volatility over ~2 weeks (14 candles).
Momentum Lookback (20): Ensures meaningful price move confirmation.
Volatility Expansion Threshold (0.5x): Strategy activates only when ATR is at least 50% above its average.
Minimum ATR Filter (1.0x): Avoids entries in tight, compressed market ranges.
Max Holding (42 bars): Trades are closed after 42 bars if no exit signal is triggered.
Risk-Reward (2.0x): Aiming for 2x ATR as profit for every 1x ATR risk.
Originality Note
While volatility and momentum have been used separately in many strategies, this script combines both with a time-based dynamic exit system. This exit rule, combined with an ATR-based filter to exclude low-activity periods, gives the system a practical edge in real-world use. It avoids classic rehashes and integrates real trading constraints for better applicability.
Disclaimer
This is a research-focused trading strategy meant for backtesting and educational purposes. Always use proper risk management and perform due diligence before applying to real funds.
TEST 1STILL LEARNING , this script is a strategi to make a trading bot using mm cross only longs , you can see the simple code
ScalpGuard XRP M1 - Ultra EnhancedXRP Strategy that provide signals when to buy and when to exit the trade. This is not 100% accurate
EURUSD 90% Win Rate Strategy with Risk Control//@version=5
strategy("EURUSD 90% Win Rate Strategy with Risk Control", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
emaFast = ta.ema(close, 5)
emaSlow = ta.ema(close, 20)
rsi = ta.rsi(close, 14)
// Entry Conditions
longCondition = ta.crossover(emaFast, emaSlow) and rsi < 70
shortCondition = ta.crossunder(emaFast, emaSlow) and rsi > 30
// Risk Settings
accountBalance = 5000 // starting capital
maxLossPerTrade = 250 // risk 5% per trade
stopLossPerc = 0.01 // 1% stop loss
takeProfitPerc = 0.02 // 2% take profit
// Calculate position size dynamically
riskPerUnit = close * stopLossPerc
positionSize = maxLossPerTrade / riskPerUnit
// Entry & Exit Logic
if (longCondition)
strategy.entry("Long", strategy.long, qty=positionSize)
strategy.exit("TP/SL Long", from_entry="Long", limit=close * (1 + takeProfitPerc), stop=close * (1 - stopLossPerc))
if (shortCondition)
strategy.entry("Short", strategy.short, qty=positionSize)
strategy.exit("TP/SL Short", from_entry="Short", limit=close * (1 - takeProfitPerc), stop=close * (1 + stopLossPerc))
Money Flow Sentiment Panel StrategyMoney Flow + Fear and Greed Index. Shows institutional money flow using the Fear and greed index
Hammer + EMA Strategy with Tick-based SL/TPWhat This Script Does:
Detects Hammer (bullish reversal) and Inverted Hammer (bearish reversal) patterns
Requires a simple trend context (using 2 bars back)
Confirms price position relative to EMA 50
Applies tick-based SL and TP
Plots buy/sell signals on chart with emoji labels
Ultra Trend Strategy @Peet V.4We use MA trend line to indicated the market's status.
Four MA trend line were used, fast, medium, long and very long.
We can select MA method with default in Pine Script such as Simple MA, Exponential MA and others depend on best results on each securities.
You can select any type of open order such as MA cross or ATR signals.
You can select open long only, short only or both.
You can select time interval to test the programme.
I also eliminate the noise by determine different of open order and close order to protect un-want position in side way by setting PDI (percent Differential Index)
Finally you can set Long position when long term is bullish of Short position when long term is bearish.
SMA CrossoverThis classic script shows buy/sell signals when the short-term SMA crosses the long-term SMA.
SuperTrend Strategy with Trend-Based Exits**SuperTrend Strategy with Trend-Based Exits & Qty Rounding**
**Overview**
This automated strategy uses the SuperTrend indicator to detect trend reversals and manage both entries and exits. Position size is calculated dynamically based on a fixed risk-per-trade in USD and the ATR-based stop-loss distance, then rounded down to a configurable lot step to guarantee valid order sizes on any exchange.
**Key Features**
* **Dynamic Position Sizing**
```
raw_qty = risk_per_trade / |close – SuperTrend|
qty = floor(raw_qty / lot_step) * lot_step
```
* **Trend-Based Entries & Exits**
* On SuperTrend flip: close existing position, then open new in the opposite direction.
* Uses one strategy.close() + one strategy.entry() per reversal—no duplicate signals.
* **Trailing Stop**
* A built-in stop follows the SuperTrend line, locking in profits.
* **Qty Rounding**
* Ensures orders are always integer (or custom-step) sizes:
– Default `lot_step = 1` for whole contracts
– Use `lot_step = 100` for coins like PEPE
– Use `lot_step = 0.01` for ETH/BTC
**Inputs**
| Input | Description | Default |
| -------------------- | -------------------------------------------------------- | :-----: |
| Risk per trade (USD) | Maximum dollar risk per trade | 150 |
| ATR Length | Period for ATR used in SuperTrend | 50 |
| SuperTrend Factor | Multiplier applied to ATR for the SuperTrend calculation | 3.5 |
| Qty step | Minimum tradeable lot size (integer or decimal) | 1.0 |
**Usage & Setup**
1. **Manual Sync (one-time)**
* Check the rounded `qty` and trend direction on your chart.
* Open a matching market order on your exchange to align your real position with the strategy’s virtual position.
2. **Create TradingView Alert**
* Condition: **“Order fills”**
* Message: use your exchange’s required JSON template (e.g. Bybit’s).
* Webhook URL: point to your execution endpoint.
3. **First Reversal**
* The initial `close` signal will sync without sending a webhook.
* Subsequent `close` + `entry` signals will each fire exactly one valid webhook.
4. **Live Trading**
* Strategy will continuously close and reverse positions based on SuperTrend flips, with a SuperTrend-based trailing stop.
**Tips**
* Adjust **ATR Length** & **Factor** per asset volatility:
* Low vol: ATR 30–50, Factor 3.0–4.0
* Mid vol: ATR 50–75, Factor 4.0–4.5
* High vol: ATR 75–120, Factor 4.5–5.0
* If you trade a new coin, screen it quickly with 3–4 proven parameter sets, then refine around the best performer (3×3 grid search).
Add to your Pine Editor, publish as a strategy, set your alert and enjoy automated, volatility-adapted trading!
RSI SwingRadar🧠 Strategy Overview
This long-only strategy combines RSI/MA crossovers with ATR-based risk management, designed for cleaner entries during potential bounce phases — especially tuned for assets like XMR/USDT.
🔍 Core Logic:
- RSI Crossover: Entry occurs when the 14-period RSI crosses above its 14-period SMA, signaling a potential shift in momentum.
- Oversold Filter: The RSI must have been below a user-defined oversold threshold (default: 35) on the previous candle, filtering for bounce setups after a pullback.
- ATR-Based Stop/Target: Stop-loss is placed below the low by a user-adjustable ATR multiplier (default: 0.5×). Take-profit is calculated with a Risk:Reward multiplier (default: 4×).
These elements work in tandem — RSI crossovers give momentum confirmation, oversold filtering adds context, and ATR-based exits adapt to volatility, creating a compact yet responsive strategy.
📉 Visuals:
- Dynamic Bands: The chart displays the active stop-loss, entry price, and take-profit as colored bands for easy visual tracking.
- Clean Overlay: Designed with simplicity — only confirmed setups are shown, keeping noise low.
✅ Suggested Use:
- Works best on XMR/USDT or similarly trending assets.
- Best suited for pullback entries during broader uptrends.
- Adjustable for different volatility conditions and asset behaviors.
⚠️ Disclaimer
- This strategy is for educational and research purposes only.
- It does not guarantee profitability in any market.
- Always backtest, forward-test, and understand your own risk tolerance before using any
strategy in a live environment.
- Past performance is not indicative of future results.
- This script is not financial advice.