Rolling VWAP by VibieRolling VWAP
🧠 Concept
Rolling VWAP is a continuously updating VWAP that doesn’t reset at fixed anchors like daily or weekly VWAP.
Instead, it applies VWAP calculation to a moving window of recent bars, making it more adaptive and responsive to current market conditions.
⸻
⚙️ How It Works
1. VWAP Formula
• VWAP = Σ(price × volume) ÷ Σ(volume) over a rolling lookback period.
2. Rolling Window
• The indicator calculates VWAP only for the last N bars (e.g., 50).
• As each new bar appears, the oldest drops out, creating a continuously updated VWAP line.
3. Real-Time Adjustment
• Rolling VWAP constantly shifts with new data, tracking short-term fair value as market conditions evolve.
⸻
🧭 How to Use
• Intraday trading → use short rolling windows (20–50 bars) for scalping and mean reversion setups.
• Swing trading → use longer windows (e.g., 10 days) to track medium-term fair value.
• Rolling VWAP acts as dynamic support/resistance and can serve as a trend filter.
⸻
🌟 Why It’s Original and Useful
• Reacts faster to volume changes than anchored VWAP.
• Continuously represents short-term fair price without session resets.
• Excellent for adaptive strategies in volatile markets.
• Particularly valuable for active day traders.
Wskaźniki i strategie
Aggregated VWAP by VibieAggregated VWAP (Professional Layout)
🧠 Concept
VWAP (Volume Weighted Average Price) is a widely used institutional benchmark for fair price.
This indicator enhances standard VWAP by aggregating multiple exchanges, adding standard deviation bands, and offering two visualization modes (bands or lines), providing a professional-grade VWAP analysis tool.
⸻
⚙️ How It Works
1. VWAP Calculation
• VWAP = Σ(price × volume) ÷ Σ(volume), using hlc3 as price reference.
• The indicator supports multiple anchor periods: Daily, Weekly, Monthly, Quarterly, and Yearly.
2. Exchange Aggregation
• VWAP values are aggregated from Binance, Bybit, and Coinbase to compute a market-wide VWAP.
• This prevents bias from a single exchange.
3. Standard Deviation Bands
• Plots ±1σ, ±2σ, ±3σ, ±4σ bands around VWAP.
• These show statistical extremes relative to fair value and act as dynamic overbought/oversold zones.
4. Display Modes
• Bands Mode → continuous VWAP and deviation bands.
• Lines Mode → plots VWAP and deviation levels as fixed horizontal lines for each completed period (e.g., pWeek VAL, dMonth VWAP).
⸻
🧭 How to Use
• VWAP levels act as dynamic support/resistance.
• Deviation bands highlight statistically stretched price areas.
• Previous period VWAP levels (e.g., pWeek, pMonth) often act as institutional reference points.
• Ideal for both swing and intraday trading strategies.
⸻
🌟 Why It’s Original and Useful
• Uses aggregated data for more reliable VWAP calculations.
• Integrates standard deviations, period anchoring, and labeling into one tool.
• Professional layout mirrors institutional analysis techniques.
• Extremely versatile for trend following, mean reversion, and breakout systems.
High volume bar by VibieHigh Volume Bar with Extended vPOC (Aggregation Enabled)
🧠 Concept
This indicator is designed to detect institutional activity and large traders by using statistical volume analysis and identifying key intrabar liquidity levels.
It applies Z-Score volume analysis to highlight unusually high volume candles and marks the Volume Point of Control (vPOC) inside each detected bar — the price level where the most volume was transacted.
⸻
⚙️ How It Works
1. Z-Score Volume Analysis
• The indicator calculates how far current volume deviates from its historical average using standard deviations (Z-Score).
• When the Z-Score exceeds the user-defined threshold, the candle is flagged as a High Volume Bar (HVB).
2. Multi-Exchange Aggregation
• Volumes from Binance, Bybit, and Coinbase can be aggregated into a composite volume metric.
• This provides a broader and more accurate market perspective, minimizing anomalies from individual exchanges.
3. Candle Coloring
• Bullish HVB → entire candle (body + wicks) is colored blue.
• Bearish HVB → entire candle is colored red.
• This makes large volume events immediately visible on the chart.
4. vPOC Detection
• The script examines a lower timeframe (e.g., 1 minute) within the HVB to find the price level with the highest traded volume.
• A horizontal line is drawn at that price and can be extended for multiple bars, marking a short-term liquidity zone that often acts as support or resistance.
⸻
🧭 How to Use
• vPOC levels frequently act as liquidity magnets and are often retested after the HVB appears.
• Bullish HVB + vPOC below current price = potential long entry zone.
• Bearish HVB + vPOC above price = potential short entry zone.
• Useful for identifying institutional absorption, stop runs, or hidden accumulation/distribution.
⸻
🌟 Why It’s Original and Useful
• Combines statistical volume analysis (Z-Score) with intrabar volume profiling.
• Aggregates multiple exchanges for broader accuracy.
• Offers precise liquidity levels that classic indicators don’t provide.
• Especially valuable for advanced traders looking for institutional footprints.
BTC Price Spread Heatmap (Coinbase vs Binance (chart symbol))Observation was made about price spread varying among exchanges. Original event took place Oct 4-5th. BIN/BTC was about 1K lower than COIN/BTC.
Implemented a visualization to capture specifically Binance and coinbase spread comparison. This may lend as a tool to help build a case if there is a correlation. At this time Binance holds 43.1% of the market share and coinbase a mear 5.5%...
ProfitsMaxx MoneyScalp ProfitsMaxx Money Scalp is a next-generation scalping indicator built for traders who want precision, speed, and consistency in fast-moving markets. It combines advanced price action analytics, momentum tracking, and volatility filters to identify high-probability entry and exit points with exceptional accuracy. Whether you trade crypto, forex, or indices, ProfitsMaxx Money Scalp adapts seamlessly to different market conditions — from strong trends to choppy consolidations — ensuring you never miss an opportunity. Designed for lower timeframes like M1 to M15, it delivers real-time scalp signals, helping traders execute with confidence and control. With its clean visuals, minimal noise, and reliable alerts, ProfitsMaxx Money Scalp transforms complex market data into clear trading insights. Trade smarter, react faster, and maximize your profits with ProfitsMaxx — your edge in the world of scalping.
Visit this website to get access: www.profitsmaxx.com
MA Disparity (乖離率%)このインジケータは、現在の終値と移動平均線(SMAまたはEMA)との**乖離率(かいりりつ)**を%で表示します。
「価格が移動平均線からどれだけ離れているか」を視覚的に把握することで、**過熱感(買われすぎ/売られすぎ)**を判断できます。
設定で期間(例:20日、25日など)を自由に変更可能
SMA/EMAの選択が可能
0%ラインを基準として、プラス側は上方乖離、マイナス側は下方乖離を示します
トレンドの勢い確認、押し目・戻り目の判断にも活用できます
📊 例:
+10%以上 → 短期的な過熱感
-10%以下 → 売られすぎの可能性
---
This indicator displays the disparity ratio (price deviation) between the current close and a moving average (SMA or EMA), expressed in percentage.
It helps visualize how far the price has moved away from its average — a useful signal for identifying overbought or oversold conditions.
Adjustable period (e.g., 20, 25, 50, etc.)
Selectable MA type (SMA or EMA)
0% baseline: positive values = above MA, negative = below MA
Great for spotting trend strength, pullbacks, and reversals
📈 Example:
+10% → potential overbought zone
-10% → potential oversold zone
---
#Kairi #Disparity #MovingAverage #Volume #SMA #EMA #Overbought #Oversold #Japan
Volume Peak (2 before & 2 after) - FixedThe option to detect volume peaks higher than the surrounding bars.
Twisted Forex's Doji + Area StrategyTitle
Twisted Forex’s Doji + Area Strategy
Description
What this strategy does
This strategy looks for doji candles forming inside or near supply/demand areas . Areas are built from swing pivots and sized with ATR, then tracked for retests (“confirmations”). When a doji prints close to an area and quality checks pass, the strategy places a trade with the stop beyond the doji and a configurable R:R target.
How areas (zones) are built
• Swings are detected with a user-set pivot length.
• Each swing spawns a horizontal area centered at the pivot price with half-height = zoneHalfATR × ATR .
• Duplicates are de-duplicated by center distance (ATR-scaled).
• Areas fade when broken beyond a buffer or after an optional age (expiry).
• Retests are recorded when price touches and then bounces away from the area; repeated reactions increase the zone’s “strength”.
Signal logic (summary)
Doji detection: strict or loose body criteria with optional minimum wick fractions and ATR-scaled minimum range.
Proximity: price must be inside/near a supply or demand area (proxATR × ATR).
Side resolution: overlap is resolved by (a) which side price penetrates more, (b) fast/slow EMA trend, or (c) nearest distance. Optional “previous candle flip” can bias long after a bearish candle and short after a bullish one.
Optional 1-bar confirmation: the bar after the doji must close away from the area by confirmATR × ATR .
Quality filter (Off/Soft/Strict): four checks—(i) wick rejection past the edge, (ii) doji closes in an edge “band” of the area, (iii) fresh touch (cooldown), (iv) approach impulse over a short lookback. In Strict , thresholds auto-tighten.
Orders & exits
• Long: stop below doji low minus buffer; Short: above doji high plus buffer.
• Target = rrMultiple × risk distance .
• Pyramiding is off by default.
Position sizing
You can size from the script or from Strategy Properties:
• Script-driven (default): set Position sizing = “Risk % of equity” and choose riskPercent (e.g., 1.0%). The script applies safe floors/rounding (FX micro-lots by default) so quantity never rounds to zero.
• Properties-driven : toggle Use TV Properties → Order size ON, then pick “Percent of equity” in Properties (e.g., 1%). The header includes safe defaults so trades still place.
Key inputs to explore
• Zone building : pivotLen, zoneHalfATR, minDepartureATR, expiryBars, breakATR, leftBars, dedupeATR.
• Doji & proximity : strictDoji, dojiBodyFrac, minWickFrac, minRangeATR, proxATR, minBarsBetween.
• Overlap resolution : usePenetration, useTrend (EMA 21/55), “previous candle flip”, needNextBarConf & confirmATR.
• Quality : qualityMode (Off/Soft/Strict), minQualPass/kStrict, wickPenATR, edgeBandFrac, approachLookback, approachMinATR, freshTouchBars.
• Zone strength gating : minStrengthSoft / minStrengthStrict.
• HTF confluence (optional) : useHTFTrend (HTF EMA 34/89) and/or useHTFZoneProx (HTF swing bands).
Tips to make it cleaner / higher quality
• Turn needNextBarConf ON and use confirmATR = 0.10–0.15 .
• Increase approachMinATR (e.g., 0.35–0.45) to require a stronger pre-touch impulse.
• Raise minStrengthSoft/Strict (e.g., 4–6) so only well-reacted zones can signal.
• Use signalsOnlyConfirmed ON if you prefer trades only from zones with retests (the script falls back gracefully when none exist yet).
• Nudge proxATR to 0.5–0.6 to demand tighter proximity to the level.
• Optional: enable useHTFTrend to filter counter-trend setups.
Default settings used in this publication
• Initial capital: 100,000 (illustrative).
• Slippage: 1 tick; Commission: 0% (you can raise commission if you prefer—spread is partly modeled by slippage).
• Sizing: Risk % of equity via inputs; riskPercent = 1.0% ; FX uses micro-lot floors by default.
• Quality: Off by default (Soft/Strict available).
• HTF trend gate: Off by default.
Backtesting notes
For a meaningful sample size, test on liquid symbols/timeframes that yield 100+ trades (e.g., majors on 5–15m over 1–2 years). Backtests are modelled and broker costs/spread vary—validate on your feed and forward-test.
How to read the chart
Shaded bands are supply (above) and demand (below). Brighter bands are the nearest K per side (visual aid). BUY/SELL labels mark entries; colored dots show entry/SL/TP levels. You can hide zones or unconfirmed zones for a cleaner view.
Disclaimer
This is educational material, not financial advice. Trading involves risk. Always test and size responsibly.
Trend CandlesThis shows candlesticks that only follow the trend. So it will make it easier to know where the trend is going.
BIASThis setup is perfect for establishing a clear intraday bias on the Nasdaq. It works exceptionally well when combined with the 1-minute breakout strategy, helping traders identify high-probability entry points with precision. By filtering noise and highlighting key momentum shifts, it allows for confident decision-making throughout the trading session. Whether you're scalping quick moves or targeting short-term breakouts, this approach delivers consistent and actionable signals that align perfectly with the fast-paced nature of intraday Nasdaq trading.
1minute Nasdaq Breakout StrategyThe 1-Minute Nasdaq Breakout Strategy is a powerful intraday trading approach designed specifically for traders who thrive in fast-moving market conditions. Built for precision and speed, this strategy identifies key breakout levels on the 1-minute chart, allowing traders to capitalize on rapid momentum shifts and volatility spikes that often occur during the most active trading hours.
By combining real-time price action analysis with smart volatility filters, the strategy helps distinguish between genuine breakouts and false moves, ensuring only high-probability setups are captured. It’s ideal for scalpers and short-term traders who prefer multiple opportunities throughout the session while maintaining a structured risk-to-reward framework.
This strategy works exceptionally well on Nasdaq futures (NQ) or Nasdaq 100 stocks, leveraging the index’s natural volatility to generate quick, consistent profits. When used alongside proper trade management and bias confirmation tools—such as Supertrend, VWAP, or session-based levels—it becomes an invaluable part of any professional intraday trading system.
Whether you’re looking to refine your scalping edge or enhance your breakout playbook, the 1-Minute Nasdaq Breakout Strategy offers the perfect balance of simplicity, precision, and performance.
MTF Trend Dashboard LITE (Daily & 4H)Overview
The MTF Trend Dashboard LITE by G.C provides instant directional clarity between the Daily and 4-Hour timeframes using refined EMA (9 / 21) logic.
It’s built for traders who want simple, accurate trend confirmation without switching between multiple charts.
Why It Matters
One of the biggest causes of trading errors is timeframe conflict — seeing a bullish setup on one chart and a bearish signal on another.
This tool solves that problem by showing both the Daily and 4H structure side-by-side, using objective EMA-based logic.
When both agree, bias is strong. When they conflict, it’s a signal to wait.
Core Features
• Two-timeframe dashboard ( Daily + 4H )
• Non-repainting EMA (9 / 21) logic
• Color-coded states ( Bullish / Bearish / Neutral )
• Lightweight and easy to read
• Adjustable panel position: Top Right / Top Left / Bottom Right / Bottom Left
How to Use
Add the indicator to any chart.
Wait for both timeframes to align before entering trades.
Mixed signals often indicate sideways or transitional markets.
Combine with your existing trading strategy for confirmation.
Trend Condition Glossary
▲ STRONG BULLISH – EMA(9) well above EMA(21) and both sloping upward. Strong upward momentum with price above both EMAs.
BULLISH – EMA(9) above EMA(21) but weaker slope or price confirmation. Moderate uptrend or early recovery.
NEUTRAL – EMAs crossing or flat. Market lacks structure — consolidation or indecision.
▼ BEARISH – EMA(9) below EMA(21) with limited slope. Mild correction or early reversal.
▼ STRONG BEARISH – EMA(9) below EMA(21), both sloping down, price below both. Strong downtrend, clear seller control.
Who It’s For
Traders who want a clean, no-noise confirmation tool to simplify directional bias decisions in swing and intraday setups.
Disclaimer
This indicator is for analytical and educational purposes only. Always trade with discipline, patience, and sound risk management.
K线计数竖线 - 贯穿屏幕Used to mark the past N k-lines to facilitate understanding of the running direction of the moving average
Ngo Gia Minh Quy 30Indicator xin vai ca lon a. Dung indicator nay trade thua nua thi nghi me no di. hahahahaha
Daily High/Low/Mid (Prev Day Extended Split)Very usefull indicator to understand yesterday"s high low middle and next day"s high low middle in every chart, even in renko chart. try it...
Trend Direction Indicator//This indicator simply tells the trend direction and created for listing achieves which simplifies the shares those have an UP direction.
Ngo Gia Minh Quy 50Indicator xin vai ca lon a. Dung indicator nay trade thua nua thi nghi me no di. hahahahaha
The Real Dynamic Lookback Asaf BitonThe Real Dynamic Lookback – Asaf Biton
This indicator dynamically tracks historical candles at predefined lookback intervals (in hours) and visually highlights them on the chart.
Dynamic Lookback Arrows: Marks candles from the chosen lookback groups (3h, 6h, 12h, … up to 336h) with arrows. Colors indicate whether the candle falls on the same New York trading day or not.
HUD Panel: Displays real-time information about the closest candle that overlaps with the current price range, including its price, date, day, and time.
Also Touching: If multiple candles overlap with the current bar, the closest one in time is prioritized, and the rest are listed as "Also touching".
Nearest Candle: If no overlap occurs, the HUD shows the nearest candle in terms of price proximity.
Timeframe Restriction: Works only on 15m, 30m, and 1h charts to maintain accuracy.
Customization: Users can enable or disable different lookback groups and toggle HUD/arrows.
This tool is useful for identifying recurring price reactions, time-based cycles, and historical reference points in a structured, visual way.
📌 תיאור בעברית
The Real Dynamic Lookback – אסף ביטון
האינדיקטור מזהה ומציג נרות היסטוריים לפי מחזורי זמן מוגדרים מראש (בשעות), ומסמן אותם באופן ויזואלי על הגרף.
חצים דינמיים: סימון נרות במחזורי זמן נבחרים (3h, 6h, 12h ועד 336h). הצבע משתנה בהתאם אם הנר נמצא באותו יום מסחר בניו יורק או לא.
תצוגת HUD: מציגה בזמן אמת את הנר הקרוב ביותר שנוגע בטווח המחירים של הנר הנוכחי, כולל המחיר, התאריך, היום והשעה.
Also Touching: כאשר יותר מנר אחד נוגע בטווח הנר הנוכחי, האינדיקטור נותן עדיפות לנר הקרוב ביותר בזמן ואת השאר מציג ברשימה.
Nearest Candle: אם אין נרות שנוגעים במחיר הנוכחי, מוצג הנר הקרוב ביותר מבחינת מרחק מחיר.
מגבלת טיים פריים: עובד אך ורק על גרפים של 15 דקות, 30 דקות או שעה, לשמירה על דיוק.
התאמה אישית: ניתן לבחור אילו קבוצות מחזורי זמן להפעיל ולהחליט האם להציג חצים ו-HUD.
האינדיקטור מיועד לניתוח חזרות מחירים, מחזורי זמן והשוואה לנקודות היסטוריות בצורה ברורה ונוחה.
No Supply (Low-Volume Down Bars) — IdoThis indicator flags classic Wyckoff/VSA “No Supply (NS)” events—down bars that print on unusually low volume, suggesting a lack of sellers rather than strong selling pressure. NS often appears near support, LPS, or within re-accumulation ranges as a test before continuation higher.
Signal definition (configurable):
Down bar: choose Close < PrevClose or Close < Open.
Low volume: Volume < SMA(Volume, len) × threshold (e.g., 0.7).
Optional volume lower than the prior two bars (reduces noise).
Optional narrow spread: range (H–L) below its average.
Optional close position: close in the upper half of the bar.
Optional trend filter: only mark NS above or below an EMA (or any).
Optional wide-bar exclusion: skip unusually wide bars.
Visuals & outputs
Blue dot below each NS bar (optional bar tint).
Separate pane showing Relative Volume (vol / volSMA) to gauge effort.
Built-in alertcondition to trigger notifications when NS prints.
Inputs (high level)
lenVol: Volume SMA length.
ratioVol: Volume threshold vs. average (e.g., 0.7 = 70%).
usePrev2: Require volume below each of the prior two bars.
useNarrow + lenRange + ratioRange: Narrow-bar filter.
useClosePos + minClosePos: Close in upper portion of the bar.
downBarMode: Define “down bar” logic.
trendFiltOn, trendLen, trendSide: EMA trend filter.
useWideFilter, lenRangeWide, wideThreshold: Skip wide bars.
How to use (Wyckoff/VSA context)
Treat NS as a test of supply: price dips, but volume is light and close holds up.
Stronger when it prints near support/LPS within a re-accumulation structure.
Confirmation (recommended): within 1–3 bars, see demand—e.g., break above the NS high with expanding volume (above average or above the prior two bars). Many traders place a buy-stop just above the NS high; common stops are below the NS low or the most recent swing low.
Scanning tip
TradingView’s stock screener can’t consume Pine directly.
Use a Watchlist Custom Column that reports “bars since NS” to sort symbols (0 = NS on the latest bar). A companion column script is provided separately.
Notes & limitations
Works on any timeframe (intraday/daily/weekly), but context matters.
Expect false positives around news, gaps, or illiquid symbols—combine with structure (trend, S/R, phases) and risk management.
© moshel — Educational use only; not financial advice.
BSP Aggressive - JarassTitle / Short Description:
BSP Aggressive – Early Trend & Smart Money Detector
Description:
Unlock the power of market insight with BSP Aggressive, the enhanced Buy/Sell Pressure indicator designed for proactive traders. Spot early trend shifts and identify where the “real money” enters the market—before price reacts!
Why BSP Aggressive?
• ⚡ Early Trend Detection: Delta line and pressure columns highlight potential trend reversals ahead of price.
• 💰 Smart Money Visibility: Green columns = strong buying, red columns = strong selling. Know where big players are active.
• 🎯 Noise Reduction: Filters out insignificant trades using volume thresholds, keeping your signals clear.
• ⏱ Intraday Friendly: Perfect for 1-min, 5-min, and 15-min charts, but adaptable to higher timeframes.
• 🛠 Trend Context: Hull MA-based coloring ensures signals align with the current market trend.
How to Use:
1. Look for green columns + rising delta → potential early uptrend.
2. Look for red columns + falling delta → potential early downtrend.
3. Ignore small, filtered columns → reduce false signals.
4. Combine with support/resistance or other trend tools for maximum accuracy.
Disclaimer:
For educational and analytical purposes only. Not a guaranteed predictor of price movements. Always use proper risk management
f.aYou can use it for Dow Jones as well. For gold at the 4:30 timeframe, you can occasionally enter with confirmation from liquidity and numeric signals—just follow the bars until you reach the target.
Euro Area vs US10YThe Euro Area GDP-Weighted Yield vs US10Y Spread is a macroeconomic indicator designed for forex traders and institutional investors who want to monitor the fundamental interest rate differential between the Eurozone and the United States. This tool aggregates sovereign bond yields from the major Eurozone member states using a weighted methodology based on outstanding government debt, providing a comprehensive view of the Euro Area’s fixed income market dynamics.
This indicator calculates a composite 10-year government bond yield for the Eurozone by combining data from seven major member countries: Germany, France, Italy, Spain, Netherlands, Belgium, and Austria. The weights are based on the proportion of government debt outstanding in each country, reflecting the actual composition of the European sovereign bond market rather than just GDP size.
The indicator then compares this Euro Area weighted yield against the US 10-Year Treasury yield (US10Y), producing a yield spread that serves as a powerful leading indicator for EUR/USD price movements.
FirstStrike Long 200 - Daily Trend Rider [KedArc Quant]Strategy Description
FirstStrike Long 200 is a disciplined, long-only momentum strategy designed for daily "strike-first" entries in trending markets. It scans for RSI momentum above a customizable trigger (default 50), confirmed by EMA trend filters, and limits you to *exactly one trade per day* to avoid overtrading. It uses ATR for dynamic risk management (1.5x stop, 2:1 RR target) and optional trailing stops to ride winners. Backtested with realistic commissions and sizing, it prioritizes low drawdowns (<1% max in tests) over aggressive gains—ideal for swing traders seeking quality setups in bull runs.
Why It's Different from Other Strategies
Unlike generic RSI crossover bots or EMA ribbon mashups that spam signals and bleed in chop, FirstStrike enforces a "one-and-done" daily gate, blending precision momentum (RSI modes with grace/sustain) with robust filters (volume, sessions, rearm dips).
How It Helps Traders
- Reduces Emotional Trading: One entry/day forces discipline—miss a setup? Wait for tomorrow. Perfect for busy pros avoiding screen fatigue.
- Adapts to Regimes: Switch modes for trends ("Cross+Grace") vs. ranges ("Any bar")—boosts win rates 5-10% in backtests on high-beta names like .
- Risk-First Design: ATR scales stops to vol capping DD at 0.2% while targeting 2R winners. Trailing option locks +3-5% runs without early exits.
- Quick Insights: Labels/alerts flag entries with RSI values; bgcolor highlights signals for visual scanning. Helps spot "first-strike" edges in uptrends, filtering ~60% noise.
Why This Is Not a Mashup
This isn't a Frankenstein of off-the-shelf indicators—while it uses standard RSI/EMA/ATR (core Pine primitives), the innovation lies in:
- Custom Trigger Engine: Switchable modes (e.g., "Cross+Grace+Sustain" requires post-cross hold) prevent perpetual signals, unlike basic `ta.crossover()`.
- Daily Rearm Gate: Resets eligibility only after a dip (if enabled), tying momentum to mean-reversion—original logic not found in common scripts.
- Per-Day Isolation: `var` vars + `ta.change(time("D"))` ensure zero pyramiding/overlaps, beyond simple session filters.
All formulae are derived in-house for "first-strike" (early RSI pops in trends), not copied from public repos.
Input Configurations
Let's break down every input in the FirstStrike Long 200 strategy. These settings let you tweak the strategy like a dashboard—start with defaults for quick testing,
then adjust based on your asset or timeframe (5m for intraday). They're grouped logically to keep things organized, and most have tooltips in the script for quick reminders.
RSI / Trigger Group: The Heart of Momentum Detection
This is where the magic starts—the strategy hunts for "upward energy" using RSI (Relative Strength Index), a tool that measures if a stock is overbought (too hot) or oversold (too cold) on a 0-100 scale.
- RSI Length: How many bars (candles) back to calculate RSI. Default is 14, like a 14-day window for daily charts. Shorter (e.g., 9) makes it snappier for fast markets; longer (21) smooths out noise but misses quick turns.
- Trigger Level (RSI >= this): The key RSI value where the strategy says, "Go time!" Default 50 means enter when RSI crosses or holds above the neutral midline. Why is this trigger required? It acts as your "green light" filter—without it, you'd enter on every tiny price wiggle, leading to endless losers. RSI above this shows building buyer power, avoiding weak or sideways moves. It's essential for quality over quantity, especially in one-trade-per-day setups.
- Trigger Mode: Picks how strict the RSI signal must be. Options: "Cross only" (exact RSI crossover above trigger—super precise, fewer trades); "Cross+Grace" (crossover or within a grace window after—gives a second chance); "Cross+Grace+Sustain" (crossover/grace plus RSI holding steady for bars—best for steady climbs); "Any bar >= trigger" (looser, any bar above—more opportunities but riskier in chop). Start with "Any bar" for trends, switch to "Cross only" for caution.
- Grace Window (bars after cross): If mode allows, how many bars post-RSI-cross you can still enter if RSI dips but recovers. Default 30 (about 2.5 hours on 5m). Zero means no wiggle room—pure precision.
- Sustain Bars (RSI >= trigger): In sustain mode, how many straight bars RSI must stay above trigger. Default 3 ensures it's not a fluke spike.
- Require RSI Dip Below Rearm Before Any Entry?: A yes/no toggle. If on, the strategy "rearms" only after RSI dips below a low level (like a breather), preventing back-to-back signals in overextended rallies.
- Rearm Level (if requireDip=true): The dip threshold for rearming. Default 45—RSI must go below this to reset eligibility. Lower (30) for deeper pullbacks in volatile stocks.
For the trigger level itself, presets matter a lot—default 50 is neutral and versatile for broad trends. Bump to 55-60 for "strong momentum only" (fewer but higher-win trades, great in bull runs like tech surges); drop to 40-45 for "early bird" catches in recoveries (more signals but watch for fakes in ranges). The optimize hint (40-60) lets you test these in TradingView to match your risk—higher presets cut noise by 20-30% in backtests.
Trend / Filters Group: Keeping You on the Right Side of the Market
These EMAs (Exponential Moving Averages) act like guardrails, ensuring you only long in uptrends.
- EMA (Fast) Confirmation: Short-term EMA for price action. Default 20 periods—price must be above this for "recent strength." Shorter (10) reacts faster to intraday pops.
- EMA (Trend Filter): Long-term EMA for big-picture trend. Default 200 (classic "above the 200-day" rule)—price above it confirms bull market. Minimum 50 to avoid over-smoothing.
Optional Hour Window Group: Timing Your Strikes
Avoid bad hours like lunch lulls or after-hours tricks.
- Restrict by Session?: Yes/no for using exact market hours. Default off.
- Session (e.g., 0930-1600 for NYSE): Time string like "0930-1600" for open to close. Auto-skips pre/post-market noise.
- Restrict by Hour Range?: Fallback yes/no for simple hours. Default off.
- Start Hour / End Hour: Clock times (0-23). Defaults 9-15 ET—focus on peak volume.
Volume Filter Group: No Volume, No Party
Confirms conviction—big moves need big participation.
- Require Volume > SMA?: Yes/no toggle. Default off—only fires on above-average volume.
- Volume SMA Length: Periods for the average. Default 20—compares current bar to recent norm.
Risk / Exits Group: Protecting and Profiting Smartly
Dynamic stops based on volatility (ATR = Average True Range) keep things realistic.
- ATR Length: Bars for ATR calc. Default 14—measures recent "wiggle room" in price.
- ATR Stop Multiplier: How far below entry for stop-loss. Default 1.5x ATR—gives breathing space without huge risk
- Take-Profit R Multiple: Reward target as multiple of risk. Default 2.0 (2:1 ratio)—aims for twice your stop distance.
- Use Trailing Stop?: Yes/no for profit-locking trail. Default off—activates after entry.
- Trailing ATR Multiplier: Trail distance. Default 2.0x ATR—looser than initial stop to let winners run.
These inputs make the strategy plug-and-play: Defaults work out-of-box for trending stocks, but tweak RSI trigger/modes first for your style.
Always backtest changes—small shifts can flip a 40% win rate to 50%+!
Outputs (Visuals & Alerts):
- Plots: Blue EMA200 (trend line), Orange EMA20 (price filter), Green dashed entry price.
- Labels: Green "LONG" arrow with RSI value on entries.
- Background: Light green highlight on signal bars.
- Alerts: "FirstStrike Long Entry" fires on conditions (integrates with TradingView notifications).
Entry-Exit Logic
Entry (Long Only, One Per Day):
1. Daily Reset: New day clears trade gate and (if required) rearm status.
2. Filters Pass: Time/session OK + Close > EMA200 (trend) + Close > EMA20 (price) + Volume > SMA (if enabled) + Rearmed (dip below rearm if toggled).
3. Trigger Fires: RSI >= trigger via selected mode (e.g., crossover + grace window).
4. Execute: Enter long at close; set daily flag to block repeats.
Exit:
- Stop-Loss: Entry - (ATR * 1.5) – dynamic, vol-scaled.
- Take-Profit: Entry + (Risk * 2.0) – fixed RR.
- Trailing (Optional): Activates post-entry; trails at Close - (ATR * 2.0), updating on each bar for trend extension.
No shorts or hedging—pure long bias.
Formulae Used
- RSI: `ta.rsi(close, rsiLen)` – Standard 14-period momentum oscillator (0-100).
- EMAs: `ta.ema(close, len)` – Exponential moving averages for trend/price filters.
- ATR: `ta.atr(atrLen)` – True range average for stop sizing: Stop = Entry - (ATR * mult).
- Volume SMA: `ta.sma(volume, volLen)` – Simple average for relative strength filter.
- Grace Window: `bar_index - lastCrossBarIndex <= graceBars` – Counts bars since RSI crossover.
- Sustain: `ta.barssince(rsi < trigger) >= sustainBars` – Consecutive bars above threshold.
- Session Check: `time(timeframe.period, sessionStr) != 0` – TradingView's built-in session validator.
- Risk Distance: `riskPS = entry - stop; TP = entry + (riskPS * RR)` – Asymmetric reward calc.
FAQ
Q: Why only one trade/day?
A: Prevents revenge trading in volatile sessions . Backtests show it cuts losers by 20-30% vs. multi-entry bots.
Q: Does it work on all assets/timeframes?
A: Best for trending stocks/indices on 5m-1H. Test on crypto/forex with wider ATR mult (2.0+).
Q: How to optimize?
A: Use TradingView's optimizer on RSI trigger (40-60) and EMA fast (10-30). Aim for PF >1.0 over 1Y data.
Q: Alerts don't fire—why?
A: Ensure `alertcondition` is enabled in script settings. Test with "Any alert() function calls only."
Q: Trailing stop too loose?
A: Tune `trailMult` to 1.5 for tighter; it activates alongside fixed TP/SL for hybrid protection.
Glossary
- Grace Window: Post-RSI-cross period (bars) where entry still allowed if RSI holds trigger.
- Rearm Dip: Optional pullback below a low RSI level (e.g., 45) to "reset" eligibility after signals.
- Profit Factor (PF): Gross profit / gross loss—>1.0 means winners outweigh losers.
- R Multiple: Risk units (e.g., 2R = 2x stop distance as target).
- Sustain Bars: Consecutive bars RSI stays >= trigger for mode confirmation.
Recommendations
- Backtest First: Run on your symbols (/) over 6-12M; tweak RSI to 55 for +5% win rate.
- Live Use: Start paper trading with `useSession=true` and `useVol=true` to filter noise.
- Pairs Well With: Higher TF (daily) for bias; add ADX (>25) filter for strong trends (code snippet in prior chats).
- Risk Note: 10% sizing suits $100k+ accounts; scale down for smaller. Not financial advice—past performance ≠ future.
- Publish Tip: Add tags like "momentum," "RSI," "long-only" on TradingView for visibility.
Strategy Properties & Backtesting Setup
FirstStrike Long 200 is configured with conservative, realistic backtesting parameters to ensure reliable performance simulations. These settings prioritize capital preservation and transparency, making it suitable for both novice and experienced traders testing on stocks.
Initial Capital
$100,000 Standard starting equity for portfolio-level testing; scales well for retail accounts. Adjust lower (e.g., $10k) for smaller simulations.
Base Currency
Default (USD) Aligns with most US equities (e.g., NASDAQ symbols); auto-converts for other assets.
Order Size
1 (Quantity) Fixed share contracts for simplicity—e.g., buys 1 share per trade. For % of equity, switch to "Percent of Equity" in strategy code.
Pyramiding
0 Orders No additional entries on open positions; enforces strict one-trade-per-day discipline to avoid overexposure.
Commission
0.1% Realistic broker fee (e.g., Interactive Brokers tier); factors in round-trip costs without over-penalizing winners.
Verify Price for Limit Orders
0 Ticks No slippage delay on TPs—assumes ideal fills for historical accuracy.
Slippage
0 Ticks Zero assumed slippage for clean backtests; real-world trading may add 1-2 ticks on volatile opens.
These defaults yield low drawdowns (<0.3% max in tests) while capturing trend edges. For live trading, enable slippage (1-3 ticks) to mimic execution gaps. Always forward-test before deploying!
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.