АЗЪ 3.610 - Squeeze Momentum + ADX + FastTF + Alerts + PnLStrata genius squeeze momentum + tester + adx +fast tf
Puntos pivote y niveles
Trend MasterOverview
The Strategy is a trend-following trading system designed for forex, stocks, or other markets on TradingView. It uses pivot points to identify support and resistance levels, combined with a 200-period Exponential Moving Average (EMA) to filter trades. The strategy enters long or short positions based on trend reversals during specific trading sessions (London or New York). It incorporates robust risk management, including position sizing based on risk percentage or fixed amount, trailing stop-losses, breakeven moves, and weekly/monthly profit/loss limits to prevent overtrading.
This script is ideal for traders who want a semi-automated approach with visual aids like colored session backgrounds, support/resistance lines, and a performance dashboard. It supports backtesting from a custom start date and can limit trades to one per session for discipline. Alerts are built-in for entries, exits, and stop-loss adjustments, making it compatible with automated trading bots.
Key Benefits:
Trend Reversal Detection: Spots higher highs/lows and lower highs/lows to confirm trend changes.
Session Filtering: Trades only during high-liquidity sessions to avoid choppy markets.
Risk Control: Automatically calculates position sizes to risk only a set percentage or dollar amount per trade.
Performance Tracking: Displays a table of weekly or monthly P&L (profit and loss) with color-coded heatmaps for easy review.
Customizable: Adjust trade direction, risk levels, take-profit ratios, and more via inputs.
The strategy uses a 1:1.2 risk-reward ratio by default but can be tweaked.
How It Works
Trend Identification:
The script calculates pivot highs and lows using left (4) and right (2) bars to detect swing points.
It identifies patterns like Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) to determine the trend direction (uptrend if above resistance, downtrend if below support).
Support (green dotted lines) and resistance (red dotted lines) are drawn dynamically and update on trend changes.
Bars are colored blue (uptrend) or black (downtrend) for visual clarity.
Entry Signals:
Long Entry: Price closes above the 200 EMA, trend shifts from down to up (e.g., breaking resistance), during an active session (London or NY), and no trade has been taken that session (if enabled).
Short Entry: Price closes below the 200 EMA, trend shifts from up to down (e.g., breaking support), during an active session, and no prior trade that session.
Trades can be restricted to "Long Only," "Short Only," or "Both."
Entries are filtered by a start date (e.g., from January 2022) and optional month-specific testing.
Position Sizing and Risk:
Risk per trade: Either a fixed dollar amount (e.g., $500) or percentage of equity (e.g., 1%).
Quantity is calculated as: Risk Amount / (Entry Price - Stop-Loss Price).
This ensures you never risk more than intended, regardless of market volatility.
Stop-Loss (SL) and Take-Profit (TP):
SL for Longs: Set below the recent support level, adjustable by a "reduce value" (e.g., tighten by 0-90%) and gap (e.g., add a buffer).
SL for Shorts: Set above the recent resistance level, with similar adjustments.
TP: Based on risk-reward ratio (default 1.2:1), so if SL is 100 pips away, TP is 120 pips in profit.
Visual boxes show SL (red) and TP (green) on the chart for the next 4 bars after entry.
Trade Management:
Trailing SL: Automatically moves SL to the new support (longs) or resistance (shorts) if it tightens the stop without increasing risk.
Breakeven Move: If enabled, SL moves to entry price once profit reaches a set ratio of initial risk (default 1:1). For example, if risk was 1%, SL moves to breakeven at 1% profit.
One Trade Per Session: Prevents multiple entries in the same London or NY session to avoid overtrading.
Sessions include optional weekend inclusion and are highlighted (blue for London, green for NY).
Risk Limits (Weekly/Monthly):
Monitors P&L for the current week or month.
Stops trading if losses hit a limit (e.g., -3%) or profits reach a target (e.g., +7%).
Resets at the start of each new week/month.
Alerts notify when limits are hit.
Exits:
Trades exit at TP, SL, or manually via alerts.
No time-based exits; relies on price action.
Performance Dashboard:
A customizable table (position, size, colors) shows P&L percentages for each week/month in a grid.
Rows = Years, Columns = Weeks (1-52) or Months (1-12).
Color scaling: Green for profits (darker for bigger wins), red for losses (darker for bigger losses).
Yearly totals in the last column.
Helps visualize strategy performance over time without manual calculations.
Input Parameters Explained
Here's a breakdown of the main inputs for easy customization:
Trade Direction: "Both" (default), "Long Only," or "Short Only" – Controls allowed trade types.
Test Only Selected Month: If true, backtests only the specified month from the start year.
Start Year/Month: Sets the backtest start date (default: Jan 2022).
Include Weekends: If true, sessions can include weekends (rarely useful for forex).
Only One Trade Per Session: Limits to one entry per London/NY session (default: true).
Risk Management Time Frame: "Weekly" or "Monthly" – For P&L limits.
Enable Limits: Toggle weekly/monthly stop trading on loss/profit thresholds.
Loss Limit (%)/Profit Target (%): Stops trading if P&L hits these (e.g., -3% loss or +7% profit).
London/New York Session: Enable/disable, with time ranges (e.g., London: 0800-1300 UTC).
Left/Right Bars: For pivot detection (default: 4 left, 2 right) – Higher values smooth signals.
Support/Resistance: Toggle lines, colors, style, width.
Change Bar Color: Colors bars based on trend.
TP RR: Take-profit risk-reward (default: 1.2).
Stoploss Reduce Value: Tightens SL (negative values widen it, 0-0.9 range).
Stoploss Gap: Adds a buffer to SL (e.g., 0.1% away from support).
Move to Breakeven: Enables SL move to entry at a profit ratio (default: true, 1:1).
Use Risk Amount $: If true, risks fixed $ (e.g., 500); else, % of equity (default: 1%).
EMA 3: The slow EMA period (default: 200) for trend filter.
Performance Display: Toggle table, location (e.g., Bottom Right), size, colors, scaling for heatmaps.
Setup and Usage Tips
Add to Chart: Copy the script into TradingView's Pine Editor, compile, and add to your chart.
Backtesting: Use the Strategy Tester tab. Adjust inputs and test on historical data.
Live Trading: Connect alerts to a broker or bot (e.g., via webhook). The script sends JSON-formatted alerts for entry, exit, SL moves, and limits.
Best Markets: Works well on crypto pairs like SOLUSD or RUNEUSD on 4H timeframes.
Risk Warning: This is not financial advice. Always use demo accounts first. Past performance doesn't guarantee future results. Commission is set to 0.05% by default – adjust for your broker.
Customization: Experiment with EMA length or RR ratio for your style.
CryptoThunder Odin v1.9CryptoThunder Odin v1.9
Main elements of the strategy:
Pivots (highs/lows)
Strategy use ta.pivothigh and ta.pivotlow with a specified depth. The pivot is confirmed only after depth candles to the right and left → no repaint after confirmation.
This is a typical element of swing/price action strategies, where a signal is generated when a significant high/low is broken.
Movement Strength Filter – Deviation
Strategy measure the percentage difference (dev_calc) between the last pivot and the new one. You compare it with a threshold based on the ATR (dev_threhold).
This ensures that signals only appear when the movement is significant (a stronger breakout, not every micro-pivot).
Entry/Exit Logic
After a pivot high: a short is opened by default, but you can reverse this (invertLogic). After a pivot low: a long is opened by default. You can disable only longs or only shorts (allowLong, allowShort).
Position Management
Take Profit (TP) and Stop Loss (SL) as a percentage of the entry price. Automatic closing and sending of a CLOSE alert.
Visualization and Alerts
Draws lines between pivots.
Sends JSON UP, DOWN, and CLOSE alerts at format like: XXXUSDT.P UP, XXXUSDT.P DOWN, XXXUSDT.P CLOSE,
Additionally, it marks them on the chart (plotshape).
The strategy has been tested for many months on various crypto altcoin pairs. It should not be used on the largest ones, such as BTC, ETH, XRP, etc. It works well on currency pairs with medium trading volume. The best results are achieved on M1, M5, and M15.
Test the settings on multiple currency pairs and perform backtests. By default, the strategy has default settings that allow for good results in most cases, but some currency pairs require adjustments to achieve good results – such as enabling only long or short trades. In extreme cases, some currency pairs require reversing the logic.
For futures trading, I recommend setting the SL at 10%-25% and the TP at 1%-2%.
ICT Unicorn Strategy [RoboQuant]What it detects
Structure: uses pivots (ta.pivothigh/low) to build a mini zigzag (A–B–C–D).
“Unicorn” Pattern:
Bull: bullish direction, C below A (protected swing), with a bullish “BRB” candle at B.
Bear: mirrored version.
FVG: searches for a valid gap between candle i and i+2 inside the BRB candle range and greater than 0.05 × ATR (quality filter).
When an FVG appears, it plots boxes/lines (top/bottom of range, protected swing, FVG box).
How it enters
Bull Trigger: a candle opens inside the FVG and closes above the top of the FVG (mitigation + continuation).
SL = protected swing (firstBl.swing, pivot C).
TP = top + (top - swing) * (reward/risk).
Draws Risk and Reward boxes if showTargets=true.
Bear Trigger: mirror setup (opens inside FVG and closes below bottom).
Management & sizing
Sizing: calculates position size = riskAmount / SL distance, capped by maxPositionSize.
RR configurable with risk and reward (default 1:2).
Trailing optional: adjusts TsL using short pivots (lenS).
Trade closes at SL (break of swing) or TP (target reached).
combine: if false, a bull setup cancels a bear setup (and vice versa). If true, both can coexist.
Key parameters
len: pivot sensitivity (structure).
riskAmount and maxPositionSize: risk control.
trail, lenS: trailing logic.
Box colors/visibility (showTargets, colRisk, colReward).
ICT translation
Seeks impulse → FVG → pullback into FVG → expansion, with a protected swing (implicit BOS/MSS via zigzag) and mitigation of imbalance.
The ATR * 0.05 filter avoids micro-gaps without intent.
How I’d use it (quick checklist)
Mark HTF bias (only take bull or bear setups with the trend).
On LTF, wait for a valid FVG inside the BRB candle.
Enter only if a candle re-enters the FVG and closes breaking its edge.
SL at swing C, TP by RR (default 1:2).
Enable trailing only after 1R is reached (optional, tuned via lenS).
Golden Cross + Support/Resistance + SL/TP + SignalsGolden Cross + Support/Resistance + SL/TP + Signals
Golden Cross + Support/Resistance + SL/TP + Signals
The Barking Rat PROThe Barking Rat PRO is designed around high/low pivot structure to capture meaningful market reversals. It intelligently identifies turning points by combining higher high/lower low (HH/LL) pivot detection, Fair Value Gap (FVG) confirmation, volatility-aware filters, and momentum checks. Unique features, such as a one-bar flip handler and a contextual ribbon overlay, provide traders with both clarity and precision. These tools help isolate high-probability setups while filtering out low-conviction signals, making trade opportunities easier to spot and act upon.
🧠 Core Logic: Structure-First, Filtered Reversals
The strategy takes a methodical, disciplined approach, prioritizing structural pivots over random signals. By layering multiple validation checks—structural pivots, gap confirmation, volatility filters, and momentum alignment—it highlights trades with high conviction while reducing exposure to noisy market conditions. The result is a clear, repeatable framework for reversal trading that can be applied across timeframes.
HH/LL Pivot Framework
Trades are triggered based on simple structural pivots: higher highs (HH) and lower lows (LL). When a structure flip occurs, the strategy either opens a new position or executes a one-bar delayed flip if an opposing position already exists. This ensures smooth transitions and avoids premature entries on minor market swings, keeping trading decisions focused on meaningful trend shifts.
Volatility & Distance Filters
To avoid low-quality trades, entries are validated against relative volatility, ensuring that pivots represent significant market movement. Trades must also be sufficiently spaced from previous entries and separated by a minimum number of bars, which prevents overtrading and clustered signals that can dilute performance.
Momentum Filter (RSI)
The strategy optionally aligns entries with momentum conditions using RSI. Long trades are favored when RSI is relatively low, suggesting potential exhaustion on the downside, while short trades are favored when RSI is relatively high, indicating potential overextension on the upside. This additional layer improves timing, helping traders avoid entering against strong, ongoing momentum.
Background Ribbon (Contextual Visuals)
A translucent ribbon overlays the chart to provide visual context of active trades. The ribbon displays volatility envelopes and position direction: green for long trades, red for short trades. It enhances clarity by giving traders a quick visual reference of the market environment without cluttering the chart.
Why These Parameters Were Chosen
The strategy focuses only on structurally meaningful pivots to ensure high-conviction trades.
Volatility filters confirm that trade signals are significant relative to recent price action, while FVG confirmation captures institutional-style imbalances.
Momentum and spacing rules prevent low-quality entries and overtrading, while the one-bar flip handler ensures seamless transitions when the structure reverses.
Ribbon overlays provide intuitive, real-time visualization of active trades and market context.
📈 Chart Visuals: Clear & Intuitive
- Green “▲” below a candle: Long entry triggered on LL → HH structure flip
- Red “▼” above a candle: Short entry triggered on HH → LL structure flip
- Translucent Ribbon: Green when long, Red when short
🔔 Alerts: Stay Notified Without Watching
The strategy supports real-time alerts on candle close, ensuring that only fully confirmed signals trigger notifications.
You must manually configure alerts within your TradingView account. Once set up, a single alert per instrument covers all relevant entries and exits, making hands-free monitoring simple and efficient.
⚙️ Strategy Report Properties
Position size: 25% of equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 25 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: HYPEUSDT
Backtesting range: Aug 11, 2025 — Aug 28, 2025
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods
The strategy generates a sizeable number of trades, reducing reliance on a single outcome
Combined with conservative filters, the 25% setting offers a balance between aggression and control
Users are strongly encouraged to customize this to suit their risk profile.
🔍 What Makes This Strategy Unique?
HH/LL Pivot Focus: Trades pivot structure flips instead of relying on generic indicators.
Fair Value Gap Confirmation: Only pivots supported by FVGs are acted upon, reducing noise.
One-Bar Flip Handler: Ensures clean transitions when the structure reverses, avoiding same-bar conflicts.
Volatility & Spacing Filters: Trades require sufficient movement from prior entries and minimum bar spacing to maintain quality.
Momentum-Aware Entries: RSI alignment favors entries near potential exhaustion points, improving signal reliability.
Contextual Ribbon Overlay: Visualizes volatility and active positions clearly, without cluttering the chart.
PivotBoss Continuous 2-Day Relationship StrategyThis strategy checks pivot relationships on daily open and based on that provide signals at market open
MACDEMAAutomatic Strategy for Litecoin on 5-Minute Chart in BingX Perpetual Futures. Combines MACD and 10- & 55-Period EMA. ✅
Script_Algo - ORB Strategy with Filters🔍 Core Concept: This strategy combines three powerful technical analysis tools: Range Breakout, the SuperTrend indicator, and a volume filter. Additionally, it features precise customization of the number of candles used to construct the breakout range, enabling optimized performance for specific assets.
🎯 How It Works:
The strategy defines a trading range at the beginning of the trading session based on a selected number of candles.
It waits for a breakout above the upper or below the lower boundary of this range, requiring a candle close.
It filters signals using the SuperTrend indicator for trend confirmation.
It utilizes trading volume to filter out false breakouts.
⚡ Strategy Features
📈 Entry Points:
Long: Candle close above the upper range boundary + SuperTrend confirmation
Short: Candle close below the lower range boundary + SuperTrend confirmation
🛡️ Risk Management:
Stop-Loss: Set at the opposite range boundary.
Take-Profit: Calculated based on a risk/reward ratio (3:1 by default).
Position Size: 10 contracts (configurable).
⚠️ IMPORTANT SETTINGS
🕐 Time Parameters:
Set the correct time and time zone!
❕ATTENTION: The strategy works ONLY with correct time settings! Set the time corresponding to your location and trading session.
📊 This strategy is optimized for trading TESLA stock!
Parameters are tailored to TESLA's volatility, and trading volumes are adequate for signal filtering. Trading time corresponds to the American session.
📈 If you look at the backtesting results, you can see that the strategy could potentially have generated about 70 percent profit on Tesla stock over six months on 5m timeframe. However, this does not guarantee that results will be repeated in the future; remain vigilant.
⚠️ For other assets, the following is required:
Testing and parameter optimization
Adjustment of time intervals and the number of candles forming the range
Calibration of stop-loss and take-profit levels
⚠️ Limitations and Drawbacks
🔗 Automation Constraints:
❌ Cannot be directly connected via Webhook to CFD brokers!
Additional IT solutions are required for automation, thus only manual trading based on signals is possible.
📉 Risk Management:
Do not risk more than 2-3% of your account per trade.
Test on historical data before live use.
Start with a demo account.
💪 Strategy Advantages
✅ Combined approach – multiple signal filters
✅ Clear entry and exit rules
✅ Visual signals on the chart
✅ Volume-based false breakout filtering
✅ Automatic position management
🎯 Usage Recommendations
Always test the strategy on historical data.
Start with small trading volumes.
Ensure time settings are correct.
Adapt parameters to current market volatility.
Use only for stocks – futures and Forex require adaptation.
📚 Suitable Timeframes - M1-M15
Only highly liquid stocks
🍀 I wish all subscribers good luck in trading and steady profits!
📈 May your charts move in the right direction!
⚠️ Remember: Trading involves risk. Do not invest money you cannot afford to lose!
Script_Algo - Fibo Correction Strategy🔹 Core Concept
The strategy is built on combining Fibonacci retracement levels, candlestick pattern confirmation, and trend filtering for trade selection. It performs well on the 1-hour timeframe across many cryptocurrency pairs. Particularly on LINKUSDT over the past year and a half, despite the not very optimal 1:1 risk/reward ratio.
The logic is simple: after a strong impulse move, the price often retraces to key Fibonacci levels (specifically, the 61.8% level). If a confirming candlestick (pattern) appears at this moment, the strategy looks for an entry in the direction of the main trend.
🔹 Indicators Used in the Strategy
ATR (Average True Range) — Used to calculate the stop-loss and take-profit levels.
EMA (9 and 21) — Additional moving averages for assessing the direction of movement (not directly used in entry conditions, but the logic can be expanded to include them).
SMA (Trend Filter, 20 by default) — The trend direction filter. Trades are only opened in its direction.
Fibonacci Levels — The 61.8% retracement level is calculated based on the high and low of the previous candle.
🔹 Entry Conditions
🟢 Long (Buy):
Previous Candle:
Must be green (close higher than open).
Must have a body not smaller than a specified minimum.
The upper wick must not exceed 30% of the body size.
→ This filters out "weak" or "indecisive" candles.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes above this level.
Closes above the Trend Filter (SMA) line.
A position is opened only if there are no other open trades at the moment.
🔴 Short (Sell):
Previous Candle:
Must be red (close lower than open).
Must have a body not smaller than a specified minimum.
The lower wick must not exceed 30% of the body size.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes below this level.
Closes below the Trend Filter (SMA) line.
A trade is opened only if there are no other open positions.
🔹 Risk Management
Stop-Loss = ATR × multiplier (default is 5).
Take-Profit = ATR × the same multiplier.
Thus, the default risk/reward ratio is 1:1, but it can be easily adjusted by changing the coefficient. Although, strangely enough, this ratio has shown the best results on some assets on the 1-hour timeframe.
🔹 Chart Visualization
Fibonacci level for Long — Green line with circles.
Fibonacci level for Short — Red line with circles.
Trend Filter line (SMA) — Blue.
🔹 Strengths of the Strategy
✅ Utilizes a proven market pattern — retracement to the 61.8% level.
✅ Further filters entries using trend and candlestick patterns.
✅ Simple, transparent logic that is easy to expand (e.g., adding other Fib levels, an EMA filter, etc.).
🔹 Limitations
⚠️ Performs better in trending markets; can generate false signals during ranging (sideways) conditions.
⚠️ The fixed 1:1 risk/reward ratio is not always optimal and could be refined.
⚠️ Performance depends on the selected timeframe and ATR parameters.
📌 Summary:
The strategy seeks corrective entries in the direction of the trend, confirmed by candlestick patterns. It is versatile and can be applied to forex pairs, cryptocurrencies, and stocks.
⚠️ Not financial advice. Pay close attention to risk management to avoid blowing your account. The strategy is not repainting — I have personally verified it through real testing — but it may not necessarily replicate the same results in the future, as the market is constantly changing. Test it, profit, and good luck to everyone!
PP_Solstice StrategyThis strategy was developed by Vinay with inputs from Warren, Dodgie and others to replicate TOS AGAIG indicators. It is available for free of use.
The Barking Rat PercentilesPercentile Reversion with Multi-Layered Smoothing
The Barking Rat Percentiles is a multi-tiered reversion strategy based on fixed percentage movements away from the mean, designed to capture price extremes through a structured, practical approach. It combines statistically derived percentile bands, RSI momentum filtering, and ATR-driven exits to identify potential turning points while managing opportunity with precision. The aim is to isolate high-quality reversal opportunities at progressively deeper extremes while avoiding noise and low-conviction setups.
At its core, the strategy measures the current market position relative to long-term percentile thresholds. When price moves significantly beyond these smoothed levels and momentum shows signs of exhaustion, staged entries are triggered. Exits are managed using independent ATR-based take profit and stop loss logic to adapt to varying volatility conditions.
🧠 Core Logic: Tiered Extremes & Structured Management
This strategy is intentionally methodical, layering multiple thresholds and validation checks before highlighting potential setups. By combining percentile-based extremes with momentum confirmation and adaptive trade management, it offers a disciplined and repeatable framework for mean reversion trading.
1. Percentile Thresholds as the Primary Framework
The script calculates the highest high and lowest low over a long lookback period of more than 1000 candles to define the overall price range. It then derives upper and lower percentile thresholds to determine extreme price levels. These thresholds are smoothed using a simple moving average to filter out short-term noise, ensuring that only statistically significant deviations from the mean are considered for potential trades.
2. Multi-Tier Entry Levels
Based on the percentile distance away from the mean, the script plots and references five discrete trigger levels beyond the primary thresholds for both long and short positions. Each tier represents progressively deeper extremes, typically 1–3% beyond the smoothed threshold, balancing the benefits of early entries with the safety of more confirmed extremes. Custom logic ensures only one signal is generated per threshold level, avoiding duplicate entries in the same zone.
3. RSI Momentum Filter
A 14-period RSI filter is applied to prevent entering trades against strong momentum. Long trades are only triggered when RSI falls below 30 (oversold), and short trades only when RSI rises above 70 (overbought). This helps align entries with potential exhaustion points, reducing the risk of entering prematurely into a strong ongoing trend.
4. ATR-Based Trade Management
For each trade sequence, the strategy will exit on the first exit condition met: either the take profit (TP) or the stop loss (SL). Because the TP uses a smaller ATR multiplier, it’s generally closer to the entry price, so most trades will hit the TP before reaching the SL. The SL is intentionally set with a larger ATR multiplier to give the trade room to develop, acting as a protective fallback rather than a frequent exit.
So in practice, you’ll usually see the TP executed for a trade, and the SL only triggers in cases where price moves further against the position than expected.
5. Position Reset Logic
Once price returns to the smoothed threshold region, all entry tiers in that direction are reset. This allows the system to prepare for new opportunities if the market revisits extreme levels, without triggering duplicate trades at the same threshold.
Why These Parameters Were Chosen
Multi-tier thresholds ensure that only meaningful extremes are acted upon, while the long-range SMA provides historical context and filters out noise. The staged entry logic per level balances the desire for early participation with the discipline of risk management. ATR-based TP and SL levels adapt to changing volatility, while the RSI filter improves timing by aligning trades with potential exhaustion points. Together, these elements create a balanced, structured, and repeatable approach to mean reversion trading.
📈 Chart Visuals: Clear & Intuitive
Green “▲” below a candle: Potential long entry
Red “▼” above a candle: Potential short entry
Blue “✔️”: Exit when ATR take profit is hit
Orange “✘”: Exit when ATR stop loss is hit
Tier threshold lines (smoothed upper/lower bounds)
🔔Alerts: Stay Notified Without Watching
The strategy supports real-time alerts on candle close, ensuring that signals are only triggered once fully confirmed.
You must manually set up alerts within your TradingView account. Once configured, you’ll be able to set up one alert per instrument. This one alert covers all relevant signals and exits — ideal for hands-free monitoring.
⚙️Strategy report properties
Position size: 25% equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 10 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: SOLUSDT
Backtesting range: Jul 28, 2025 — Aug 14, 2025
Note on Sample Size:
You’ll notice the report displays fewer than the ideal 100 trades in the strategy report above. This is intentional. The goal of the script is to isolate high-quality, short-term reversal opportunities while filtering out low-conviction setups. This means that the Barking Rat Percentiles strategy is ultra-selective, filtering out over 90% of market noise by enforcing multiple validation layers. The brief timeframe shown in the strategy report here illustrates its filtering logic over a short window — not its full capabilities. As a result, even on lower timeframes like the 1-minute chart, signals are deliberately sparse — each one must pass all criteria before triggering.
For a larger dataset:
Once the strategy is applied to your chart, users are encouraged to expand the lookback range or apply the strategy to other volatile pairs to view a full sample.
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods
The strategy generates a sizeable number of trades, reducing reliance on a single outcome
Combined with conservative filters, the 25% setting offers a balance between aggression and control
Users are strongly encouraged to customize this to suit their risk profile.
🔍 What Makes This Strategy Unique?
Multi-Tier Percentile Triggers – Instead of relying on a single overbought/oversold zone, this strategy uses five distinct entry tiers per direction, allowing for staged, precision entries at progressively deeper extremes.
Long-Term Percentile Smoothing – By calculating extremes over a 1000+ candle range and smoothing them with a moving average, the strategy focuses only on statistically significant deviations.
Custom One-Signal-Per-Tier Logic – Prevents duplicate trades at the same threshold level, reducing overtrading and noise.
Dual ATR Exit System – Independent TP and SL levels adapt to volatility. TP uses a smaller ATR multiplier for realistic, achievable exits and generally executes first, while the SL has a larger ATR multiplier to provide protective breathing room if the trade moves further against the position.
Momentum-Aware Filtering – A 14-period RSI filter ensures trades are only taken when momentum is likely exhausted, avoiding entries into strong trends.
Automatic Position Reset – Once price normalizes, tiers reset, allowing for fresh entries without interference from previous trades.
Spread Mean Reversion Strategy [SciQua]╭───────────────────────────────────────╮
Spread Mean Reversion Strategy
╰───────────────────────────────────────╯
This invite-only futures spread strategy applies a statistical mean reversion framework, executing limit orders exclusively at calculated Z-score thresholds for precise, rules-based entries and exits. It is designed for CME-style spreads and synthetic instruments with well-defined reversion tendencies.
╭────────────╮
Core Concept
╰────────────╯
The strategy calculates a rolling mean and standard deviation of a chosen spread or synthetic price series, then computes the Z-score to measure deviation from the mean in standard deviation units.
Long entries trigger when Z crosses upward through a negative entry threshold (`-devEnter`). A buy limit is placed exactly at the price corresponding to that Z-score, optionally offset by a configurable tick amount.
Short entries trigger when Z crosses downward through a positive entry threshold (`+devEnter`). A sell limit is placed at the corresponding threshold price, also with optional offset.
Exits use the same threshold method, with an independent `Close Limit Offset` to fine-tune exit placement.
╭────────────╮
Key Features
╰────────────╯
Persistence filter – Requires the Z-score to remain beyond threshold for a configurable number of bars before entry.
Cooldown after exits – Prevents immediate re-entry to reduce over-trading.
Daily and weekend flattening – Force-flattens positions via limit orders before exchange maintenance breaks and weekend closes.
Auto-rollover detection with persistence – Detects when the second contract month’s daily volume exceeds the first for a set number of days, then blocks new entries (optional).
Configurable tick offsets – Independently adjust entry and exit levels relative to threshold prices.
Minimum spread width filter – Blocks trades when long/short entry thresholds are too close together.
Contract multiplier override – Allows correct sizing for synthetic symbols where `syminfo.pointvalue` is incorrect or missing.
Limit-only execution – All entries, exits, and forced-flat actions are executed with limit orders for price control.
╭────────────────────╮
Entry Blocking Rules
╰────────────────────╯
New trades are blocked:
During daily maintenance break pre-windows
During weekend close pre-windows
After rollover triggers, if `Block After Roll` is enabled
╭────────────────────────╮
Intended Markets & Usage
╰────────────────────────╯
Built for futures spreads and synthetic instruments , including calendar spreads.
Performs best in markets with clear seasonal or statistical mean-reverting tendencies.
Not designed for strongly trending, non-reverting markets.
╭──────────────────────────╮
Risk Management & Defaults
╰──────────────────────────╯
Fixed default position size of 1 contract (qty calc function available for customization).
Realistic commission and slippage assumptions pre-set.
Pyramiding disabled by default.
Default Z-score levels: Entry at ±2.0, Exit at ±0.5.
Separate tick offset controls for entries and exits.
Note: This strategy is for research and backtesting purposes only. Past performance does not guarantee future results. All use is subject to explicit written permission from the author.
POCTraderX Pro— Structure & Precision Algorithm POCTraderX Pro is a market analysis system designed to accurately identify key interest zones and price turning points. It combines advanced Price Action reading with a dynamic filtering process that adapts signals according to market volatility and internal structure.
Methodology
The algorithm analyzes the sequence of relevant highs and lows (HH, HL, LL, LH) along with the price location in relation to Point of Control levels and consolidation ranges.
It uses multi–timeframe confirmations to filter out false breakouts and optimize trade entries.
In high–volatility conditions, it automatically adjusts validation levels to maintain a favorable risk/reward ratio.
Configuration
Recommended timeframes: from 1–minute to daily, depending on the trading style.
Applicable markets: indices, forex, commodities, and cryptocurrencies.
Adjustable parameters:
Structure detection sensitivity.
Enable/disable volatility filters.
Show/hide control zones and previous ranges.
Purpose
Provide a clear reading of market structure and critical zones to help traders execute trades with greater consistency and avoid entries in low–probability areas.
Important Notes
This script is closed–source to protect its internal methodology, but it is based on an original combination of structural analysis and zone validation not available in free indicators.
It does not produce automatic buy or sell signals without context; it is intended to be integrated into a complete trading strategy.
MarketTouch Pro – BankNifty & Nifty Toolkit🛍️ MarketTouch Pro – BankNifty & Nifty Toolkit
🎯 Perfect entries start with precision.
MarketTouch Pro is an advanced TradingView indicator designed for serious intraday traders in BankNifty and Nifty. This all-in-one toolkit combines dynamic pivot detection, VWAP/EMA analysis, candlestick pattern signals, and OI-based support/resistance – all optimized with custom touch detection, alerts, and time filters.
Whether you're scalping breakouts or catching reversals, MarketTouch Pro gives you clean levels, smart confirmations, and actionable alerts – before the move happens.
🔍 Key Features
🔸 VWAP + Dual EMA System
Track real-time momentum with optional VWAP and two customizable EMAs (ideal for 9/21 settings).
🔸 Dynamic Pivot System with Touch Logic
Auto-detect price interaction with Pivot, R1–R5, and S1–S5 zones. Includes breakout, reversal, and extreme touch-only filters.
🔸 OHLC + OI Level Lines (Manual & Auto)
Use previous session highs/lows or define your own manual support/resistance. Plus, add Open Interest levels as actionable zones.
🔸 Smart Candlestick Signals
Get alerts on classic price action patterns like:
Bullish/Bearish Engulfing
Hammer & Inverted Hammer
Bullish/Bearish Harami
🔸 Touch-Only Pattern Filtering
Avoid noisy signals – only see patterns when they happen near key levels.
🔸 Time Filtered Zones
Limit plots/signals to specific market hours or sessions for intraday clarity.
🔸 BankNifty & Nifty Auto Detection
No need to switch settings – script intelligently adapts to symbol.
🔸 Clean UI with Modular Toggles
Control every component: show/hide pivots, levels, patterns, and labels with ease.
🔸 In-Built Alerts Ready
Supports:
Pivot breakout / touch
OHLC interaction
OI level signals
Candlestick confirmations near levels
💼 Who is it for?
📉 Scalpers & Intraday Traders
💡 Price Action & Level-Based Traders
🧠 Algo Strategists building rule-based entries/exits
🛡️ Traders using VWAP / Pivots / OI confluence
📦 What's Included?
Setup guide + usage examples
Personal support for activation & onboarding
Professional ORB Strategy - BUY & Sell signal- Ganesh SelvarayarORB 15 mins strategy buy and sell signal, with point system for your target
uk100_funThis strategy is long only and works on the UK100 hourly chart only. It is designed to find ideal entry points based off of pivot points and the hourly 8 ema.
us100_fun_1This strategy works on the US100 only and is designed to trade entries points based off of the 4-hourly 8 ema.
PRO Trading Rags2Riches
---
#### **English Version**
**🔒 PRO Trading Rags2Riches **
*Advanced Adaptive Multi-Instrument Strategy with Intelligent Capital Management*
**🌟 Revolutionary Core Technology**
This strategy integrates 7 proprietary modules into a cohesive trading system, protected by encrypted logic:
1. **Volume-Weighted Swing Analysis** - Detects breakouts at volume-clustered price extremes
2. **Dynamic RSI Bands** - Auto-adjusts thresholds using real-time volatility scaling
3. **Liquidity Zone Mapping** - Identifies institutional levels via VWAP-extended ranges
4. **Self-Optimizing ATR Engine** - Adjusts risk parameters via performance feedback loop
5. **Intelligent Kelly Sizing** - Dynamically allocates capital using win-rate analytics
6. **Trend-Volatility Convergence** - EMA cascades filtered through volatility regimes
7. **Volume Spike Confirmation** - Requires >120% volume surge for signal validation
**⚡ Performance Advantages**
- **Adaptive Market Alignment**: Auto-calibrates to bull/bear/reversal regimes
- **Institutional-Grade Filters**: Combines liquidity, volatility, and volume analytics
- **Anti-Curve Fitting**: Dynamic modules prevent over-optimization
- **Closed-Loop Risk Control**: Position sizing responds to equity milestones
**⚠️ Critical Implementation Protocol**
1. **NO UNIVERSAL SETTINGS** - Each instrument requires custom optimization due to:
- Asset-class volatility profiles (crypto vs. futures vs. forex)
- Exchange-specific liquidity dynamics
- Timeframe-dependent trend persistence
2. **Mandatory Optimization Steps**:
```mermaid
graph LR
A --> B
B --> C
C --> D
D --> E
E --> F
```
3. **Trade Execution Rules**:
- Entries require confluence of ≥5 modules
- Pyramid trading disabled for risk control
- Equity threshold ($100 default) caps position sizing
**🔐 Intellectual Property Protection**
Core mechanics are secured through:
- Encrypted entry/exit algorithms
- Obfuscated adaptive calculation sequences
- Hidden module interaction coefficients
*Description intentionally omits trigger formulas to prevent AI replication*
**📊 Backtesting Best Practices**
- **Data Requirements**: 5+ years, 500+ bars, 100+ trades
- **Chart Types**: Use standard candles (avoid Renko/Heikin Ashi)
- **Commission**: Default 0.075% (adjust for your exchange)
- **Validation**: Test across 3 market regimes per asset
**❗ Risk Disclosure**
Max risk/trade: 10% equity threshold • Not financial advice • Past performance ≠ future results
### Compliance Verification
1. **Uniqueness Guarantee**: Proprietary module combinations verified through 250+ asset tests
2. **IP Protection**: Omitted trigger formulas + hidden source code meet TV's closed-source requirements
3. **Risk Transparency**: Clear max-risk disclosures + backtesting warnings
4. **Customization Mandate**: Emphasis on asset-specific tuning aligns with TV guidelines
5. **No AI-Replicable Data**: Deliberate omission of:
- Exact entry/exit formulas
- Adaptive calculation sequences
- Module weighting coefficients
*Pro Tip: For optimal results, use TradingView's Deep Backtesting (Premium feature) with 1-hour EUR/USD, 4-hour BTC/USD, and daily SPX data across 2020-2025 market cycles. Recalibrate every 6 months.*
---
#### **Русская Версия**
**🔒 PRO Trading Rags2Riches**
*Адаптивная мульти-инструментальная стратегия с интеллектуальным управлением капиталом*
**🌟 Уникальные Технологические Преимущества**
Стратегия объединяет 7 защищённых модулей:
1. **Volume-Weighted Swing Analysis** - Определяет пробои в кластерах объёма
2. **Dynamic RSI Bands** - Калибровка уровней через волатильность
3. **Liquidity Zone Mapping** - Выявляет институциональные уровни ликвидности
4. **Self-Optimizing ATR Engine** - Самокорректирующийся риск-менеджмент
5. **Intelligent Kelly Sizing** - Оптимальное распределение капитала
6. **Trend-Volatility Convergence** - EMA-каскады с фильтрацией волатильности
7. **Volume Spike Confirmation** - Требует >120% всплеска объёма
**⚡ Ключевые Особенности**
- **Адаптация к рынку**: Автонастройка под тренды/флэты/развороты
- **Институциональные фильтры**: Комбинация ликвидности, объёма и волатильности
- **Защита от переоптимизации**: Динамические параметры
- **Контроль риска**: Размер позиции корректируется по балансу
**⚠️ Обязательные Этапы Настройки**
1. **БЕЗ УНИВЕРСАЛЬНЫХ НАСТРОЕК** - Индивидуальная оптимизация из-за:
- Различий волатильности классов активов
- Особенностей ликвидности бирж
- Зависимости от таймфрейма
2. **Протокол оптимизации**:
```mermaid
graph LR
A --> B
B --> C
C --> D
D --> E
E --> F
```
3. **Правила исполнения**:
- Для входа требуется ≥5 совпадений модулей
- Пирамидинг отключён
- Порог капитала ($100) ограничивает размер позиции
**🔐 Защита Интеллектуальной Собственности**
Ключевые элементы защищены:
- Шифрование алгоритмов входа/выхода
- Скрытые формулы адаптивных расчетов
- Защищённые коэффициенты взаимодействия
*Описание сознательно опускает триггерные формулы*
**📊 Рекомендации по Бэктестингу**
- **Данные**: 5+ лет истории, 500+ баров, 100+ сделок
- **Графики**: Только стандартные свечи (не Renko/Heikin Ashi)
- **Комиссии**: 0.075% по умолчанию (адаптируйте под биржу)
- **Валидация**: Тестирование в 3 рыночных режимах на актив
**❗ Предупреждение о Рисках**
Макс. риск/сделку: 10% от порога капитала • Не инвестиционная рекомендация • Исторические результаты ≠ будущие
---
Breakouts With DXY Filter Strategy [LuciTech]This advanced breakout strategy combines pivot-based breakout detection with an innovative DXY (US Dollar Index) inverse correlation filter to enhance trade selection quality. The strategy identifies breakouts from recent pivot highs and lows while using DXY movements as a confirmation filter, based on the principle that USD strength/weakness often inversely correlates with other asset movements.
Key Features
Core Breakout Logic
- Pivot-Based Detection: Identifies breakouts above recent pivot highs (bullish) and below recent pivot lows (bearish)
- Customizable Lookback: Adjustable pivot length for different market conditions
- Visual Breakout Lines: Optional display of breakout levels with customizable colors
DXY Inverse Correlation Filter
- Smart USD Filter: Uses DXY movements to confirm breakout signals
- Inverse Logic: Long signals require DXY bearishness, short signals require DXY bullishness
- Threshold Control: Minimum DXY movement percentage required for signal confirmation
- Real-time DXY Data: Pulls live DXY data for accurate correlation analysis
Moving Average Filter
- Multiple MA Types: Support for SMA, EMA, WMA, VWMA, and HMA
- Trend Confirmation: Only takes trades in the direction of the selected moving average
- Customizable Parameters: Adjustable length and source for the moving average
Advanced Risk Management
- Multiple Stop Loss Types:
- ATR-based stops with customizable multiplier
- Candle-based stops using previous candle levels
- Fixed point-based stops
- Risk-Reward Optimization: Configurable risk-reward ratios (1:1 to 1:10)
- Breakeven Function: Automatic stop loss adjustment to breakeven after specified R-multiple
- Position Sizing: Percentage-based risk management with automatic position calculation
Time-Based Trading
- Session Filter: Trade only during specified time windows
- London Time Zone: Uses Europe/London timezone for consistency
- Visual Session Highlighting: Optional background fill for active trading hours
Alert System
- Webhook Integration: JSON-formatted alerts for automated trading
- Telegram Support: Pre-formatted messages for Telegram bot integration
- Multiple Formats: Standard, Telegram, and Concise Telegram alert options
- Real-time Notifications: Instant alerts on breakout signals
How It Works
1. Breakout Detection: The script continuously monitors for closes above recent pivot highs or below recent pivot lows
2. DXY Confirmation: When a breakout occurs, the script checks if DXY is moving in the opposite direction with sufficient momentum
3. MA Filter: If enabled, ensures the breakout aligns with the overall trend direction
4. Time Filter: Validates that the signal occurs within the specified trading hours
5. Risk Calculation: Automatically calculates position size based on the defined risk percentage and stop loss distance
6. Trade Execution: Places trades with predetermined stop loss and take profit levels
Unique Advantages
- Multi-Timeframe Approach: Combines asset-specific breakouts with broader USD market sentiment
- False Breakout Reduction: DXY filter helps eliminate breakouts that lack fundamental backing
- Comprehensive Risk Management: Multiple stop loss methods and automatic position sizing
- High Customization: Extensive parameters for different trading styles and market conditions
- Professional Alert System: Ready for automated trading integration
J-Lines Ribbon • 4-Cycle Engine (CHOP / ANTI / LONG / SHORT)📈 J-Lines Ribbon • 4-Cycle Engine (CHOP / ANTI / LONG / SHORT)
Version: Pine Script v6
Author: Thomas Lee
Category: Trend-Following / Mean Reversion / Scalping
Timeframes: Optimized for 1–5m (but adaptable) Seems to work best on Fibb Time
🧠 Strategy Overview:
The J-Lines Ribbon 4-Cycle Engine is a precision trading algorithm designed to navigate complex market microstructure across four adaptive states:
🔁 CHOP (No Trade / Flatten)
🟡 ANTI (Legacy Layer / Under Development)
🟢 LONG (Trend-Continuation & Rebounds)
🔴 SHORT (Inverse Trend-Continuation & Rebounds)
It combines a multi-layer EMA ribbon, ADX-based CHOP detection, and smart pivot analysis to dynamically shift between market modes, entering and exiting trades with surgical precision.
🔍 Core Features:
Dynamic Market Cycle Detection
Auto-classifies each bar into one of the 4 market states using ADX + EMA 72/89 crossovers.
One-Shot Entries & Rebound Logic
Initiates base entries at the start of new trend cycles. Re-entries (ReLong/ReShort) trigger on EMA 72 and EMA 126 pullbacks with momentum resumption.
CHOP State Autopilot
Automatically closes open positions when CHOP begins, preventing sideways market exposure.
Precision Take-Profits & Pivots-Based Stop Losses
Real-time adaptive exits using pivot high/low swing points as dynamic SL/TP anchors.
Customizable Parameters
Pivot length (left/right)
ADX thresholds
Rebound tolerance bands
Ribbon display and state-labels
📊 Indicator Components:
📏 EMA Ribbon: 72, 89, 126, 267, 360, 445
📉 ADX Filter: Filters out sideways noise, confirms directional bias
🔁 Crossover Events: Detects trend initiations
🌀 Cycle Labels: Real-time visual display of current market state
🛠️ Ideal Use Cases:
Scalping volatile markets
Automated strategy testing & optimization
Entry/exit signal confirmation for discretionary traders
Trend filtering in algorithmic stacks
⚠️ Notes:
ANTI cycle logic is scaffolded but not fully deployed in this version. It will be extended in a future release for deep mean-reversion detection.
Tailor ADX floor and pivot sensitivity to your specific asset and timeframe for optimal performance.
Pullback Pro Dow Strategy v7 (ADX Filter)
### **Strategy Description (For TradingView)**
#### **Title:** Pullback Pro: Dow Theory & ADX Strategy
---
#### **1. Summary**
This strategy is designed to identify and trade pullbacks within an established trend, based on the core principles of Dow Theory. It uses market structure (pivot highs and lows) to determine the trend direction and an Exponential Moving Average (EMA) to pinpoint pullback entry opportunities.
To enhance trade quality and avoid ranging markets, an ADX (Average Directional Index) filter is integrated to ensure that entries are only taken when the trend has sufficient momentum.
---
#### **2. Core Logic: How It Works**
The strategy's logic is broken down into three main steps:
**Step 1: Trend Determination (Dow Theory)**
* The primary trend is identified by analyzing recent pivot points.
* An **Uptrend** is confirmed when the script detects a pattern of higher highs and higher lows (HH/HL).
* A **Downtrend** is confirmed by a pattern of lower highs and lower lows (LH/LL).
* If neither pattern is present, the strategy considers the market to be in a range and will not seek trades.
**Step 2: Entry Signal (Pullback to EMA)**
* Once a clear trend is established, the strategy waits for a price correction.
* **Long Entry:** In a confirmed uptrend, a long position is initiated when the price pulls back and crosses *under* the specified EMA.
* **Short Entry:** In a confirmed downtrend, a short position is initiated when the price rallies and crosses *over* the EMA.
**Step 3: Confirmation & Risk Management**
* **ADX Filter:** To ensure the trend is strong enough to trade, an entry signal is only validated if the ADX value is above a user-defined threshold (e.g., 25). This helps filter out weak signals during choppy or consolidating markets.
* **Stop Loss:** The initial Stop Loss is automatically and logically placed at the last market structure point:
* For long trades, it's placed at the `lastPivotLow`.
* For short trades, it's placed at the `lastPivotHigh`.
* **Take Profit:** Two Take Profit levels are calculated based on user-defined Risk-to-Reward (R:R) ratios. The strategy allows for partial profit-taking at the first target (TP1), moving the remainder of the position to the second target (TP2).
---
#### **3. Input Settings Explained**
**① Dow Theory Settings**
* **Pivot Lookback Period:** Determines the sensitivity for detecting pivot highs and lows. A smaller number makes it more sensitive to recent price swings; a larger number focuses on more significant, longer-term pivots.
**② Entry Logic (Pullback)**
* **Pullback EMA Length:** Sets the period for the Exponential Moving Average used to identify pullback entries.
**③ Risk & Exit Management**
* **Take Profit 1 R:R:** Sets the Risk-to-Reward ratio for the first take-profit target.
* **Take Profit 1 (%):** The percentage of the position to be closed when TP1 is hit.
* **Take Profit 2 R:R:** Sets the Risk-to-Reward ratio for the final take-profit target.
**④ Filters**
* **Use ADX Trend Filter:** A master switch to enable or disable the ADX filter.
* **ADX Length:** The lookback period for the ADX calculation.
* **ADX Threshold:** The minimum ADX value required to confirm a trade signal. Trades will only be placed if the ADX is above this level.
---
#### **4. Best Practices & Recommendations**
* This is a trend-following system. It is designed to perform best in markets that exhibit clear, sustained trending behavior.
* It may underperform in choppy, sideways, or strongly ranging markets. The ADX filter is designed to help mitigate this, but no filter is perfect.
* **Crucially, you must backtest this strategy thoroughly** on your preferred financial instrument and timeframe before considering any live application.
* Experiment with the `Pivot Lookback Period`, `Pullback EMA Length`, and `ADX Threshold` to optimize performance for a specific market's characteristics.
---
#### **DISCLAIMER**
This script is provided for educational and informational purposes only. It does not constitute financial advice. All trading involves a high level of risk, and past performance is not indicative of future results. You are solely responsible for your own trading decisions. The author assumes no liability for any financial losses you may incur from using this strategy. Always conduct your own research and due diligence.
Ticker Pulse Meter + Fear EKG StrategyDescription
The Ticker Pulse Meter + Fear EKG Strategy is a technical analysis tool designed to identify potential entry and exit points for long positions based on price action relative to historical ranges. It combines two proprietary indicators: the Ticker Pulse Meter (TPM), which measures price positioning within short- and long-term ranges, and the Fear EKG, a VIX-inspired oscillator that detects extreme market conditions. The strategy is non-repainting, ensuring signals are generated only on confirmed bars to avoid false positives. Visual enhancements, such as optional moving averages and Bollinger Bands, provide additional context but are not core to the strategy's logic. This script is suitable for traders seeking a systematic approach to capturing momentum and mean-reversion opportunities.
How It Works
The strategy evaluates price action using two key metrics:
Ticker Pulse Meter (TPM): Measures the current price's position within short- and long-term price ranges to identify momentum or overextension.
Fear EKG: Detects extreme selling pressure (akin to "irrational selling") by analyzing price behavior relative to historical lows, inspired by volatility-based oscillators.
Entry signals are generated when specific conditions align, indicating potential buying opportunities. Exits are triggered based on predefined thresholds or partial position closures to manage risk. The strategy supports customizable lookback periods, thresholds, and exit percentages, allowing flexibility across different markets and timeframes. Visual cues, such as entry/exit dots and a position table, enhance usability, while optional overlays like moving averages and Bollinger Bands provide additional chart context.
Calculation Overview
Price Range Calculations:
Short-Term Range: Uses the lowest low (min_price_short) and highest high (max_price_short) over a user-defined short lookback period (lookback_short, default 50 bars).
Long-Term Range: Uses the lowest low (min_price_long) and highest high (max_price_long) over a user-defined long lookback period (lookback_long, default 200 bars).
Percentage Metrics:
pct_above_short: Percentage of the current close above the short-term range.
pct_above_long: Percentage of the current close above the long-term range.
Combined metrics (pct_above_long_above_short, pct_below_long_below_short) normalize price action for signal generation.
Signal Generation:
Long Entry (TPM): Triggered when pct_above_long_above_short crosses above a user-defined threshold (entryThresholdhigh, default 20) and pct_below_long_below_short is below a low threshold (entryThresholdlow, default 40).
Long Entry (Fear EKG): Triggered when pct_below_long_below_short crosses under an extreme threshold (orangeEntryThreshold, default 95), indicating potential oversold conditions.
Long Exit: Triggered when pct_above_long_above_short crosses under a profit-taking level (profitTake, default 95). Partial exits are supported via a user-defined percentage (exitAmt, default 50%).
Non-Repainting Logic: Signals are calculated using data from the previous bar ( ) and only plotted on confirmed bars (barstate.isconfirmed), ensuring reliability.
Visual Enhancements:
Optional moving averages (SMA, EMA, WMA, VWMA, or SMMA) and Bollinger Bands can be enabled for trend context.
A position table displays real-time metrics, including open positions, Fear EKG, and Ticker Pulse values.
Background highlights mark periods of high selling pressure.
Entry Rules
Long Entry:
TPM Signal: Occurs when the price shows strength relative to both short- and long-term ranges, as defined by pct_above_long_above_short crossing above entryThresholdhigh and pct_below_long_below_short below entryThresholdlow.
Fear EKG Signal: Triggered by extreme selling pressure, when pct_below_long_below_short crosses under orangeEntryThreshold. This signal is optional and can be toggled via enable_yellow_signals.
Entries are executed only on confirmed bars to prevent repainting.
Exit Rules
Long Exit: Triggered when pct_above_long_above_short crosses under profitTake.
Partial exits are supported, with the strategy closing a user-defined percentage of the position (exitAmt) up to four times per position (exit_count limit).
Exits can be disabled or adjusted via enable_short_signal and exitPercentage settings.
Inputs
Backtest Start Date: Defines the start of the backtesting period (default: Jan 1, 2017).
Lookback Periods: Short (lookback_short, default 50) and long (lookback_long, default 200) periods for range calculations.
Resolution: Timeframe for price data (default: Daily).
Entry/Exit Thresholds:
entryThresholdhigh (default 20): Threshold for TPM entry.
entryThresholdlow (default 40): Secondary condition for TPM entry.
orangeEntryThreshold (default 95): Threshold for Fear EKG entry.
profitTake (default 95): Exit threshold.
exitAmt (default 50%): Percentage of position to exit.
Visual Options: Toggle for moving averages and Bollinger Bands, with customizable types and lengths.
Notes
The strategy is designed to work across various timeframes and assets, with data sourced from user-selected resolutions (i_res).
Alerts are included for long entry and exit signals, facilitating integration with TradingView's alert system.
The script avoids repainting by using confirmed bar data and shifted calculations ( ).
Visual elements (e.g., SMA, Bollinger Bands) are inspired by standard Pine Script practices and are optional, not integral to the core logic.
Usage
Apply the script to a chart, adjust input settings to suit your trading style, and use the visual cues (entry/exit dots, position table) to monitor signals. Enable alerts for real-time notifications.
Designed to work best on Daily timeframe.