LevelUp^ Pullback Screener ProPullbacks are often considered high-probability entry points within trending markets. This screener helps streamline the search for such opportunities using trend analysis through customizable moving averages, price action and volatility filters with ATR (Average True Range).
🔹 Why Trade Pullbacks
Pullbacks represent temporary counter-moves within a broader trend. Instead of chasing extended moves, traders can enter at more favorable price levels.
Pros
▪ Improved Entry Prices : Entering closer to support or resistance levels often provides a better risk/reward ratio.
▪ Trend Alignment : Pullbacks occur within established trends, allowing traders to participate in potential continuation moves.
▪ Defined Risk Levels : Key moving averages and recent swing points can be used to set stop-loss orders.
Cons
▪ Not all pullbacks resume the trend; some signal reversals.
▪ Price can temporarily overshoot levels, creating whipsaws.
▪ Pullback strategies work best in trending markets and may underperform in sideways conditions.
🔹 Custom Feature : Require Lower Low
The optional requirement for a lower low may help confirm that an actual pullback is occurring, rather than just sideways chop or continuation strength.
Stricter Definition of a Pullback
▪ A pullback implies some retracement against the prevailing trend.
▪ By requiring a lower low, you ensure price is genuinely pulling back, not just consolidating at the highs.
Avoids False Triggers
▪ Without this filter, you might catch stocks that simply paused for a bar (small doji, tiny inside candle) but haven’t really pulled back.
▪ The lower low condition filters for bars where sellers actually pushed price down.
Improves Entry Timing
▪ Many traders want to enter as pullbacks are maturing, not while price is still pushing higher.
▪ A lower low shows some weakness that may soon transition into support, giving a cleaner “buy-the-dip” opportunity.
Psychological Confirmation
▪ From a trader psychology standpoint, a lower low indicates that at least some holders are taking profits and that short-term participants are testing the trend.
▪ This is often the moment when strong hands step in if the trend is healthy.
🔹 Custom Feature : Specify Closing Range
Closing range % is another optional feature that can be very useful when scanning for pullbacks as it helps separate healthy retracements from weak price action.
Shows Buyer Support Within the Bar
▪ Closing near the top of the day’s range (e.g., above 60–70%) signals that even though price pulled back intraday, buyers stepped in and pushed it higher by the close.
▪ That strength is a good sign the pullback may be stabilizing.
Filters Out Weak Pullbacks
▪ If a stock closes near the low of the day, sellers are still in control — the “dip” might not be done.
▪ By requiring a higher Closing Range, you filter out setups that may keep falling.
Timing Advantage
▪ Many traders prefer entering when a pullback shows early signs of turning.
▪ A strong closing range is an objective way to catch that transition, often right before the next leg higher.
Psychological Read
▪ Closing strength suggests demand is stepping back in — traders and investors still want exposure to the trend.
▪ It reflects confidence, whereas weak closes show hesitation or distribution.
🔹 Custom Feature : ATR % Filter
Specifying an ATR (Average True Range) filter is helpful when scanning for stocks because it normalizes volatility relative to price, enabling traders to identify stocks with suitable price movement for their strategy while managing volatility by filtering out excessively erratic stocks (high ATR %) or those with insufficient movement (low ATR %), thus aligning with risk tolerance and optimizing position sizing and stop-loss placement.
Focus on Stocks With Tradable Volatility
▪ ATR measures how much a stock typically moves in a day.
▪ By setting a minimum ATR, you avoid slow, low-volatility stocks that don’t move enough to create good opportunities.
Filters Out “Too Wild” Stocks
▪ Extremely high ATR stocks can be erratic, difficult to size properly, and risky to trade.
▪ By specifying a maximum ATR (or ATR % relative to price), you can avoid setups where risk is too unpredictable.
Normalizes Price Differences
▪ A $20 stock and a $200 stock can’t be compared just on raw dollar moves.
▪ ATR (or ATR as a % of price) gives a volatility-adjusted way to compare them, so your screen is consistent across all price levels.
Improves Entry & Stop Placement
▪ Knowing that a stock typically moves, say, 2% daily versus 0.5% daily helps you set realistic stops and targets.
▪ Screening for stocks with ATR in your preferred range means trades will line up better with your risk/reward model.
Psychology
▪ ATR captures behavior. Stocks with healthy, steady volatility attract active traders because they offer movement without chaos.
▪ Too quiet = boring, too wild = stressful. ATR filters help you stay in the sweet spot.
🔹 Customization Options
With extensive customization options, traders can fine-tune pullback scans by adjusting moving averages, proximity to those averages, bar structure, closing range strength, and volatility filters. This flexibility supports different trading styles, timeframes, and risk preferences.
Configurable Moving Averages
Scanning is optimized for daily and weekly timeframes.
▪ Select up to three moving average lengths and types (e.g. 20 EMA, 50 SMA, 200 SMA) for daily and weekly timeframes.
▪ Tailor scans to different trading styles:
• Short-term traders may prefer faster averages (e.g. 10–20 EMA).
• Swing traders often use medium-term averages (e.g. 50 SMA).
• Long-term investors may focus on slower averages (e.g. 200 SMA).
Pullback Within X % of Moving Average
▪ Specify the total range of a pullback using % above and % below a moving average. The bar low is used for this comparison.
▪ For example, .5% above and .5% below a moving average, giving price a total range of 1%. If the low is outside the range, it's not considered a valid pullback.
Require Low Lower
▪ Optional setting to require that the current bar to be a lower low compared to the prior bar.
▪ See above section for more information.
Closing Range %
▪ Specify a closing range to help you spot pullbacks where buyers are reasserting control.
▪ Define how close the closing price is to the daily high or low.
▪ See above section for more information.
ATR % Filter
▪ Incorporates volatility by measuring price movement relative to Average True Range (ATR).
▪ Options include:
• Above a specified ATR %
• Below a specified ATR %
• Within a specified ATR range
This options enables filtering for setups that align with volatility preferences and risk tolerance.
🔹 Trader Psychology
Pullback trading requires both patience and discipline. Understanding the psychology behind it can improve decision-making:
▪ Patience Over FOMO: Traders must resist the urge to chase extended moves. Waiting for a pullback often leads to better entries.
▪ Confidence in the Trend : Entering during a pullback can feel counterintuitive, as price is moving against the trend in the short term. Trusting the larger trend is essential.
▪ Managing Doubt: False pullbacks and whipsaws can create frustration. Keeping risk small and consistent helps maintain emotional balance.
▪ Discipline in Risk Control: Stops should be respected. Moving or ignoring stop-loss levels during a pullback can turn a small loss into a large one.
Successful pullback traders focus on process over outcome , knowing that consistency across many trades matters more than the result of any single trade.
🔹 True Market Leader Pullbacks
▪ GEV: Pullback to 10-EMA and 21-EMA
▪ NVDA: Pullback to 50-SMA
🔹 Best Practices
▪ Trend First : Pullbacks are most effective when traded in the direction of the larger trend. Confirm trend strength before acting on screener results.
▪ Combine Filters : Use moving average, closing range, and ATR filters together for higher-quality setups.
▪ Chart Review : Always verify results visually before trading.
▪ Risk Management : Consider swing lows (uptrends) or highs (downtrends) to define stop-loss placement.
🔹 Summary
The Pullback Screener helps traders quickly locate potential opportunities where price retraces toward key moving averages within an ongoing trend. With customizable filters for moving averages, closing range, and ATR, the screener adapts to a wide range of strategies and risk profiles.
Pullback trading offers favorable entries and defined risk, but success requires patience, discipline, and confirmation of trend conditions.
Rata-Rata Pergerakan / Moving Averages
Perfect buy & sell signal with stop lossThe script is highly customisable. Provide entry & exit signals. The red and blue triangles provide potential entry for short & long trades and the black line for Stop loss. The signals are generated using Ehlers trading concept , Price action and opening range breakouts. Also it shows candle with highlighted colours where big volume and big candle than average is formed for further analysis. The red and green lines are possible support and resistances and yellow dotted lines are major support and resistances calculated as per W D Gann concepts.
RSI+MA by RAThis Indicator generates buy and sell signal on the crossover of RSI and MA, HTF RSI is also plotted for HTF trend.
hh ema 2 (No TP)hi, my first strategy. Only btc. it will be idea for btc. and it can use for bot system.
EMA20 Cross Strategy with countertrades and signalsEMA20 Cross Strategy Documentation
Overview
The EMA20 Cross Strategy with Counter-Trades and Instant Signals is a Pine Script (version 6) trading strategy designed for the TradingView platform. It implements an Exponential Moving Average (EMA) crossover system to generate buy and sell signals, with optional trend filtering, session-based trading, instant signal processing, and visual/statistical feedback. The strategy supports counter-trades (closing opposing positions before entering new ones) and operates with a fixed trade size in EUR.
Features
EMA Crossover Mechanism:
Uses a short-term EMA (configurable length, default: 1) and a long-term EMA (default: 20) to detect crossovers.
A buy signal is generated when the short EMA crosses above the long EMA.
A sell signal is generated when the short EMA crosses below the long EMA.
Instant Signals:
If enabled (useInstantSignals), signals are based on the current price crossing the short EMA, rather than waiting for the candle close.
This allows faster trade execution but may increase sensitivity to price fluctuations.
Trend Filter:
Optionally filters trades based on the trend direction (useTrendFilter).
Long trades are allowed only when the short EMA (or price, for instant signals) is above the long EMA.
Short trades are allowed only when the short EMA (or price) is below the long EMA.
Session Filter:
Restricts trading to specific market hours (sessionStart, default: 09:00–17:00) if enabled (useSessionFilter).
Ensures trades occur only during active market sessions, reducing exposure to low-liquidity periods.
Customizable Timeframe:
The EMA calculations can use a higher timeframe (e.g., 5m, 15m, 1H, 4H, 1D, default: 1H) via request.security.
This allows the strategy to base signals on longer-term trends while operating on a shorter-term chart.
Trade Management:
Fixed trade size of €100,000 per trade (tradeAmount), with a maximum quantity cap (maxQty = 10,000) to prevent oversized trades.
Counter-trades: Closes short positions before entering a long position and vice versa.
Trades are executed with a minimum quantity of 1 to ensure valid orders.
Visualization:
EMA Lines: The short EMA is colored based on the last signal (green for buy, red for sell, gray for neutral), and the long EMA is orange.
Signal Markers: Displays buy/sell signals as arrows (triangles) above/below candles if enabled (showSignalShapes).
Background/Candle Coloring: Optionally colors the chart background or candles green (bullish) or red (bearish) based on the trend (useColoredBars).
Statistics Display:
If enabled (useStats), a label on the chart shows:
Total closed trades
Open trades
Win rate (%)
Number of winning/losing trades
Profit factor (gross profit / gross loss)
Net profit
Maximum drawdown
Configuration Inputs
EMA Short Length (emaLength): Length of the short-term EMA (default: 1).
Trend EMA Length (trendLength): Length of the long-term EMA (default: 20).
Enable Trend Filter (useTrendFilter): Toggles trend-based filtering (default: true).
Color Candles (useColoredBars): Colors candles instead of the background (default: true).
Enable Session Filter (useSessionFilter): Restricts trading to specified hours (default: false).
Trading Session (sessionStart): Defines trading hours (default: 09:00–17:00).
Show Statistics (useStats): Displays performance stats on the chart (default: true).
Show Signal Arrows (showSignalShapes): Displays buy/sell signals as arrows (default: true).
Use Instant Signals (useInstantSignals): Generates signals based on live price action (default: false).
EMA Timeframe (emaTimeframe): Timeframe for EMA calculations (options: 5m, 15m, 1H, 4H, 1D; default: 1H).
Strategy Logic
Signal Generation:
Standard Mode: Signals are based on EMA crossovers (short EMA crossing long EMA) at candle close.
Instant Mode: Signals are based on the current price crossing the short EMA, enabling faster reactions.
Trade Execution:
On a buy signal, closes any short position and opens a long position.
On a sell signal, closes any long position and opens a short position.
Position size is calculated as the minimum of €100,000 or available equity, divided by the current price, capped at 10,000 units.
Filters:
Trend Filter: Ensures trades align with the trend direction (if enabled).
Session Filter: Restricts trades to user-defined market hours (if enabled).
Visual Feedback
EMA Lines: Provide a clear view of the short and long EMAs, with the short EMA’s color reflecting the latest signal.
Signal Arrows: Large green triangles (buy) below candles or red triangles (sell) above candles for easy signal identification.
Chart Coloring: Highlights bullish (green) or bearish (red) trends via background or candle colors.
Statistics Label: Displays key performance metrics in a label above the chart for quick reference.
Usage Notes
Initial Capital: €100,000 (configurable via initial_capital).
Currency: EUR (set via currency).
Order Processing: Orders are processed at candle close (process_orders_on_close=true) unless instant signals are enabled.
Dynamic Requests: Allows dynamic timeframe adjustments for EMA calculations (dynamic_requests=true).
Platform: Designed for TradingView, compatible with any market supported by the platform (e.g., stocks, forex, crypto).
Example Use Case
Scenario: Trading on a 5-minute chart with a 1-hour EMA timeframe, trend filter enabled, and session filter set to 09:00–17:00.
Behavior: The strategy will:
Calculate EMAs on the 1-hour timeframe.
Generate buy signals when the short EMA crosses above the long EMA (and price is above the long EMA).
Generate sell signals when the short EMA crosses below the long EMA (and price is below the long EMA).
Execute trades only during 09:00–17:00.
Display green/red candles and performance stats on the chart.
Limitations
Instant Signals: May lead to more frequent signals, increasing the risk of false positives in volatile markets.
Fixed Trade Size: Does not adjust dynamically based on market conditions beyond equity and max quantity limits.
Session Filter: Simplified and may not account for complex session rules or holidays.
Statistics: Displayed on-chart, which may clutter the view in smaller charts.
Customization
Adjust emaLength and trendLength to suit different market conditions (e.g., shorter for scalping, longer for swing trading).
Toggle useInstantSignals for faster or more stable signal generation.
Modify sessionStart to align with specific market hours.
Disable useStats or showSignalShapes for a cleaner chart.
This strategy is versatile for both manual and automated trading, offering flexibility for various markets and trading styles while providing clear visual and statistical feedback.
Optimized ADX DI CCI Strategy### Key Features:
- Combines ADX, DI+/-, CCI, and RSI for signal generation.
- Supports customizable timeframes for indicators.
- Offers multiple exit conditions (Moving Average cross, ADX change, performance-based stop-loss).
- Tracks and displays trade statistics (e.g., win rate, capital growth, profit factor).
- Visualizes trades with labels and optional background coloring.
- Allows countertrading (opening an opposite trade after closing one).
1. **Indicator Calculation**:
- **ADX and DI+/-**: Calculated using the `ta.dmi` function with user-defined lengths for DI and ADX smoothing.
- **CCI**: Computed using the `ta.cci` function with a configurable source (default: `hlc3`) and length.
- **RSI (optional)**: Calculated using the `ta.rsi` function to filter overbought/oversold conditions.
- **Moving Averages**: Used for CCI signal smoothing and trade exits, with support for SMA, EMA, SMMA (RMA), WMA, and VWMA.
2. **Signal Generation**:
- **Buy Signal**: Triggered when DI+ > DI- (or DI+ crosses over DI-), CCI > MA (or CCI crosses over MA), and optional ADX/RSI filters are satisfied.
- **Sell Signal**: Triggered when DI+ < DI- (or DI- crosses over DI+), CCI < MA (or CCI crosses under MA), and optional ADX/RSI filters are satisfied.
3. **Trade Execution**:
- **Entry**: Long or short trades are opened using `strategy.entry` when signals are detected, provided trading is allowed (`allow_long`/`allow_short`) and equity is positive.
- **Exit**: Trades can be closed based on:
- Opposite signal (if no other exit conditions are used).
- MA cross (price crossing below/above the exit MA for long/short trades).
- ADX percentage change exceeding a threshold.
- Performance-based stop-loss (trade loss exceeding a percentage).
- **Countertrading**: If enabled, closing a trade triggers an opposite trade (e.g., closing a long opens a short).
4. **Visualization**:
- Labels are plotted at trade entries/exits (e.g., "BUY," "SELL," arrows).
- Optional background coloring highlights open trades (green for long, red for short).
- A statistics table displays real-time metrics (e.g., capital, win rates).
5. **Trade Tracking**:
- Tracks the number of long/short trades, wins, and overall performance.
- Monitors equity to prevent trading if it falls to zero.
### 2.3 Key Components
- **Indicator Calculations**: Uses `request.security` to fetch indicator data for the specified timeframe.
- **MA Function**: A custom `ma_func` handles different MA types for CCI and exit conditions.
- **Signal Logic**: Combines crossover/under checks with recent bar windows for flexibility.
- **Exit Conditions**: Multiple configurable exit strategies for risk management.
- **Statistics Table**: Updates dynamically with trade and capital metrics.
## 3. Configuration Options
The script provides extensive customization through input parameters, grouped for clarity in the TradingView settings panel. Below is a detailed breakdown of each setting and its impact.
### 3.1 Strategy Settings (Global)
- **Initial Capital**: Default `10000`. Sets the starting capital for backtesting.
- **Effect**: Determines the base equity for calculating position sizes and performance metrics.
- **Default Quantity Type**: `strategy.percent_of_equity` (50% of equity).
- **Effect**: Controls the size of each trade as a percentage of available equity.
- **Pyramiding**: Default `2`. Allows up to 2 simultaneous trades in the same direction.
- **Effect**: Enables multiple entries if conditions are met, increasing exposure.
- **Commission**: 0.2% per trade.
- **Effect**: Simulates trading fees, reducing net profit in backtesting.
- **Margin**: 100% for long and short trades.
- **Effect**: Assumes no leverage; adjust for margin trading simulations.
- **Calc on Every Tick**: `true`.
- **Effect**: Ensures real-time signal updates for precise execution.
### 3.2 Indicator Settings
- **Indicator Timeframe** (`indicator_timeframe`):
- **Options**: `""` (chart timeframe), `1`, `5`, `15`, `30`, `60`, `240`, `D`, `W`.
- **Default**: `""` (uses chart timeframe).
- **Effect**: Determines the timeframe for ADX, DI, CCI, and RSI calculations. A higher timeframe reduces noise but may delay signals.
### 3.3 ADX & DI Settings
- **DI Length** (`adx_di_len`):
- **Default**: `30`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for calculating DI+ and DI-. Longer periods smooth trends but reduce sensitivity.
- **ADX Smoothing Length** (`adx_smooth_len`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Smooths the ADX calculation. Longer periods produce smoother ADX values.
- **Use ADX Filter** (`use_adx_filter`):
- **Default**: `false`.
- **Effect**: If `true`, requires ADX to exceed the threshold for signals to be valid, filtering out weak trends.
- **ADX Threshold** (`adx_threshold`):
- **Default**: `25`.
- **Range**: Minimum `0`.
- **Effect**: Sets the minimum ADX value for valid signals when the filter is enabled. Higher values restrict trades to stronger trends.
### 3.4 CCI Settings
- **CCI Length** (`cci_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for CCI calculation. Longer periods reduce noise but may lag.
- **CCI Source** (`cci_src`):
- **Default**: `hlc3` (average of high, low, close).
- **Effect**: Defines the price data for CCI. `hlc3` is standard, but users can choose other sources (e.g., `close`).
- **CCI MA Type** (`ma_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the moving average type for CCI signal smoothing. EMA is more responsive; VWMA weights by volume.
- **CCI MA Length** (`ma_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the CCI MA. Longer periods smooth the MA but may delay signals.
### 3.5 RSI Filter Settings
- **Use RSI Filter** (`use_rsi_filter`):
- **Default**: `false`.
- **Effect**: If `true`, applies RSI-based overbought/oversold filters to signals.
- **RSI Length** (`rsi_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for RSI calculation. Longer periods reduce sensitivity.
- **RSI Lower Limit** (`rsi_lower_limit`):
- **Default**: `30`.
- **Range**: `0` to `100`.
- **Effect**: Defines the oversold threshold for buy signals. Lower values allow trades in more extreme conditions.
- **RSI Upper Limit** (`rsi_upper_limit`):
- **Default**: `70`.
- **Range**: `0` to `100`.
- **Effect**: Defines the overbought threshold for sell signals. Higher values allow trades in more extreme conditions.
### 3.6 Signal Settings
- **Cross Window** (`cross_window`):
- **Default**: `0`.
- **Range**: `0` to `5` bars.
- **Effect**: Specifies the lookback period for detecting DI+/- or CCI crosses. `0` requires crosses on the current bar; higher values allow recent crosses, increasing signal frequency.
- **Allow Long Trades** (`allow_long`):
- **Default**: `true`.
- **Effect**: Enables/disables new long trades. If `false`, only closing existing longs is allowed.
- **Allow Short Trades** (`allow_short`):
- **Default**: `true`.
- **Effect**: Enables/disables new short trades. If `false`, only closing existing shorts is allowed.
- **Require DI+/DI- Cross for Buy** (`buy_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI+ crossover DI- for buy signals; if `false`, DI+ > DI- is sufficient.
- **Require CCI Cross for Buy** (`buy_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossover MA for buy signals; if `false`, CCI > MA is sufficient.
- **Require DI+/DI- Cross for Sell** (`sell_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI- crossover DI+ for sell signals; if `false`, DI+ < DI- is sufficient.
- **Require CCI Cross for Sell** (`sell_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossunder MA for sell signals; if `false`, CCI < MA is sufficient.
- **Countertrade** (`countertrade`):
- **Default**: `true`.
- **Effect**: If `true`, closing a trade triggers an opposite trade (e.g., close long, open short) if allowed.
- **Color Background for Open Trades** (`color_background`):
- **Default**: `true`.
- **Effect**: If `true`, colors the chart background green for long trades and red for short trades.
### 3.7 Exit Settings
- **Use MA Cross for Exit** (`use_ma_exit`):
- **Default**: `true`.
- **Effect**: If `true`, closes trades when the price crosses the exit MA (below for long, above for short).
- **MA Length for Exit** (`ma_exit_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the exit MA. Longer periods delay exits.
- **MA Type for Exit** (`ma_exit_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the MA type for exit signals. EMA is more responsive; VWMA weights by volume.
- **Use ADX Change Stop-Loss** (`use_adx_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the ADX changes by a specified percentage.
- **ADX % Change for Stop-Loss** (`adx_change_percent`):
- **Default**: `5.0`.
- **Range**: Minimum `0.0`, step `0.1`.
- **Effect**: Specifies the percentage change in ADX (vs. previous bar) that triggers a stop-loss. Higher values reduce premature exits.
- **Use Performance Stop-Loss** (`use_perf_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the loss exceeds a percentage threshold.
- **Performance Stop-Loss (%)** (`perf_stop_percent`):
- **Default**: `-10.0`.
- **Range**: `-100.0` to `0.0`, step `0.1`.
- **Effect**: Specifies the loss percentage that triggers a stop-loss. More negative values allow larger losses before exiting.
## 4. Visual and Statistical Output
- **Labels**: Displayed at trade entries/exits with arrows (↑ for buy, ↓ for sell) and text ("BUY," "SELL"). A "No Equity" label appears if equity is zero.
- **Background Coloring**: Optionally colors the chart background (green for long, red for short) to indicate open trades.
- **Statistics Table**: Displayed at the top center of the chart, updated on timeframe changes or trade events. Includes:
- **Capital Metrics**: Initial capital, current capital, capital growth (%).
- **Trade Metrics**: Total trades, long/short trades, win rate, long/short win rates, profit factor.
- **Open Trade Status**: Indicates if a long, short, or no trade is open.
## 5. Alerts
- **Buy Signal Alert**: Triggered when `buy_signal` is true ("Cross Buy Signal").
- **Sell Signal Alert**: Triggered when `sell_signal` is true ("Cross Sell Signal").
- **Usage**: Users can set up TradingView alerts to receive notifications for trade signals.
AlphaFlow — Direcional Pro [Strategy] — Risk % & Dynamic EquityAlphaFlow is a directional strategy designed to capture trend shifts using a dual moving average system, enhanced with RSI and ATR regime filters, and a long-term EMA filter for confirmation.
Key Features
Dynamic Position Sizing: Risk per trade is based on a fixed % of account equity, with optional dynamic equity growth.
Stop-Loss Options: Choose between ATR-based stop or swing-point stop.
Trade Management:
TP1 is placed at a user-defined risk multiple (R).
Once TP1 is hit, an optional ATR trailing stop activates until TP2 is reached or the stop is triggered.
Visual Tools: Fast/slow EMAs, long EMA, ATR channels, and optional divergence markers for context (do not affect entries).
Backtest Ready: Includes configurable commission, capital, and position sizing.
Use Case
This strategy is built for traders who want systematic trend-following entries with structured risk management. Its modular inputs allow adaptation across assets and timeframes.
⚠️ Disclaimer: Past performance does not guarantee future results. Always validate parameters before live use.
SMA – RGB Wave RiderThe SMA Wave Rider is like catching a clean set rolling in — instead of just a flat white line, your SMA12 lights up with a color gradient that shows whether the trend is mellow or pumping. It measures the slope of the SMA, normalizes it for whatever timeframe you’re surfing, then runs it through a contrast curve so the steeper the wave, the hotter the color. Pick your palette — Miami neon, Sunrise vibes, Pumpkin Spice autumn glow — and watch the line shift as the market gains or loses momentum. It’s trend strength painted right on the rail, so you can ride the flow instead of just guessing where the current’s pulling you. 🏄♂️🌊
AI - 200 EMA with Offsets StrategyLong when close price crosses above +4% offset 200 day EMA
Sell when close price crosses below -6.5% offset 200 day EMA
Supertrend Long/Short with Adjustable R:R by JJThis script is a Supertrend-based trading tool with:
Long/Short trade signals
Risk/reward calculation
Position sizing based on risk, capital, and max shares
Visual labels for entries, targets, and stops
Checkmarks (✔) for successful trades and crosses (❌) for stopped trades
Alerts for trade entries
It’s designed for visual analysis on charts, helping you see trades, their targets, and whether they hit profit or stop-loss.
Supertrend Long/Short with 1.5R Checkmarks & Adjustable RSISupertrend long/short entries
EMA trend filters (21 ≥ 50 ≥ 200 for longs, 21 ≤ 50 ≤ 200 for shorts)
Adjustable RSI filter
Max capital per trade filter
Position sizing
1.5x risk/reward targets
Labels for entries
Alerts for trades
✅ Check mark when a trade hits 1.5R before hitting the stop
EB TB V11.5 — Elephant & Tail Bar Detector | Shinobi LabThe EB TB V11.4 indicator is built to accurately detect Elephant Bars (EB) and Tail Bars (TB), helping traders capture momentum while filtering out false signals.
It combines strict technical validation with visual risk management, so you can trade with structure and discipline.
🔑 Key Features:
Dynamic Moving Averages (8, 20, 200): confirm direction and dominant trend.
Configurable session filter: only shows signals during the most liquid hours.
Clean Average Range: removes outliers to calculate consistent ranges.
200MA Extension Bypass: allows signals when price is stretched far enough from the MA200.
Validated EB/TB signals: strict conditions for bar size, strength and range.
Repetition control: prevents back-to-back duplicate signals.
Auto TP levels: blue lines marking suggested exit targets.
MLPT Risk Box: automatic lot size & $ risk calculation per trade.
Gap & Excess Bar warnings: visual notes when special market conditions are present.
Integrated alerts: instant notification when a new EB/TB signal appears.
This approach makes EB TB V11.4 not just a signal-painting tool, but a complete framework that blends context, risk management, and trading discipline into one indicator.
MACD Positive & Negative AlertThe MACD (Moving Average Convergence Divergence) is a momentum and trend-following indicator that helps traders identify the strength and direction of a trend, spot potential reversals, and fine-tune entry/exit timing.
Core Components
- MACD Line:
The difference between the 12-period and 26-period EMA (Exponential Moving Averages). This line highlights shifts in momentum and identifies the prevailing trend direction.
- Signal Line:
A 9-period EMA of the MACD line, acting as a trigger for buy/sell signals. When the MACD line crosses above the signal line, it suggests a bullish signal; when it crosses below, it suggests a bearish one.
- Histogram:
Shows the difference between the MACD line and the signal line as a bar graph. The histogram helps traders gauge the strength of the momentum and can warn of possible reversals. A rapidly growing histogram means strengthening momentum, while a shrinking one indicates weakening momentum.
Main Uses
- Trend Identification:
A positive MACD value typically signals a bullish trend, while a negative value signals a bearish trend.
- Momentum Analysis:
Divergences between MACD and price can warn of upcoming reversals. Increasing MACD histogram bars confirm strong momentum; shrinking bars suggest consolidation or reversal.
- Signal Generation:
Crossovers between the MACD line and the signal line generate trade signals—bullish (buy) if the MACD moves above the signal, bearish (sell) if it falls below l.
Example Interpretation
- MACD Crossover:
If the MACD line crosses above the signal line, it's often considered a buy signal; a cross below is a sell signal.
- Zero Line Cross:
If the MACD histogram moves from below zero to above, this is considered a bullish momentum shift; above zero to below is a bearish move.
The MACD is most effective in trending markets and should ideally be used alongside additional indicators for robust trading decisions.
Amazin + Crack Super trend + Moving AveragesMoving averages with super trend mix . great way to catch some momentum buys .
Rossgram
Script Name: ADMF: Rossgram Aggregated cumulative volume, volatility-dependent-parabolic-length, divergence-inverting EMA admf
Description:
This publication is a major revision by the original author. The script has been significantly improved to provide more accurate and timely signals by enhancing its core adaptive logic.
Key Improvements & Originality:
Enhanced Dynamic Calculation: The core algorithm now features a sophisticated volatility normalization mechanism. Instead of using a simple ATR, it calculates a normalized volatility index (volATR_admf) and dynamically adjusts the EMA length based on its position within a dynamically updated percentile range (2nd to 98th). This allows the indicator to be exceptionally responsive across different market regimes, from extreme volatility to calm conditions.
Advanced Percentile Anchoring: A dedicated initialization and update routine ensures robust calculation of volatility extremes. The script:
Initializes with safe defaults for the first 1000 bars.
After the 1000th bar, it calculates precise percentile levels (ta.percentile_nearest_rank) every 100 bars, ensuring the adaptive mechanism is always anchored to the most relevant recent market data rather than a fixed historical period. This is a unique approach to defining "extremes".
Multi-Exchange Data Aggregation (User-Configurable): The script is designed to aggregate volume data from multiple sources. This provides a more accurate picture of market activity than a single exchange. Users can manually configure a list of tickers for non-BTC assets in the settings, tailoring the data input to their specific trading instrument.
How It Works & How to Use:
The indicator plots a moving average that exponentially adjusts its sensitivity based on real-time market volatility. As volatility approaches historically high levels (98th percentile), the EMA length expands to filter out noise and help identify exhaustion. In low volatility (near the 2nd percentile), it contracts to become more responsive to new trends.
Usage: Add to the chart. For non-BTC assets, configure the tickers in settings.
Signal Interpretation: Look for the adaptive line to change direction, especially after it has been trending near one of the volatility extremes. This often anticipates sharp reversals.
Why Closed-Source? The specific implementation of the dynamic percentile-based anchoring, the volatility normalization formula, and the data aggregation logic are proprietary developments. Protecting the source code is necessary to safeguard the unique intellectual property behind this adaptive calculation method.
均线趋势过滤器 (MA_trend Signal/Noise Filter)双语简介
中文:
这款指标是一个基于“信噪比”思想的终极趋势过滤器。它通过比较快速和慢速EMA均线之间的差值(即信号)与ATR(平均真实波幅,代表噪音)来判断市场趋势。只有当信号的强度超过噪音的指定倍数时,才会确认趋势的有效性。该指标可帮助交易者过滤掉噪音,精确捕捉强势趋势,避免误操作。
English:
This indicator is the Ultimate Trend Filter based on the Signal-to-Noise ratio concept. It compares the difference between the fast and slow EMA (Signal) to the ATR (Noise) to determine market trends. A trend is confirmed only when the signal strength exceeds the noise by a specified multiplier. This indicator helps traders filter out noise and accurately capture strong trends, avoiding false signals.
MA-Median For Loop | MisinkoMasterThe MA-Median For Loop is a new Trend Following tool that gives the user smooth yet responsive trend signals, allowing you to see clear and accurate trends by combining the Moving Average & Median in a For Loop concept.
How does it work?
1. Select user defined inputs
=> Adjust it to your liking, everyone can set it to their liking.
2. Calculate the MA and the Median
=> Simple, but important
3. Calculate the For Loop
=> For every bar back where the median or ma of that bar is higher than the current median or ma subtract 0.5 from the trend score, and for every bar back where the current median/ma is higher than the previous one add 0.5 to the trend score.
This simple yet effective approach enhances speed, decreases noise, and produces accurate signals everyone can utilize to get an edge in the market
Enjoy G´s
HMA super trade by @arkancapMulti-HMA with five customizable moving averages: visual colors, transparency via picker, flexible line styles, and label/alert for HMA50↔HMA100 crossovers. Lightweight, readable, and ready for trading templates.
Мульти-HMA с пятью настраиваемыми скользящими: визуальные цвета, прозрачность через пикер, гибкие стили линий и метка/алерт для пересечений HMA50↔HMA100. Лёгкий, читабельный и готовый к торговым шаблонам.
Five Hull moving averages that show the trend and indicate key crossovers. Customize colors, thickness, and get accurate alerts. Suitable for scalping and multi-timeframes. Support for filling between moving averages to visually highlight areas of strength or weakness.
Пять Hull-скользящих, которые показывают тренд и подсказывают ключевые пересечения. Настраивай цвета, толщину и получай аккуратные алерты. Подходит для скальпа и мульти-таймфрейма. Поддержка заливки между скользящими для наглядного выделения зон силы или слабости.
EMA MACD - 5-20Based on Crossover and Big timeframe EMA Support and resistance this strategy is developed.
EMA Cross Alert V666 [noFuck]EMA Cross Alert — What it does
EMA Cross Alert watches three EMAs (Short, Mid, Long), detects their crossovers, and reports exactly one signal per bar by priority: EARLY > Short/Mid > Mid/Long > Short/Long. Optional EARLY mode pings when Short crosses Long while Mid is still between them—your polite early heads-up.
Why you might like it
Three crossover types: s/m, m/l, s/l
EARLY detection: earlier hints, not hype
One signal per bar: less noise, more focus
Clear visuals: tags, big cross at signal price, EARLY triangles
Alert-ready: dynamic alert text on bar close + static alertconditions for UI
Inputs (plain English)
Short/Mid/Long EMA length — how fast each EMA reacts
Extra EMA length (visual only) — context EMA; does not affect signals
Price source — e.g., Close
Show cross tags / EARLY triangles / large cross — visual toggles
Enable EARLY signals (Short/Long before Mid) — turn early pings on/off
Count Mid EMA as "between" even when equal (inclusive) — ON: Mid counts even if exactly equal to Short or Long; OFF (default): Mid must be strictly between them
Enable dynamic alerts (one per bar close) — master alert switch
Alert on Short/Mid, Mid/Long, Short/Long, EARLY — per-signal alert toggles
Quick tips
Start with defaults; if you want more EARLY on smooth/low-TF markets, turn “inclusive” ON
Bigger lengths = calmer trend-following; smaller = faster but choppier
Combine with volume/structure/risk rules—the indicator is the drummer, not the whole band
Disclaimer
Alerts, labels, and triangles are not trade ideas or financial advice. They are informational signals only. You are responsible for entries, exits, risk, and position sizing. Past performance is yesterday; the future is fashionably late.
Credits
Built with the enthusiastic help of Code Copilot (AI)—massively involved, shamelessly proud, and surprisingly good at breakfasting on exponential moving averages.