Multi-Timeframe RSI-SMA Strategy [EB]Here's a concise English explanation of the optimized multi-timeframe RSI-SMA strategy:
---
### **Strategy Overview**
A dynamic trading system combining **RSI-SMA crossovers** with adaptive parameters for all timeframes (1min to monthly). Automatically adjusts indicators, risk levels, and filters based on chart timeframe.
---
### **Key Features**
1. **Auto-Adjusting Parameters**
- *RSI/SMA Periods*: Shrink on lower TFs (10/20 for 1min), expand on higher TFs (28/200 for monthly)
- *ATR Multipliers*: 1.5x (1min) → 4.5x (monthly)
- *Volume Filters*: 2x avg volume (1min) → 0.5x (monthly)
2. **Entry Conditions**
- RSI crosses above SMA
- Price > 5-period high
- Bullish candle close
- Volume > dynamic threshold
- Uptrend confirmed (Fast EMA > Slow EMA)
3. **Risk Management**
- **Stop Loss**: ATR-based (1.5-4.5x volatility)
- **Take Profit**: 3-10% targets (scales with timeframe)
- Emergency exit on RSI reversal or 5-period low break
4. **Visual Tools**
- Green "LONG" labels below bars
- Red stop-loss line
- Green take-profit line
- Auto-adjusted alert messages
---
### **Timeframe-Specific Optimization**
| TF | RSI | SMA | ATR Mult | TP% |
|---------|------|------|----------|------|
| 1min | 10 | 20 | 1.5x | 3% |
| 1hr | 18 | 50 | 2.5x | 5% |
| Daily | 22 | 100 | 3.5x | 7% |
| Monthly | 28 | 200 | 4.5x | 10% |
---
### **Usage Notes**
1. **Chart Setup**
- Works on any US market instrument (stocks, ETFs, indices)
- Default: 2% risk per trade (adjust via `default_qty_value`)
2. **Best Applications**
- Scalping: 1-15min TFs
- Swing Trading: 4hr-daily TFs
- Position Trading: Weekly-monthly TFs
3. **Critical Filters**
- NYSE market hours for daily+ TFs
- Weekend trading blocked
- Low-volume symbols auto-filtered
---
### **Alert Examples**
```pine
Entry: "TSLA 15min LONG - Entry: $250.50, SL: $245.30, TP: $263.00"
Exit: "AAPL 1hr EXIT - Price: $185.40 (4.2% Profit)"
```
**Backtest Recommendation:** Test across 3 market cycles (bull/bear/sideways) with 0.1% commission simulation before live trading.
This self-adapting system combines technical indicators with volatility-adjusted risk management for consistent cross-TF performance.
波動率
ADR Checker - Breakouts📈 ADR Checker – Breakouts
Gain the edge by knowing when a stock has already made its move.
🚀 What It Does:
The ADR Checker - Breakouts is a powerful yet simple visual tool that helps traders instantly assess whether a stock has already exceeded its Average Daily Range (ADR) for the day — a critical piece of information for momentum traders, swing traders, and especially those following breakout, VCP, or CANSLIM strategies.
Using a customizable on-screen table that always stays in view (regardless of zoom or chart scaling), this script shows:
✅ Average ADR% – 20-day average range, calculated in %.
📊 Today’s Move – how much the stock has moved today.
🔥 % of Avg ADR – today's move relative to its historical average, with live color feedback:
🟥 Over 100% (Overextended – danger!)
🟧 70-100% (Caution zone)
🟩 Below 70% (Room to move)
💡 Why It Matters:
One of the most overlooked mistakes by breakout traders is entering a trade after the move has already happened. If a stock has already moved more than its typical daily range, the odds of further continuation sharply decrease, while the risk of pullback or chop increases.
With this tool, you can:
🚫 Avoid chasing extended breakouts
🎯 Time entries before the real move
⚠️ Quickly assess risk/reward potential intraday
🧠 Example Use Case:
Imagine you're watching a classic VCP setup or flat base breakout. The stock breaks out on volume—but when you check this indicator, you see:
Today’s Move: 7.2%
Avg ADR: 5.3%
% of ADR: 135% 🟥
This tells you the stock is already well beyond its average daily range. While it may continue higher, odds now favor a consolidation, shakeout, or pullback. This is your cue to wait for a better entry or pass entirely.
On the flip side, if the breakout just started and the % of ADR is still under 50%, you have confirmation that there’s room to run — giving you more confidence to enter early.
⚙️ Fully Customizable:
Choose position on screen (top/bottom left/right)
Customize text color, background, and size
🔧 Install This Tool and:
✅ Stop chasing extended moves
✅ Add discipline to your entries
✅ Improve your breakout win rate
Perfect for VCP, CANSLIM, and BREAKOUT traders who want a clean, edge-enhancing visual guide.
[NLR] - SweetSpot ZonesThe Sweet Spot Zone helps you find the best spots to enter a trade, inspired by the " Follow Line Indicator " by Dreadblitz (big thanks to him!). It draws a colored zone on your chart to show ideal entry points, with a Base Point to keep you on track.
What It Does
Blue Zone: Uptrend—buy when the price dips into the zone.
Red Zone: Downtrend—sell or short when the price climbs into the zone.
Base Point: A gray line showing the key level the zone is built on.
How to Use It
Look for the colored zone:
- Blue: Buy if the price dips into the zone but stays above the Base Point.
- Red: Sell/short if the price climbs into the zone but stays below the Base Point.
Important: Avoid entering trade beyond base point - you might see low returns and face big drawdowns.
Confirm with other signals (like RSI/MACD) before entering.
Settings
ATR Length (10): How far back it looks to calculate price movement.
ATR Multiplier (2.5): How wide the zone is.
Error Margin (5.0): Keeps the zone steady during small price wiggles.
Uptrend/Downtrend Colors: Change the zone colors if you’d like!
Credits
Inspired by the "Follow Line Indicator" by Dreadblitz—check out his work for more great ideas!
BTC Volatility ForecastThe "BTC Volatility Forecast" indicator is designed to help traders anticipate Bitcoin (BTC) price volatility by analyzing historical daily price ranges and projecting future fluctuations. Inspired by advanced volatility forecasting studies, it calculates an approximate realized variance using the squared difference between each day’s high and low prices. By applying a simple linear regression model over the past five days of variance data (customizable via the "Lag Period" input), the indicator provides a forecast for the next day’s volatility. This makes it a valuable tool for BTC traders looking to gauge potential market turbulence and adjust their strategies accordingly.
On the chart, the indicator displays two lines: a blue solid line representing the current realized variance and an orange line showing the forecasted volatility for the upcoming day. Traders can set a "Volatility Threshold" to trigger alerts when the forecast exceeds a specified level, aiding in risk management or trade planning. A debug label on the last bar also shows the exact current and forecasted values for quick reference. While this version uses daily data for simplicity, it captures the essence of volatility prediction and can be a starting point for understanding BTC market dynamics—perfect for both novice and experienced traders on TradingView.
RY-TREND MA INDICATORThis indicator is an indicator based on moving averages and atr logic. Stop loss and take profit levels are determined dynamically according to the determined atr level. It is possible to see power signals, money inflow and volume trend, volatility and market trend according to the indicators determined in the two tables on the right.
ThinkTech AI SignalsThink Tech AI Strategy
The Think Tech AI Strategy provides a structured approach to trading by integrating liquidity-based entries, ATR volatility thresholds, and dynamic risk management. This strategy generates buy and sell signals while automatically calculating take profit and stop loss levels, boasting a 64% win rate based on historical data.
Usage
The strategy can be used to identify key breakout and retest opportunities. Liquidity-based zones act as potential accumulation and distribution areas and may serve as future support or resistance levels. Buy and sell zones are identified using liquidity zones and ATR-based filters. Risk management is built-in, automatically calculating take profit and stop loss levels using ATR multipliers. Volume and trend filtering options help confirm directional bias using a 50 EMA and RSI filter. The strategy also allows for session-based trading, limiting trades to key market hours for higher probability setups.
Settings
The risk/reward ratio can be adjusted to define the desired stop loss and take profit calculations. The ATR length and threshold determine ATR-based breakout conditions for dynamic entries. Liquidity period settings allow for customized analysis of price structure for support and resistance zones. Additional trend and RSI filters can be enabled to refine trade signals based on moving averages and momentum conditions. A session filter is included to restrict trade signals to specific market hours.
Style
The strategy includes options to display liquidity lines, showing key support and resistance areas. The first 15-minute candle breakout zones can also be visualized to highlight critical market structure points. A win/loss statistics table is included to track trade performance directly on the chart.
This strategy is intended for descriptive analysis and should be used alongside other confluence factors. Optimize your trading process with Think Tech AI today!
VIDYA Auto-Trading(Reversal Logic)Overview
This script is a dynamic trend-following strategy based on the Variable Index Dynamic Average (VIDYA). It adapts in real time to market volatility, aiming to enhance entry precision and optimize risk management.
---
Strategy Objectives
The objective of this strategy is to respond swiftly to sudden price movements and trend reversals, providing consistent and reliable trade signals. It is designed to be intuitive and efficient for traders of all levels.
---
Key Features
- **Momentum Sensitivity via VIDYA**: Reacts quickly to momentum shifts, allowing for accurate trend-following entries.
- **Volatility-Based ATR Bands**: Automatically adjusts stop levels and entry conditions based on current market volatility.
- **Intuitive Trend Visualization**: Uptrends are marked with green zones, and downtrends with red zones, giving traders clear visual guidance.
---
Trading Rules
- **Long Entry**: Triggered when price crosses above the upper band. Any existing short position is closed.
- **Short Entry**: Triggered when price crosses below the lower band. Any existing long position is closed.
- **Exit Conditions**: Positions are reversed based on signal changes, using a position reversal strategy.
---
Risk Management Parameters
- ETHUSD
- Account Size: $7,000
- Commission: 1 pips per round-trip trade
- Slippage: 1 pip
- Risk per Trade: 10% of account equity (adjustable)
- Number of trades: 262
---
### Trading Parameters & Considerations
- **VIDYA Length**: Defines the trend calculation period (e.g., 14)
- **Momentum Period**: Used for Chande Momentum Oscillator (CMO) calculation
- **ATR Band Distance**: Coefficient to adjust band width (e.g., 1.5)
- **Price Source**: Select from close, open, high, or low
- **Trend Colors**: Customizable colors for uptrend and downtrend zones
- **Display Options**: Toggle visibility of trend lines, bands, and other visuals
---
### Visual Support
Trend zones, entry points, and directional shifts are clearly plotted on the chart. These visual cues enhance the analytical experience and support faster decision-making.
---
### Strategy Improvements & Uniqueness
Inspired by the public work of BigBeluga, this script evolves the original concept with meaningful enhancements. By combining VIDYA and ATR bands, it offers greater adaptability and practical value compared to conventional trend-following strategies.
---
### Summary
This strategy offers a responsive and adaptive approach to trend trading, built on momentum detection and volatility-adjusted risk management. It balances clarity, precision, and practicality—making it a powerful tool for traders seeking reliable trend signals.
Donchian Break - Trend Following CORRECTINGSimple Donchian Channel breakout strategy
Long Only
Simple optional filters of:
- Volatility (using BB height)
- Trend (using MA crossover)
- ADX
Costumizable SL and TP with options like:
- Classical Donchian Channel trailing
- static stop loss
- costumizable trail stop
- Plateau where trailstop kicks in
for any question feel free to ask me
Trapped Traders Order BlocksHow It Works
The Trapped Traders Order Blocks indicator identifies specific price action patterns that suggest large market participants ("big money") have been trapped in losing positions after significant price sweeps, creating potential opportunities for reversals. The indicator detects both "bullish trap blocks" (where bearish traders are trapped) and "bearish trap blocks" (where bullish traders are trapped). Here’s the step-by-step process for each:
Bullish Trap Block (Bears Trapped):
A bearish candle (Candle A) must sweep the high of the previous candle (Candle B), meaning its high exceeds the high of the prior candle.
This bearish candle must have a longer upper wick than its lower wick, indicating rejection of higher prices.
The candle must not be a doji (i.e., it must have a significant body, defined as the body being at least 10% of the candle's range).
The next candle (Candle C) must close above the body of the bearish candle (Candle A), suggesting that price has immediately moved against the bearish sweep, potentially trapping bearish traders who entered short positions expecting a downward move.
The body of the bearish candle (Candle A) is marked as a "bullish trap block." A box is drawn around this candle's body, and a label ("Bullish Trap") is placed below it.
Bearish Trap Block (Bulls Trapped):
A bullish candle (Candle A) must sweep the low of the previous candle (Candle B), meaning its low is below the low of the prior candle.
This bullish candle must have a longer lower wick than its upper wick, indicating rejection of lower prices.
The candle must not be a doji.
The next candle (Candle C) must close below the body of the bullish candle (Candle A), suggesting that price has immediately moved against the bullish sweep, potentially trapping bullish traders who entered long positions expecting an upward move.
The body of the bullish candle (Candle A) is marked as a "bearish trap block." A box is drawn around this candle's body, and a label ("Bearish Trap") is placed above it.
Dynamic Box Extension:
For both bullish and bearish trap blocks, the box extends dynamically to the current bar unless it exceeds a user-defined age (default is 52 bars), at which point it stops at the maximum age.
Sweep Detection:
Bullish Sweep (of any trap block, bullish or bearish):
The current candle's open is above the top of the box.
The low is below the top of the box.
The close is above the top of the box.
The lower wick is longer than the upper wick (indicating rejection of lower prices).
The close is above 50% of the candle's range (ensuring a strong bullish bias).
When a bullish sweep occurs, a label ("Bullish Sweep") is placed at the low of the candle, pointing upward, and an alert is triggered.
Bearish Sweep (of any trap block, bullish or bearish):
The current candle's open is below the bottom of the box.
The high is above the bottom of the box.
The close is below the bottom of the box.
The upper wick is longer than the lower wick (indicating rejection of higher prices).
The close is below 50% of the candle's range (ensuring a strong bearish bias).
When a bearish sweep occurs, a label ("Bearish Sweep") is placed at the high of the candle, pointing downward, and an alert is triggered.
When to Be Used
The Trapped Traders Order Blocks indicator is best used in the following scenarios:
Reversal Trading:
Use this indicator to identify potential reversal points in the market. Bullish trap blocks suggest that trapped bears may unwind their short positions, leading to a potential bullish move. Bearish trap blocks suggest that trapped bulls may unwind their long positions, leading to a potential bearish move.
Look for sweeps of these blocks as confirmation of a directional move. A bullish sweep indicates a potential upward move, while a bearish sweep indicates a potential downward move.
Range-Bound Markets:
In sideways or ranging markets, trapped blocks can highlight key levels where large players have been caught off-guard. These levels often act as support or resistance, and a sweep of the block can signal a breakout or continuation in the direction of the sweep.
Confluence with Other Indicators:
Combine the trapped blocks with other technical analysis tools, such as support/resistance levels, Fibonacci retracements, or volume analysis, to increase the probability of a successful trade. For example, a bullish trap block near a strong support level with a bullish sweep can provide a high-probability setup for a long position, while a bearish trap block near a strong resistance level with a bearish sweep can signal a short opportunity.
Timeframes:
The indicator is most effective on higher timeframes such as 1-day (1D), 1-week (1W), and 1-month (1M) charts. These timeframes are more likely to capture significant moves involving large market participants, reducing noise and false signals compared to lower timeframes. While it can be used on lower timeframes (e.g., 1-hour or 4-hour), the signals may be less reliable due to increased market noise.
Logic Behind It
The logic behind the Trapped Traders Order Blocks indicator is rooted in market psychology and the behavior of large market participants ("big money"). When a large sweep candle occurs where price spikes in one direction but then quickly reverses it often indicates that traders have entered positions in the direction of the sweep, expecting a continuation. However, if the price immediately moves against them, these traders are now trapped in losing positions.
Bullish Trap Block (Bears Trapped):
A large bearish sweep candle (spiking upward but closing lower) suggests that bearish traders (bears) have entered short positions at the top of the move, expecting a downward continuation. If the next candle closes above the bearish candle's body, these bears are trapped in losing positions.
The body of the bearish candle becomes a "bullish trap block" because the trapped bears are likely to have placed their stop-loss orders or break-even exit orders just above the high of the sweep candle or within the body of the candle. As price revisits this level in the future, these trapped traders may attempt to unwind their positions by buying back their shorts, which can drive the price higher. This unwinding process often attracts new buyers, leading to a potential bullish reversal or continuation.
The bullish sweep conditions (e.g., close > box top, longer lower wick, and close above 50% of the range) ensure that the price action at the block level shows strong bullish momentum and rejection of lower prices, confirming the potential for a move higher.
Bearish Trap Block (Bulls Trapped):
A large bullish sweep candle (spiking downward but closing higher) suggests that bullish traders (bulls) have entered long positions at the bottom of the move, expecting an upward continuation. If the next candle closes below the bullish candle's body, these bulls are trapped in losing positions.
The body of the bullish candle becomes a "bearish trap block" because the trapped bulls are likely to have placed their stop-loss orders or break-even exit orders just below the low of the sweep candle or within the body of the candle. As price revisits this level in the future, these trapped traders may attempt to unwind their positions by selling their longs, which can drive the price lower. This unwinding process often attracts new sellers, leading to a potential bearish reversal or continuation.
The bearish sweep conditions (e.g., close < box bottom, longer upper wick, and close below 50% of the range) ensure that the price action at the block level shows strong bearish momentum and rejection of higher prices, confirming the potential for a move lower.
Summary
Bullish Trap Block: Occurs when bears get trapped after a bearish sweep candle is immediately followed by a bullish candle, indicating a potential reversal as trapped bears may unwind their positions.
Bearish Trap Block: Occurs when bulls get trapped after a bullish sweep candle is immediately followed by a bearish candle, indicating a potential bearish reversal.
Use Case: Ideal for identifying reversal opportunities, especially in range-bound markets or at key support/resistance levels on higher timeframes like 1D, 1W, and 1M, and can be combined with other indicators for confluence.
Logic: Large sweep candles followed by an immediate reversal suggest that big money has been trapped, and these traders may unwind their positions at break-even in the near future, driving price in the opposite direction of their initial trade.
This indicator provides a visual and actionable way to identify these trapped trader scenarios, with customizable settings for box display, sweep visuals, and alerts to help traders capitalize on these opportunities, particularly on higher timeframes where the signals are most reliable.
Hourly Volatility Explorer📊 Hourly Volatility Explorer: Master The Market's Pulse
Unlock the hidden rhythms of price action with this sophisticated volatility analysis tool. The Hourly Volatility Explorer reveals the most potent trading hours across multiple time zones, giving you a strategic edge in timing your trades.
🌟 Key Features:
⏰ Multi-Timezone Analysis
• GMT (UTC+0)
• EST (UTC-5) - New York
• BST (UTC+1) - London
• JST (UTC+9) - Tokyo
• AEST (UTC+10) - Sydney
Perfect for tracking major market sessions and their overlaps!
📈 Dynamic Visualization
• Color-gradient hourly bars for instant pattern recognition
• Real-time volatility comparison
• Interactive data table with comprehensive statistics
• Automatic highlighting of peak volatility periods
🎯 Strategic Applications:
Day Trading:
• Identify optimal trading windows
• Avoid low-liquidity periods
• Capitalize on session overlaps
• Fine-tune entry/exit timing
Risk Management:
• Set appropriate stop losses based on hourly volatility
• Adjust position sizes for different market hours
• Optimize risk-reward ratios
• Plan around high-impact hours
Global Market Analysis:
• Track volatility across all major sessions
• Spot institutional trading patterns
• Identify quiet vs. active periods
• Monitor 24/7 market dynamics
💡 Perfect For:
• Forex traders navigating global sessions
• Crypto traders in 24/7 markets
• Day traders optimizing execution times
• Algorithmic traders fine-tuning strategies
• Risk managers calibrating exposure
📊 Advanced Features:
• Rolling 3-month analysis for reliable patterns
• Precise pip movement calculations
• Sample size tracking for statistical validity
• Real-time current hour comparison
• Color-coded visual system for instant insights
⚡ Pro Trading Tips:
• Use during major session overlaps for maximum opportunity
• Compare patterns across different instruments
• Combine with volume analysis for deeper insights
• Track seasonal variations in hourly patterns
• Build trading schedules around peak hours
🎓 Educational Value:
• Understand market microstructure
• Learn global market dynamics
• Master timezone relationships
• Develop timing intuition
🛠️ Customization:
• Adjustable lookback period
• Flexible pip multiplier
• Multiple timezone options
• Visual preference settings
Whether you're scalping the 1-minute chart or managing longer-term positions, the Hourly Volatility Explorer provides the precise timing intelligence needed for today's global markets.
Transform your trading schedule from guesswork to science. Know exactly when markets move, why they move, and how to position yourself for maximum opportunity.
#TechnicalAnalysis #Trading #Volatility #MarketTiming #DayTrading #Forex #Crypto #TradingView #PineScript #MarketAnalysis #TradingStrategy #RiskManagement #GlobalMarkets #FinancialMarkets #TradingTools #MarketStructure #PriceAction #Scalping #SwingTrading #AlgoTrading
Percentage ChangeThis is a very simple script. It calculations the percentage the stocks price has changed with 3 different metrics over the configured lookback period.
- Close to Open: calculates the percentage difference between the opening bar at the beginning of the lookback period to the closing current bar.
- Low to High: calculates the percentage difference between the lowest low to the highest high over the period.
- High to Low: calculates the percentage difference between the highest high to the lowest low over the period.
This indicator is used to call out especially volatile periods allowing traders to target spikes up or down.
Nef33 Forex & Crypto Trading Signals PRO
1. Understanding the Indicator's Context
The indicator generates signals based on confluence (trend, volume, key zones, etc.), but it does not include predefined SL or TP levels. To establish them, we must:
Use dynamic or static support/resistance levels already present in the script.
Incorporate volatility (such as ATR) to adjust the levels based on market conditions.
Define a risk/reward ratio (e.g., 1:2).
2. Options for Determining SL and TP
Below, I provide several ideas based on the tools available in the script:
Stop Loss (SL)
The SL should protect you from adverse movements. You can base it on:
ATR (Volatility): Use the smoothed ATR (atr_smooth) multiplied by a factor (e.g., 1.5 or 2) to set a dynamic SL.
Buy: SL = Entry Price - (atr_smooth * atr_mult).
Sell: SL = Entry Price + (atr_smooth * atr_mult).
Key Zones: Place the SL below a support (for buys) or above a resistance (for sells), using Order Blocks, Fair Value Gaps, or Liquidity Zones.
Buy: SL below the nearest ob_lows or fvg_lows.
Sell: SL above the nearest ob_highs or fvg_highs.
VWAP: Use the daily VWAP (vwap_day) as a critical level.
Buy: SL below vwap_day.
Sell: SL above vwap_day.
Take Profit (TP)
The TP should maximize profits. You can base it on:
Risk/Reward Ratio: Multiply the SL distance by a factor (e.g., 2 or 3).
Buy: TP = Entry Price + (SL Distance * 2).
Sell: TP = Entry Price - (SL Distance * 2).
Key Zones: Target the next resistance (for buys) or support (for sells).
Buy: TP at the next ob_highs, fvg_highs, or liq_zone_high.
Sell: TP at the next ob_lows, fvg_lows, or liq_zone_low.
Ichimoku: Use the cloud levels (Senkou Span A/B) as targets.
Buy: TP at senkou_span_a or senkou_span_b (whichever is higher).
Sell: TP at senkou_span_a or senkou_span_b (whichever is lower).
3. Practical Implementation
Since the script does not automatically draw SL/TP, you can:
Calculate them manually: Observe the chart and use the levels mentioned.
Modify the code: Add SL/TP as labels (label.new) at the moment of the signal.
Here’s an example of how to modify the code to display SL and TP based on ATR with a 1:2 risk/reward ratio:
Modified Code (Signals Section)
Find the lines where the signals (trade_buy and trade_sell) are generated and add the following:
pinescript
// Calculate SL and TP based on ATR
atr_sl_mult = 1.5 // Multiplier for SL
atr_tp_mult = 3.0 // Multiplier for TP (1:2 ratio)
sl_distance = atr_smooth * atr_sl_mult
tp_distance = atr_smooth * atr_tp_mult
if trade_buy
entry_price = close
sl_price = entry_price - sl_distance
tp_price = entry_price + tp_distance
label.new(bar_index, low, "Buy: " + str.tostring(math.round(bull_conditions, 1)), color=color.green, textcolor=color.white, style=label.style_label_up, size=size.tiny)
label.new(bar_index, sl_price, "SL: " + str.tostring(math.round(sl_price, 2)), color=color.red, textcolor=color.white, style=label.style_label_down, size=size.tiny)
label.new(bar_index, tp_price, "TP: " + str.tostring(math.round(tp_price, 2)), color=color.blue, textcolor=color.white, style=label.style_label_up, size=size.tiny)
if trade_sell
entry_price = close
sl_price = entry_price + sl_distance
tp_price = entry_price - tp_distance
label.new(bar_index, high, "Sell: " + str.tostring(math.round(bear_conditions, 1)), color=color.red, textcolor=color.white, style=label.style_label_down, size=size.tiny)
label.new(bar_index, sl_price, "SL: " + str.tostring(math.round(sl_price, 2)), color=color.red, textcolor=color.white, style=label.style_label_up, size=size.tiny)
label.new(bar_index, tp_price, "TP: " + str.tostring(math.round(tp_price, 2)), color=color.blue, textcolor=color.white, style=label.style_label_down, size=size.tiny)
Code Explanation
SL: Calculated by subtracting/adding sl_distance to the entry price (close) depending on whether it’s a buy or sell.
TP: Calculated with a double distance (tp_distance) for a 1:2 risk/reward ratio.
Visualization: Labels are added to the chart to display SL (red) and TP (blue).
4. Practical Strategy Without Modifying the Code
If you don’t want to modify the script, follow these steps manually:
Entry: Take the trade_buy or trade_sell signal.
SL: Check the smoothed ATR (atr_smooth) on the chart or calculate a fixed level (e.g., 1.5 times the ATR). Also, review nearby key zones (OB, FVG, VWAP).
TP: Define a target based on the next key zone or multiply the SL distance by 2 or 3.
Example:
Buy at 100, ATR = 2.
SL = 100 - (2 * 1.5) = 97.
TP = 100 + (2 * 3) = 106.
5. Recommendations
Test in Demo: Apply this logic in a demo account to adjust the multipliers (atr_sl_mult, atr_tp_mult) based on the market (forex or crypto).
Combine with Zones: If the ATR-based SL is too wide, use the nearest OB or FVG as a reference.
Risk/Reward Ratio: Adjust the TP based on your tolerance (1:1, 1:2, 1:3)
Market Cap, Relative Volume & RSI with EMAs10 21 51 emas
with relative strength
market cap
rsi
sector
edwins
ULTIMATIVES BEAST (LSTM + XGBoost + GARCH + Trend & Momentum)
🧠 THE BEAST – Autonomous Multi-Layer AI for Real-Time Trade Decisions
🔓 Unleash THE BEAST.
This is not an indicator.
This is an autonomous trading intelligence system – built to make decisions like a professional trader, but without emotion, hesitation, or fatigue.
THE BEAST is aware of its environment.
It doesn’t just calculate signals – it understands setups. It questions momentum. It evaluates risk. It adapts its aggression. It even warns you when it’s unsure.
💡 Think of BEAST as your own embedded AI analyst, running 24/7, evaluating every candle, every pattern, and every micro-shift in the market landscape.
🧠 What makes BEAST unique?
✅ Multi-layer AI Architecture:
CNN + LSTM + Wavelet Analysis + Volatility Clustering + GCN Correlation + Confidence Evaluation + Adaptive Threshold Logic.
This is not scripted logic – this is algorithmic intelligence.
✅ It Thinks Like a Trader:
It combines technical pattern structure with contextual awareness (volatility, trend health, risk/reward alignment).
It filters noise. It ignores setups when the risk outweighs the opportunity.
✅ It Doubts Itself – On Purpose:
BEAST monitors its own confidence in real time.
If it triggers a trade despite missing ideal alignment – it tells you directly:
⚠️ “Entry despite internal hesitation.”
✅ Dynamic Risk Logic:
The system tracks trend clusters, adjusts SuperTrend, evaluates ADX momentum, and even tightens or loosens EntryThresholds based on market strength.
✅ Live Diagnostics Table:
You see everything – confidence %, setup state, entry score, mismatch status, and more.
Nothing is hidden. BEAST explains its every move.
✅ Confirmed Entries Only:
With barstate.isconfirmed, BEAST acts only on closed candles – avoiding flickers or false alerts.
✅ Intelligent Silence:
BEAST doesn’t trigger just because conditions are “close.”
It waits. It stalks. It strikes when conviction crosses the line.
🧪 Core Engine Components:
🧠 LSTM Pattern Layer – for historical structure learning
🎯 CNN Short-Term Classifier – to detect directional micro-setups
🌊 Wavelet Signal Forecast – to confirm or reject entry timing
🔗 GCN Correlation Check – detects inter-market alignment
⚖️ Confidence Score + Entry Mismatch Logic – tells you if BEAST truly believes
📊 Dynamic Entry Thresholds – based on ADX & volatility regimes
🚀 SuperTrend with Adaptive ATR – adjusts based on risk zone
🔍 Setup Status: READY | WAITING | NEUTRAL – full signal context at a glance
⚠️ Mismatch Warning System – when BEAST enters against its own internal logic
📈 How to Use BEAST:
Apply it to any 1H chart (crypto, stocks, FX, indices)
Choose a correlated market for GCN (e.g., COINBASE:BTCUSD)
Monitor the table – trust only ✅ READY entries (unless you trade with beast-like instinct)
Use the Entry Mismatch Warning to gauge grey-zone trades
Let BEAST observe, wait, and strike for you
Don’t trade harder. Trade smarter – with the beast by your side
🔥 Final Words:
“BEAST doesn’t chase markets. It stalks them.”
It doesn’t react emotionally.
It doesn’t repaint.
It doesn’t guess.
It thinks. It doubts. It adapts. It acts.
RSI + Stochastic Reversal Strategy with Signals# RSI + Stochastic Reversal Trading Strategy with Signals
## Description
This strategy is designed to capture market reversals by combining two powerful oscillators: **RSI** (Relative Strength Index) and **Stochastic Oscillator**.
It works best in ranging or sideways markets and aims to enter trades when the market shows signs of overbought or oversold conditions, confirmed by a momentum crossover.
---
## Strategy Logic
- **Long Entry Conditions:**
- RSI is below the oversold threshold (default: 30)
- Stochastic %K crosses above %D (indicating a bullish reversal)
- **Short Entry Conditions:**
- RSI is above the overbought threshold (default: 70)
- Stochastic %K crosses below %D (indicating a bearish reversal)
- **Stop-Loss and Take-Profit:**
- Dynamically set as a percentage of the entry price
- Fully customizable through strategy settings
- **Visual Signals:**
- The strategy plots arrows and text labels on the chart whenever a long or short signal is generated
---
## Recommended Settings
| Parameter | Value |
|----------------------|----------------------------------------|
| RSI Length | 14 |
| RSI Oversold Level | 30 |
| RSI Overbought Level | 70 |
| Stochastic %K Length | 14 |
| Stochastic Smoothing | 3 |
| Stop-Loss | 0.5% of entry price |
| Take-Profit | 1.0% of entry price |
| Position Size | 10% of equity per trade (default) |
| Timeframes | 5m, 15m, 1H (scalping and intraday) |
| Best Assets | BTC, ETH, Gold, Forex major pairs |
---
## Indicators Used
- **RSI (Relative Strength Index)**: detects overbought/oversold conditions
- **Stochastic Oscillator (%K and %D)**: confirms reversal signals
---
## Best Market Conditions
- Sideways or ranging markets
- Assets showing frequent pullbacks and reversals
- Works well in crypto, forex, and metals
---
## Key Features
- Simple and clear long/short signals based on indicator confirmation
- Automatic stop-loss and take-profit management
- Visual arrows and labels on the chart for easy signal recognition
- Suitable for both beginner and advanced traders
---
## Optional Improvements
- Add trailing stop functionality for better risk management
- Combine with volume analysis for stronger confirmation
- Filter trades by major market sessions (e.g., London or New York open)
---
> ✅ Backtested on BTCUSDT and EUR/USD — consistent reversal signals and profitable when combined with proper money management.
EMA/SMA Crossover Strategy with Signals# EMA / SMA Crossover Strategy with Signals
## Description
This is a classic crossover trading strategy using the combination of a fast EMA (Exponential Moving Average) and a slow SMA (Simple Moving Average). The strategy generates clear long and short signals based on the crossing of these two moving averages, making it ideal for both beginner and experienced traders.
---
## Strategy Logic
- **Long Entry:**
- When the fast EMA crosses above the slow SMA, a long position is opened.
- **Short Entry:**
- When the fast EMA crosses below the slow SMA, a short position is opened.
- **Stop-loss and Take-profit:**
- Automatically placed as a percentage of the entry price, adjustable in settings.
- **Visual signals:**
- The strategy draws arrows and text labels on the chart at each entry point for clear signal visualization.
---
## Recommended Settings
| Parameter | Value |
|-------------------|--------------------------------|
| Fast EMA length | 21 |
| Slow SMA length | 50 |
| Stop-loss | 0.5% of entry price |
| Take-profit | 1.0% of entry price |
| Position size | 10% of equity per trade |
| Timeframes | 15 minutes, 1 hour, 4 hours |
| Best Assets | BTC, ETH, SPX500, Gold, Forex |
---
## Indicators Used
- **EMA (21):** Determines short-term price trend
- **SMA (50):** Defines medium-term trend for comparison
- **Crossover signals:** Used for entries
---
## Best Market Conditions
- Trending markets (either uptrend or downtrend)
- Higher volatility for clearer breakouts
- Works well on crypto, indices, and forex pairs
---
## Features
- Fully automated long/short entries
- Automatic stop-loss and take-profit management
- Clean visual signals (arrows and labels) on the chart
- Easy to adjust for different assets or timeframes
---
## Optional Improvements
- Add trailing stop functionality
- Combine with volume filters for stronger confirmation
- Backtest on different timeframes for optimization
---
> ✅ Backtested on BTCUSDT and SPX500 — stable results with proper money management.
Improved Gravity Center for BTCThis script is an advanced adaptation of the Belkhayat Gravity Center indicator tailored for BTC. It leverages ATR-based volatility to dynamically adjust support/resistance bands around a linear regression center, providing more reliable entries and exits. In addition, it incorporates multi-timeframe confirmation, 200 EMA trend filtering, and an RSI momentum check, resulting in a more robust and institutional‐grade approach to trading Bitcoin’s volatile price action.
Chandelier ExitRandSig Multi Indicator is a combination of indicator in one. It has parabolic SAR, Chandelier, Moving Averages cross as well as Bollinger Bands all in one indicator
ATR Percentagethis small indicator show on top right of the screen the % of the ATR instead of number so you can put it in %
Deviation ChannelsIndicator Name: Deviation Channels (Dev Chan)
Why Use This Indicator?
Visualize Volatility Ranges:
The indicator plots Keltner Channels at four levels above and below an average line, letting you easily see how far price has deviated from a typical range. Each “dev” line highlights potential support or resistance during pullbacks or surges.
Color-Coded Clarity:
Each band shifts color intensity depending on whether the current price is trading above or below it, letting you spot breakouts and rejections at a glance. Meanwhile, the Fast SMA (default 10) also changes color – green if price is above, red if below – adding a quick momentum read.
Adjustable Source & Length:
Choose your input source (open, close, ohlc4, or hlc3) and set your Keltner length to suit different asset classes or timeframes. Whether you want a tighter, more reactive channel or a smoother, longer-term reading, the script adapts with minimal effort.
A Simple Trading Approach
Identify Trend with Fast SMA:
If the Fast SMA (default length 10) is green (price above it), treat that as a bullish environment. If it’s red (price below), favor bearish or neutral stances.
Wait for Price to Reach Lower/Upper Deviations:
In a bullish setup (Fast SMA green), watch for price to dip into one of the lower channels (e.g., -1 Dev or -2 Dev). Such pullbacks can become potential “buy the dip” zones if price stabilizes and resumes upward momentum.
Conversely, if the Fast SMA is red, watch for price to test the upper channels (1 Dev or 2 Dev). That might be a short opportunity or a place to close out any remaining longs before a deeper correction.
Manage Risk with Channel Levels:
Place stop-losses just beyond the next “dev” band to protect against volatility. For example, if you enter on a bounce at -1 Dev, consider placing a stop near -2 Dev or -3 Dev, depending on your risk tolerance.
Take Profits Gradually:
In an uptrend, you might scale out of positions as price moves toward higher lines (e.g., 1 Dev or 2 Dev). Conversely, if price fails to hold above the Fast SMA or repeatedly closes below a key band, it might be time to exit.
Disclaimer: No single indicator is foolproof. Always combine with sound risk management, observe multiple timeframes, and consider fundamental factors before making trading decisions. Experiment with the Keltner length and Fast SMA fastLength to find the sweet spot for your market and time horizon.
Bollinger Bands Breakout Strategy// ©
// Bollinger Bands Breakout Strategy
// 🔹 Strategy Overview:
// This strategy trades **breakouts** using Bollinger Bands. It enters long when the price breaks above the upper band and enters short when the price breaks below the lower band. The strategy includes a take profit and stop loss mechanism to manage risk.
// 📌 When to BUY (Long Entry):
// ✅ Price **closes above the upper Bollinger Band** (breakout signal).
// ✅ Confirms a strong bullish trend, suitable for trending markets.
// 📌 When to SELL (Short Entry):
// ✅ Price **closes below the lower Bollinger Band** (breakdown signal).
// ✅ Indicates a strong bearish trend, ideal for volatile conditions.
// ⚠️ When to AVOID Trading:
// ❌ Sideways or ranging markets where price frequently **touches bands but reverses**.
// ❌ When volatility is **too low**, leading to false breakouts.
// ❌ During major news events that cause **sudden price spikes**.
// 🔧 Additional Considerations:
// - Best used in **trending markets** to avoid false breakouts.
// - Can be improved by adding **volume filters or trend confirmation (e.g., moving averages, RSI)**.
// - Adjust **Bollinger Bands settings (length & multiplier)** based on asset volatility.
// 🚀 Optimize this strategy by testing different timeframes & market conditions before live trading!
Adaptive Bollinger BandsAdaptive Bollinger Bands
This indicator displays Bollinger Bands with parameters that dynamically adjust based on market volatility. Unlike standard Bollinger Bands with fixed parameters, this version adaptively modifies both the period and standard deviation multiplier in real-time based on measured market conditions.
Key Features
Dynamic adjustment of period and standard deviation based on normalized volatility
Color-coded visualization of current volatility regime (expanding, normal, contracting)
Integration with Keltner Channels for band refinement
Bandwidth analysis for volatility regime identification
Optional on-chart parameter labels showing current settings
Band cross alerts and visual markers
Volatility Visualization
The indicator uses color-coding to display different volatility regimes:
Red: Expanding volatility regime (higher measured volatility)
Blue: Normal volatility regime (average measurements)
Green: Contracting volatility regime (lower measured volatility)
Technical Information
The indicator calculates volatility by analyzing price returns over a configurable lookback period (default 50 bars). The standard deviation of returns is normalized against historical extremes to create an adaptive scaling factor.
Band adaptation occurs through two primary mechanisms:
1. Period adjustment: Higher volatility uses shorter periods (more responsive), while lower volatility uses longer periods (more stable)
2. Standard deviation multiplier adjustment: Higher volatility increases the multiplier (wider bands), while lower volatility decreases it (tighter bands)
The middle band uses a simple moving average with the adaptive period. Additional refinement occurs through Keltner Channel integration, which can tighten bands when contained within Keltner boundaries.
Volatility regimes are determined by analyzing Bollinger Bandwidth relative to its recent history, providing contextual information about the current market state.
Settings Customization
The indicator provides extensive customization options:
- Base parameters (period and standard deviation)
- Adaptive range limits (min/max period and standard deviation)
- Keltner Channel parameters for band refinement
- Bandwidth analysis settings
- Display options for visual elements
Limitations and Considerations
All technical indicators have inherent limitations and should not be used in isolation
Past performance does not guarantee future results
The indicator requires sufficient historical data for proper volatility normalization
Smaller timeframes may produce more noise in the adaptive calculations
Parameters may require adjustment for different markets and trading styles
Band crosses are not trading signals on their own and should be evaluated with other factors
This indicator is designed to provide objective information about market volatility conditions and potential support/resistance zones. Always combine with other analysis methods within a comprehensive trading approach.
FlexATRFlexATR: A Dynamic Multi-Timeframe Trading Strategy
Overview: FlexATR is a versatile trading strategy that dynamically adapts its key parameters based on the timeframe being used. It combines technical signals from exponential moving averages (EMAs) and the Relative Strength Index (RSI) with volatility-based risk management via the Average True Range (ATR). This approach helps filter out false signals while adjusting to varying market conditions — whether you’re trading on a daily chart, intraday charts (30m, 60m, or 5m), or even on higher timeframes like the 4-hour or weekly charts.
How It Works:
Multi-Timeframe Parameter Adaptation: FlexATR is designed to automatically adjust its indicator settings depending on the timeframe:
Daily and Weekly: On higher timeframes, the strategy uses longer periods for the fast and slow EMAs and standard periods for RSI and ATR to capture more meaningful trend confirmations while minimizing noise.
Intraday (e.g., 30m, 60m, 5m, 4h): The parameters are converted from “days” into the corresponding number of bars. For instance, on a 30-minute chart, a “day” might equal 48 bars. The preset values for a 30-minute chart have been slightly reduced (e.g., a fast EMA is set at 0.35 days instead of 0.4) to improve reactivity while maintaining robust filtering.
Signal Generation:
Entry Signals: The strategy enters long positions when the fast EMA crosses above the slow EMA and the RSI is above 50, and it enters short positions when the fast EMA crosses below the slow EMA with the RSI below 50. This dual confirmation helps ensure that signals are reliable.
Risk Management: The ATR is used to compute dynamic levels for stop loss and profit target:
Stop Loss: For a long position, the stop loss is placed at Price - (ATR × Stop Loss Multiplier). For a short position, it is at Price + (ATR × Stop Loss Multiplier).
Profit Target: The profit target is similarly set using the ATR multiplied by a designated profit multiplier.
Dynamic Trailing Stop: FlexATR further incorporates a dynamic trailing stop (if enabled) that adjusts according to the ATR. This trailing stop follows favorable price movements at a distance defined by a multiplier, locking in gains as the trend develops. The use of a trailing stop helps protect profits without requiring a fixed exit point.
Capital Allocation: Each trade is sized at 10% of the total equity. This percentage-based position sizing allows the strategy to scale with your account size. While the current setup assumes no leverage (a 1:1 exposure), the inherent design of the strategy means you can adjust the leverage externally if desired, with risk metrics scaling accordingly.
Visual Representation: For clarity and accessibility (especially for those with color vision deficiencies), FlexATR employs a color-blind friendly palette (the Okabe-Ito palette):
EMA Fast: Displayed in blue.
EMA Slow: Displayed in orange.
Stop Loss Levels: Rendered in vermilion.
Profit Target Levels: Shown in a distinct azzurro (light blue).
Benefits and Considerations:
Reliability: By requiring both EMA crossovers and an RSI confirmation, FlexATR filters out a significant amount of market noise, which reduces false signals at the expense of some delayed entries.
Adaptability: The automatic conversion of “day-based” parameters into bar counts for intraday charts means the strategy remains consistent across different timeframes.
Risk Management: Using the ATR for both fixed and trailing stops allows the strategy to adapt to changing market volatility, helping to protect your capital.
Flexibility: The strategy’s inputs are customizable via the input panel, allowing traders to fine-tune the parameters for different assets or market conditions.
Conclusion: FlexATR is designed as a balanced, adaptive strategy that emphasizes reliability and robust risk management across a variety of timeframes. While it may sometimes enter trades slightly later due to its filtering mechanism, its focus on confirming trends helps reduce the likelihood of false signals. This makes it particularly attractive for traders who prioritize a disciplined, multi-timeframe approach to capturing market trends.