kaka 谈趋势The Exponential Moving Average (EMA) strategy is a popular technical analysis tool used in trading to smooth price data over a specific time period. The EMA gives more weight to recent prices, making it more responsive to recent price changes compared to the Simple Moving Average (SMA).
المؤشرات والاستراتيجيات
WarrIA Pro v4.0 - Whales Behavior Simulator# 🐋 WarrIA Pro V.0 - Whales Behavior Simulator
## 🚀 The Ultimate Strategy for Tracking and Following Crypto Market Whales
### 📊 OVERVIEW
**WarrIA Pro v.0 - Whales eresistance, VWAP, and POC
#### 4. **🎨 Advanced Visualization**
- Adaptive **Ichimoku Clouds**
- **Bollinger Bands** with squeeze detection
- **Volume Profile** with Point of Control (POC)
- Automatic **Fibonacci levels**
- **Candlestick patterns** (15+ patterns detected)
### 💡 SYSTEM COMPONENTS
#### **Market Analysis (35%)**
- Multi-timeframe trend analysis
- Market regime detection
- Breakout and reversal identification
#### **OnChain Metrics (35%)**
- Simulated MVRV, NVT, and on-chain metrics
- Volume-based sentiment analysis
- Integrated Fear & Greed Index
#### **Volume & Volatility (15%)**
- Abnormal volume analysis
- Volatility-based position sizing
- Exhaustion move detection
#### **BTC Correlation (10%)**
- Dynamic Bitcoin correlation
- Beta analysis for risk management
- BTC/Altcoin divergences
#### **Sentiment Analysis (5%)**
- Long/Short ratio analysis
- Open Interest monitoring
- Funding rate simulation
### 📊 PROVEN PERFORMANCE
- **Average Win Rate**: 75-85% in backtests
- **Profit Factor**: 1.5-2.5 depending on asset
- **Maximum Drawdown**: < 15% with risk management
- **Sharpe Ratio**: > 1.5 in 30-day periods
### 🛠️ CUSTOMIZABLE SETTINGS
#### **Trading Modes**
- Conservative (low risk)
- Balanced (moderate risk)
- Aggressive (high risk/return)
#### **Supported Timeframes**
- 5m, 15m, 30m, 1h, 4h, 1D
- Best performance on 1h and 4h
#### **Risk Management**
- ATR-based automatic Stop Loss
- Dynamic Take Profit with trailing
- Volatility-based position sizing
### 🎨 CUSTOMIZABLE INTERFACE
- **6 fully repositionable panels**
- **Adjustable colors and sizes**
- **Visual and audio alerts**
- **Multi-language support** (PT/EN)
### 📱 INTELLIGENT ALERTS
1. **Long/Short Entry** with high confluence
2. **Whale Activity** detected
3. **Stop Hunt** in progress
4. **RSI/MACD Divergences**
5. **Important pattern breakouts**
6. **Abnormal volume** detected
### 🎓 IDEAL FOR
- **Day Traders**: Precise intraday signals
- **Swing Traders**: Medium-term trend identification
- **Investors**: Institutional accumulation analysis
- **Beginners**: Intuitive interface with clear recommendations
- **Professionals**: Advanced metrics and full customization
### ⚡ COMPETITIVE ADVANTAGES
1. **Market-unique** whale behavioral analysis
2. **Proprietary AI** not available in other indicators
3. **Integrated backtesting** with real-time statistics
4. **Continuous support** and regular updates
5. **Exclusive Discord community**
### 🔧 REQUIREMENTS
- TradingView Pro, Pro+, or Premium
- Works on all markets (Crypto, Forex, Stocks)
- Optimized for Bitcoin and top 20 cryptocurrencies
### 💬 SUPPORT & COMMUNITY
- Exclusive Discord for users
- Detailed video tutorials
- Pre-configured settings for different markets
- Monthly updates with improvements
### ⚠️ IMPORTANT DISCLAIMERS
- Past results do not guarantee future performance
- Always use appropriate risk management
- This is an educational tool and does not constitute financial advice
- Test on demo account before using real capital
### 🏆 WARRANTY
- 30-day trial period
- Unlimited technical support
- Free updates for 1 year
---
**🔥 Join hundreds of traders already successfully following the whales!**
**💎 WarrIA Pro v.0 - Where Artificial Intelligence meets Smart Money**
---
*Version 0 | Last update: September 2025*
*© 2025 WarrIA Trading Systems - All rights reserved*
回撤再入场引擎This is a long-only, counter-trend strategy that aims to buy dips in a medium-term downtrend. The entry logic is based on a confluence of four filters:
1. **Trend Filter:** The price must be trading below the 60-period Simple Moving Average (SMA).
2. **Oversold Condition:** The WaveTrend Oscillator must first dip below -60 and then recover above -55.
3. **Momentum Confirmation:** The MACD must show sustained bullish momentum for at least 2 bars.
4. **Re-entry Filter:** A new trade is only allowed if the price is at least a certain percentage lower than the last trade's exit price.
The exit is based on a fixed Take Profit target. This version does not include a stop-loss.
TradeStockOnev4Professional Trading Strategy
Specializes in trading uptrends, riding long-term waves
Limits frequent entries
Suitable for medium- to long-term stock trading
C25_EngulfingEngulfing Testing Script. Best used for 5m MNQ futures. Can work on others with tweaks to parameters
Trade Stock One v3Professional Trading Strategy
Specializes in trading uptrends, riding long-term waves
Limits frequent entries
Suitable for medium- to long-term stock trading
Moon Phases Strategy [INVESTIC]This strategy is inspired by the natural rhythm of lunar cycles.
It automatically identifies important moon phases and translates them into trading opportunities.
The chart highlights key lunar turning points that historically coincide with shifts in market behavior.
The strategy then applies a time-based framework around these phases to decide when to enter and exit trades.
All calculations are fully automated, and users can adjust only a few simple inputs such as colors, timing offsets, and start date.
In essence, the system provides a way to align trades with the lunar cycle, capturing unique patterns that are not visible with conventional indicators.
Channel Breakout Gold For 15m 1hChannel Breakout – ATR Buffer + RR Fix
This strategy is designed for Gold (XAUUSD) on 15m and 1h timeframes, based on the “Channel Breakout” concept.
When price closes above or below the channel (highest/lowest over a given length), a Buy or Sell signal is triggered with automatic TP and SL placement.
Key Features:
✅ Uses ATR buffer to filter out false breakouts
✅ Customizable Risk:Reward Ratio (RR) for precise trade management
✅ Stop Loss automatically placed at the opposite channel for strong protection
✅ Real-time plotting of TP and SL lines for better visualization
✅ Works well for both Day Trading and Swing Trading
Best suited for traders who want:
- Clear breakout entries
- Robust risk management
- A versatile strategy adaptable to multiple timeframes
⚠️ Note:
- This strategy is for educational and testing purposes only, not financial advice.
- Always backtest/forward test and adjust parameters to fit your trading style and instrument.
================================================
กลยุทธ์ Channel Breakout – ATR Buffer + RR Fix
กลยุทธ์นี้ออกแบบมาเพื่อใช้กับทองคำ (XAUUSD) ใน Timeframe 15m และ 1h โดยอิงตามหลักการ “Channel Breakout”
เมื่อราคาเบรกกรอบบนหรือล่างของราคาย้อนหลัง (Channel Length) จะเกิดสัญญาณ Buy หรือ Sell ตามทิศทาง พร้อมกำหนดจุด TP และ SL อัตโนมัติ
คุณสมบัติเด่น:
✅ ใช้ ATR เป็น Buffer เพื่อลดสัญญาณหลอก (False Breakout)
✅ กำหนด Risk:Reward Ratio (RR) ได้เอง ทำให้ควบคุมกำไร/ขาดทุนต่อไม้ได้ชัดเจน
✅ SL ถูกตั้งที่กรอบตรงข้าม (Opposite Channel) เพื่อให้ป้องกันการกลับตัว
✅ แสดงเส้น TP/SL บนกราฟแบบ Real-Time ให้ผู้ใช้งานเห็นจุดออกชัดเจน
✅ ใช้งานได้ทั้ง Day Trade และ Swing Trade
เหมาะสำหรับเทรดเดอร์ที่ต้องการ:
- ระบบเบรกกรอบที่ชัดเจน
- การจัดการความเสี่ยงที่แม่นยำ
- กลยุทธ์ที่สามารถปรับใช้ได้กับหลาย Timeframe
⚠️ หมายเหตุ:
- กลยุทธ์นี้เป็นเครื่องมือช่วยวิเคราะห์ ไม่ใช่คำแนะนำการลงทุนโดยตรง
- ควรทดสอบ (Backtest/Forward test) และปรับค่าพารามิเตอร์ให้เหมาะกับสไตล์การเทรดและสินทรัพย์ที่ใช้งาน
DCA_v2.3A geometric DCA strategy with optional RSI filter.
First entry on RSI golden cross at 35 (configurable).
Subsequent entries on price drops with multiplier sizing.
Closes all positions at overall profit target (%).
Displays capital usage, planned allocation, and key levels.
For backtesting & research only. Not financial advice.
Tristan's Box: Pre-Market Range Breakout + RetestMarket Context:
This is designed for U.S. stocks, focusing on pre-market price action (4:00–9:30 AM ET) to identify key support/resistance levels before the regular session opens.
Built for 1 min and 5 min timelines, and is intended for day trading / scalping.
Core Idea:
Pre-market range (high/low) often acts as a magnet for price during regular hours.
The first breakout outside this range signals potential strong momentum in that direction.
Retest of the breakout level confirms whether the breakout is valid, avoiding false moves.
Step-by-Step Logic:
Pre-Market Range Identification:
Track high and low from 4:00–9:30 AM ET.
Draw a box spanning this range for visual reference and calculation.
Breakout Detection:
When the first candle closes above the pre-market high → long breakout.
When the first candle closes below the pre-market low → short breakout.
The first breakout candle is highlighted with a “YOLO” label for visual confirmation.
Retest Confirmation:
Identify the first candle whose wick touches the pre-market box (high touches top for short, low touches bottom for long).
Wait for the next candle: if it closes outside the box, it confirms the breakout.
Entry Execution:
Long entry: on the confirming candle after a wick-touch above the pre-market high.
Short entry: on the confirming candle after a wick-touch below the pre-market low.
Only the first valid entry per direction per day is taken.
Visuals & Alerts:
Box represents pre-market high/low.
Top/bottom box border lines show the pre-market high / low levels cleanly.
BUY/SELL markers are pinned to the confirming candle.
Added a "YOLO" marker on breakout candle.
Alert conditions trigger when a breakout is confirmed by the retest.
Strategy Type:
Momentum breakout strategy with confirmation retest.
Combines pre-market structure and risk-managed entries.
Designed to filter false breakouts by requiring confirmation on the candle after the wick-touch.
In short, it’s a pre-market breakout momentum strategy: it uses the pre-market high/low as reference, waits for a breakout, and then enters only after a confirmation retest, reducing the chance of entering on a false spike.
Always use good risk management.
Ultimate 30m – Final Const AlertUltimate 30m – Final Const Alert
A ready-to-use 30-minute trading framework that combines four pillars—trend, momentum, volume and key levels—into one clean overlay. It waits for a confluence of:
A volatility-based channel breakout
RSI confirmation above/below the mid-line
Rising/falling Awesome-Oscillator sequence
OBV leadership relative to its own average
A minimum volume surge versus the 20-period mean
Price acceptance (close > prior close for longs, < for shorts)
Long or short signals are fired only when every filter aligns and no position is already open. Each signal comes with pre-calculated, asymmetric exits: a tight ATR-derived stop and a 2.5× risk reward target, both plotted in real time while the trade is alive.
Add the script, create one “Any alert() function call” alarm and you’ll get instant, push-ready notifications the moment the setup triggers—no coding or manual drawing required.
Penguin Volatility State StrategyThe Penguin Volatility State Strategy is a comprehensive technical analysis framework designed to identify the underlying "state" or "regime" of the market. Instead of just providing simple buy or sell signals, its primary goal is to classify the market into one of four distinct states by combining trend, momentum, and volatility analysis.
The core idea is to trade only when these three elements align, focusing on periods of volatility expansion (a "squeeze breakout") that occur in the direction of a confirmed trend and are supported by strong momentum.
Key Components
The strategy is built upon two main engines
The Volatility Engine (Bollinger Bands vs. Keltner Channels)
This engine detects periods of rapidly increasing volatility. It measures the percentage difference (diff) between the upper bands of Bollinger Bands (which are based on standard deviation) and Keltner Channels (based on Average True Range). During a volatility "squeeze," both bands are close. When price breaks out, the Bollinger Band expands much faster than the Keltner Channel, causing the diff value to become positive. A positive diff signals a volatility breakout, which is the moment the strategy becomes active.
The Trend & Momentum Engine (Multi-EMA System)
This engine determines the market's direction and strength. It uses:
A Fast EMA (e.g., 12-period) and a Slow EMA (e.g., 26-period): The crossover of these two moving averages defines the primary, underlying trend (similar to a MACD).
An Ultra-Fast EMA (e.g., 2-period of ohlc4): This is used to measure the immediate, short-term momentum of the price.
The Four Market States
By combining the Trend and Momentum engines, the strategy categorizes the market into four visually distinct states, represented by the chart's background color. This is the most crucial aspect of the system.
💚 Green State: Strong Bullish
The primary trend is UP (Fast EMA > Slow EMA) AND the immediate momentum is STRONG (Price > Fast EMA).
Interpretation: This represents a healthy, robust uptrend where both the underlying trend and short-term price action are aligned. It is considered the safest condition for taking long positions.
❤️ Red State: Strong Bearish
Condition: The primary trend is DOWN (Fast EMA < Slow EMA) AND the immediate momentum is WEAK (Price < Fast EMA).
Interpretation: This represents a strong, confirmed downtrend. It is considered the safest condition for taking short positions.
💛 Yellow State: Weakening Bullish / Pullback
Condition: The primary trend is UP (Fast EMA > Slow EMA) BUT the immediate momentum is WEAK (Price < Fast EMA).
Interpretation: This is a critical warning signal for bulls. While the larger trend is still up, the short-term price action is showing weakness. This could be a minor pullback, a period of consolidation, or the very beginning of a trend reversal. Caution is advised.
💙 Blue State: Weakening Bearish / Relief Rally
Condition: The primary trend is DOWN (Fast EMA < Slow EMA) BUT the immediate momentum is STRONG (Price > Fast EMA).
Interpretation: This signals that a downtrend is losing steam. It often represents a short-covering rally (a "bear market rally") or the first potential sign of a market bottom. Bears should be cautious and consider taking profits.
How the Strategy Functions
The strategy uses these four states as its foundation for making trading decisions. The entry and exit arrows (Long, Short, Close) are generated based on a set of rules that can be customized by the user. For instance, a trader can configure the strategy to
Only take long trades during the Green State.
Require a confirmed volatility breakout (diff > 0) before entering a trade.
Use the "RSI on Diff" indicator to ensure that the breakout is supported by accelerating momentum.
Summary
In essence, the Penguin Volatility State Strategy provides a powerful "dashboard" for viewing the market. It moves beyond simple indicators to offer a contextual understanding of price action. By waiting for the alignment of Trend (the State), Volatility (the Breakout), and Momentum (the Acceleration), it helps traders to identify higher-probability setups and, just as importantly, to know when it is better to stay out of the market.
License / disclaimer
© waranyu.trkm — MIT License. Educational use only; not financial advice.
Price vs Volume - Reversal StrategySelf-explanatory title <3
Price vs Volume - Reversal Strategy
You set how many past bars and average volume for the desired TF, then it'll show where the imbalances happens
Dynamic Swing Anchored VWAP STRAT (Zeiierman/PineIndicators)Dynamic Swing Anchored VWAP STRATEGY — Zeiierman × PineIndicators (Pine Script v6)
A pivot-to-pivot Anchored VWAP strategy that adapts to volatility, enters long on bullish structure, and closes on bearish structure. Built for TradingView in Pine Script v6.
Full credits to zeiierman.
Repainting notice: The original indicator logic is repainting. Swing labels (HH/HL/LH/LL) are finalized after enough bars have printed, so labels do not occur in real time. It is not possible to execute at historical label points. Treat results as educational and validate with Bar Replay and paper trading before considering any discretionary use.
Concept
The script identifies swing highs/lows over a user-defined lookback ( Swing Period ). When structure flips (most recent swing low is newer than the most recent swing high, or vice versa), a new regime begins.
At each confirmed pivot, a fresh Anchored VWAP segment is started and updated bar-by-bar using an EWMA-style decay on price×volume and volume.
Responsiveness is controlled by Adaptive Price Tracking (APT) . Optionally, APT auto-adjusts with an ATR ratio so that high volatility accelerates responsiveness and low volatility smooths it.
Longs are opened/held in bullish regimes and closed when the regime turns bearish. No short positions are taken by design.
How it works (under the hood)
Swing detection: Uses ta.highestbars / ta.lowestbars over prd to update swing highs (ph) and lows (pl), plus their bar indices (phL, plL).
Regime logic: If phL > plL → bullish regime; else → bearish regime. A change in this condition triggers a re-anchor of the VWAP at the newest pivot.
Adaptive VWAP math: APT is converted to an exponential decay factor ( alphaFromAPT ), then applied to running sums of price×volume and volume, producing the current VWAP estimate.
Rendering: Each pivot-anchored VWAP segment is drawn as a polyline and color-coded by regime. Optional structure labels (HH/HL/LH/LL) annotate the swing character.
Orders: On bullish flips, strategy.entry("L") opens/maintains a long; on bearish flips, strategy.close("L") exits.
Inputs & controls
Swing Period (prd) — Higher values identify larger, slower swings; lower values catch more frequent pivots but add noise.
Adaptive Price Tracking (APT) — Governs the VWAP’s “half-life.” Smaller APT → faster/closer to price; larger APT → smoother/stabler.
Adapt APT by ATR ratio — When enabled, APT scales with volatility so the VWAP speeds up in turbulent markets and slows down in quiet markets.
Volatility Bias — Tunes the strength of APT’s response to volatility (above 1 = stronger effect; below 1 = milder).
Style settings — Colors for swing labels and VWAP segments, plus line width for visibility.
Trade logic summary
Entry: Long when the swing structure turns bullish (latest swing low is more recent than the last swing high).
Exit: Close the long when structure turns bearish.
Position size: qty = strategy.equity / close × 5 (dynamic sizing; scales with account equity and instrument price). Consider reducing the multiplier for a more conservative profile.
Recommended workflow
Apply to instruments with reliable volume (equities, futures, crypto; FX tick volume can work but varies by broker).
Start on your preferred timeframe. Intraday often benefits from smaller APT (more reactive); higher timeframes may prefer larger APT (smoother).
Begin with defaults ( prd=50, APT=20 ); then toggle “Adapt by ATR” and vary Volatility Bias to observe how segments tighten/loosen.
Use Bar Replay to watch how pivots confirm and how the strategy re-anchors VWAP at those confirmations.
Layer your own risk rules (stops/targets, max position cap, session filters) before any discretionary use.
Practical tips
Context filter: Consider combining with a higher-timeframe bias (e.g., daily trend) and using this strategy as an entry timing layer.
First pivot preference: Some traders prefer only the first bullish pivot after a bearish regime (and vice versa) to reduce whipsaw in choppy ranges.
Deviations: You can add VWAP deviation bands to pre-plan partial exits or re-entries on mean-reversion pulls.
Sessions: Session-based filters (RTH vs. ETH) can materially change behavior on futures and equities.
Extending the script (ideas)
Add stops/targets (e.g., ATR stop below last swing low; partial profits at k×VWAP deviation).
Introduce mirrored short logic for two-sided testing.
Include alert conditions for regime flips or for price-VWAP interactions.
Incorporate HTF confirmation (e.g., only long when daily VWAP slope ≥ 0).
Throttle entries (e.g., once per regime flip) to avoid over-trading in ranges.
Known limitations
Repainting: Swing labels and pivot confirmations depend on future bars; historical labels can look “perfect.” Treat them as annotations, not executable signals.
Execution realism: Strategy includes commission and slippage fields, yet actual fills differ by venue/liquidity.
No guarantees: Past behavior does not imply future results. This publication is for research/education only and not financial advice.
Defaults (backtest environment)
Initial capital: 10,000
Commission value: 0.01
Slippage: 1
Overlay: true
Max bars back: 5000; Max labels/polylines set for deep swing histories
Quick checklist
Add to chart and verify that the instrument has volume.
Use defaults, then tune APT and Volatility Bias with/without ATR adaptation.
Observe how each pivot re-anchors VWAP and how regime flips drive entries/exits.
Paper trade across several symbols/timeframes before any discretionary decisions.
Attribution & license
Original indicator concept and logic: Zeiierman — please credit the author.
Strategy wrapper and publication: PineIndicators .
License: CC BY-NC-SA 4.0 (Attribution-NonCommercial-ShareAlike). Respect the license when forking or publishing derivatives.
VWAP Trend Strategy (Intraday) [KedarArc Quant]Description:
An intraday strategy that anchors to VWAP and only trades when a local EMA trend gate and a volume participation gate are both open. It offers two entry templates—Cross and Cross-and-Retest—with an optional Momentum Exception for impulsive moves. Exits combine a TrendBreak (structure flips) with an ATR emergency stop (risk cap).
Updates will be published under this script.
Why this merits a new script
This is not a simple “VWAP + EMA + ATR” overlay. The components are sequenced as gates and branches that *change the trade set* in ways a visual mashup cannot:
1. Trend Gate first (EMA fast vs. slow on the entry timeframe)
Counter-trend VWAP crosses are suppressed. Many VWAP scripts fire on every cross; here, no entry logic even evaluates unless the trend gate is open.
2. Participation Gate second (Volume SMA × multiplier)
This gate filters thin liquidity moves around VWAP. Without it, the same visuals would produce materially more false triggers.
3. Branching entries with structure awareness
* Cross: Immediate VWAP cross in the trend direction.
* Cross-and-Retest: Requires a revisit to VWAP vicinity within a lookback window (recent low near VWAP for longs; recent high for shorts). This explicitly removes first-touch fakeouts that a plain cross takes.
* Momentum Exception (optional): A quantified body% + volume condition can bypass the retest when flow is impulsive—intentional risk-timing, not “just another indicator.”
4. Dual exits that reference both anchor and structure
* TrendBreak: Close only when price loses VWAP and EMA alignment flips.
* ATR stop: Placed at entry to cap tail risk.
These exits complement the entry structure rather than being generic stop/target add-ons.
What it does
* Trades the session’s fair value anchor (VWAP), but only with local-trend agreement (EMA fast vs. slow) and sufficient participation (volume filter).
* Lets you pick Cross or Cross-and-Retest entries; optionally allow a fast Momentum Exception when candles expand with volume.
* Manages positions with a structure exit (TrendBreak) and an emergency ATR stop from entry.
How it works (concepts & calculations)
* VWAP (session anchor):
Standard VWAP of the active session; entries reference the cross and the retest proximity to VWAP.
* Trend gate:
Long context only if `EMA(fast) > EMA(slow)`; short only if `EMA(fast) < EMA(slow)`.
A *gate*, not a trigger—entries aren’t considered unless this is true.
* Participation (volume) gate:
Require `volume > SMA(volume, volLen) × volMult`.
Screens out low-participation wiggles around VWAP.
Entries:
* Cross: Price crosses VWAP in the trend direction while volume gate is open.
* Cross-and-Retest: After crossing, price revisits VWAP vicinity within `lookback` (recent *low near VWAP* for longs; recent *high near VWAP* for shorts).
* Momentum Exception (optional): If body% (|close−open| / range) and volume exceed thresholds, enter without waiting for the retest.
Exits:
* TrendBreak (structure):
* Longs close when `price < VWAP` and `EMA(fast) < EMA(slow)` (mirror for shorts).
* ATR stop (risk):
* From entry: `stop = entry ± ATR(atrLen) × atrMult`.
How to use it ?
1. Select market & timeframe: Intraday on liquid symbols (equities, futures, crypto).
2. Pick entry mode:
* Start with Cross-and-Retest for fewer, more selective signals.
* Enable Momentum Exception if strong moves leave without retesting.
3. Tune guards:
* Raise `volMult` to ignore thin periods; lower it for more activity.
* Adjust `lookback` if retests come late/early on your symbol.
4. Risk:
* `atrLen` and `atrMult` set the emergency stop distance.
5. Read results per session: Optional panel (if enabled) summarizes Net-R, Win%, and PF for today’s session to evaluate
behavior regime by regime.
⚠️ 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.
Valdes Trading Bots Pro Strategy (TP + BE % + Trail)v10.1Pro Strategy (TP + BE % + Trail) v10.1
Overview
This strategy is built for systematic trade management, combining dynamic entries with layered exit controls. It’s designed to help evaluate staged profit-taking, breakeven protection, and trailing stop logic directly in backtests.
Core logic
Entry signals use a volatility-based filter combined with trend confirmation.
Exits are modular and can be enabled or disabled independently.
The system is adaptable to different markets and timeframes.
Features
Take Profits: Up to three scalable targets with user-defined % levels and allocation.
Breakeven: Optional breakeven trigger and offset for risk protection.
Trailing Stop: Trail activation and distance settings to capture extended moves.
Sizing: Portfolio-percent sizing by default, with an optional multiplier to simulate leverage.
Alert Mode: Choose between standard alerts or a structured JSON format for advanced integration.
Best use cases
Testing scaling-out methods vs. single-exit trades.
Comparing breakeven vs. trailing stop performance across timeframes.
Assessing risk management techniques under different volatility conditions.
Notes
Backtest results may differ from live results due to fees, slippage, or execution conditions.
This script is for research and educational purposes only.
CryptoThunder Storm v1.21CryptoThunder Storm v1.21 — Strategy (non-repainting, HTF-aware)
CryptoThunder Storm is a Pine v6 strategy that trades the cross of two moving-average variants computed on an alternate (higher) timeframe derived from your current chart. It’s built to be non-repainting by evaluating signals only at HTF bar boundaries and by avoiding lookahead. The script can trade LONG, SHORT, BOTH, or be disabled, and it includes a one-click invert Long/Short mode.
How it works
Two MA streams (Open/Close series).
You can choose from multiple MA types (SMA/EMA/DEMA/TEMA/WMA/VWMA/SMMA/Hull/LSMA/ALMA/SSMA/TMA). The script computes:
closeSeries – MA of the (possibly delayed) close
openSeries – MA of the (possibly delayed) open
Alternate Resolution (HTF).
The inputs allow you to multiply your current chart’s timeframe (e.g., on 5m with multiplier 3 → HTF = 15m). Both series are requested via request.security() with lookahead_off.
Non-repainting gating.
Signals are evaluated once per HTF bar (htfClosed gate). This ensures entries/alerts are aligned with HTF boundaries and prevents forward-shifting.
Entry logic.
Long when closeSeriesAlt crosses above openSeriesAlt.
Short when closeSeriesAlt crosses below openSeriesAlt.
Invert mode swaps these actions (a former long signal opens a short, and vice versa).
Orders are processed on bar close (process_orders_on_close=true).
Risk management (optional).
Optional initial TP/SL exits via strategy.exit() (ticks/points). Set 0 to disable.
Visuals.
The script colors bars (optional) and plots the two HTF series with a filled band, plus compact UP/DN/CL markers that match the executed side after inversion/filtering.
Inputs & configuration
Use Alternate Resolution?
Turns the HTF logic on/off. When off, the strategy uses the chart timeframe.
Multiplier for Alternate Resolution
Multiplies the current timeframe to form the HTF (e.g., 3×).
MA Type / Period / Offsets
MA Type — choose from 12 variants.
MA Period — core length.
Offset for LSMA / Sigma for ALMA — MA-specific tuning.
Offset for ALMA — center of mass for ALMA.
Delay Open/Close MA — shifts the source back by n bars for a more conservative (non-peek) calculation. Keep at 0 unless you know you want extra delay.
Show coloured Bars to indicate Trend?
Colors bars relative to HTF band.
What trades should be taken: LONG / SHORT / BOTH / NONE
Filters which sides are actually traded.
Invert Long/Short logic?
Swaps long ↔ short everywhere (orders, markers, JSON alerts).
Backtest window (Number of Bars for Back Testing)
Crude limiter to speed up testing. 0 = test full history.
TP/SL (Initial Stop Loss / Target Profit Points)
Values in ticks/points. 0 disables. They apply to both sides via strategy.exit().
Alert options
Turn on alerts (JSON)
Show alert marks (UP/DOWN/CLOSE)
Send CLOSE alerts (toggle)
The strategy fires alert() internally. Create an alert on “Any alert() function call”.
The payload is a simple JSON string:{ "text":"C98USDT.P UP"}
Messages:
UP — a long entry was executed (or, with Invert on: the inverted long signal that opens a long).
DOWN — a short entry executed.
CLOSE — position closed or flipped.
Tip: If you want to route long/short to different webhooks, parse the text field for UP, DOWN, or CLOSE
Plotting & markers
Band: Fills between the two HTF MA lines.
Bar color (optional): Quick visual trend cue.
Markers:
▲ “UP” below bar when a long executes.
▼ “DN” above bar when a short executes.
✖ “CL” on position close/flip.
These reflect the final executed side, after trade filters and after Invert mode
Best practices & notes
Non-repainting design.
request.security(..., lookahead_off) prevents future data leakage.
Signals are gated to HTF bar boundaries, so you won’t get intra-HTF recalculations.
Strategy orders are processed at bar close.
Choosing the multiplier.
A 2×–4× multiplier often balances responsiveness vs stability (e.g., 5m→15m or 20m). Larger multipliers reduce churn and false signals.
TP/SL units.
Values are in ticks/points of the chart symbol. On crypto, check your instrument’s tick size and adjust accordingly.
Trade filters apply after inversion.
With invertLS = true and tradeType = LONG, only final longs (post-inversion) are allowed.
Strategy vs chart counts.
The Tester reports closed trades; your chart shows entries/markers including the latest open trade. This can explain 8 vs 12 discrepancies over short windows.
Performance.
calc_on_every_tick=false and the backtest limiter keep the script responsive on long histories.
Tips: user on mid-volume crypto pair, 1M chart, best MA is: SMMA, Hull, SSMA, DEMA, TEMA.
This strategy is for research and education. Markets carry risk; past performance doesn’t guarantee future results. Always forward-test on paper and validate your exchange execution, tick size, and fees before deploying live.
AI-JX Strategy### 🤖 Core Features
AI-JX v3.3 is an AI-powered comprehensive trading strategy system developed with PineScript v6, integrating multiple advanced technical analysis tools and machine learning algorithms.
### 📊 Main Functional Modules 1. AI Learning System
- Adaptive Parameter Optimization : Automatically learns and adjusts trading parameters
- Three Strategy Modes : Conservative (ranging markets), Aggressive (trending markets), Balanced (universal)
- Dynamic Weight Adjustment : Intelligently allocates weights to different strategies based on market conditions
- Learning Memory Mechanism : Records historical trading data for continuous strategy optimization 2. Technical Indicator System
- SuperTrend Indicator : ATR-based trend following system
- Heikin Ashi Smoothing : Reduces market noise for clearer trend signals
- Standard Deviation Channels : Multi-level support and resistance analysis
- Trend Distribution Profile : Visualizes price distribution and trend strength
- Multi-Timeframe Analysis : Comprehensive analysis across 5m, 15m, and 1h timeframes 3. Intelligent Signal Generation
- Traditional Signals : Classic buy/sell signals based on SuperTrend
- AI Smart Signals : Comprehensive scoring system combining RSI, MACD, and ATR
- False Breakout Detection : Identifies and filters fake breakout signals
- Price Confirmation Mechanism : Ensures signal validity and reliability 4. Risk Management System
- Dynamic Stop Loss/Take Profit : Long 3% TP/1.5% SL, Short 2:1 risk-reward ratio
- Slippage Monitoring : Real-time market slippage risk assessment
- Volatility Filtering : Adjusts trading strategy based on ATR
- Position Management : Smart capital allocation and risk control 5. Visualization Panels
- Statistics Panel : Displays key data like trade count, win rate, current strategy
- AI Learning Panel : Shows strategy weights and learning progress
- Prediction Panel : Real-time AI analysis and trading recommendations
- Chart Markers : Clear buy/sell signals and trend line displays 6. Alert System
- Multiple Alert Types : Buy, sell, take profit, and stop loss notifications
- Personalized Messages : Fun "WangWang" themed alert messages
- Real-time Notifications : Precise alerts with maximum one per bar frequency
### 🎯 Key Advantages
- AI-Driven : Machine learning optimization for better performance
- Multi-Strategy : Adapts to different market conditions automatically
- Risk-Controlled : Comprehensive risk management with dynamic adjustments
- User-Friendly : Intuitive interface with detailed visualization panels
- Highly Customizable : Extensive parameter settings for different trading styles
DNSE VN301!, ADX Momentum StrategyDiscover the tailored Pine Script for trading VN30F1M Futures Contracts intraday.
This strategy applies the Statistical Method (IQR) to break down the components of the ADX, calculating the threshold of "normal" momentum fluctuations in price to identify potential breakouts for entry and exit signals. The script automatically closes all positions by 14:30 to avoid overnight holdings.
www.tradingview.com
Settings & Backtest Results:
- Chart: 30-minute timeframe
- Initial capital: VND 100 million
- Position size: 4 contracts per trade (includes trading fees, excludes tax)
- Backtest period: Sep-2021 to Sep-2025
- Return: over 270% (with 5 ticks slippage)
- Trades executed: 1,000+
- Win rate: ~40%
- Profit factor: 1.2
Default Script Settings:
Calculates the acceleration of changes in the +DI and -DI components of the ADX, using IQR to define "normal" momentum fluctuations (adjustable via Lookback period).
Calculates the difference between each bar’s Open and Close prices, using IQR to define "normal" gaps (adjustable via Lookback period).
Entry & Exit Conditions:
Entry Long: Change in +DI or -DI > Avg IQR Value AND Close Price > Previous Close
Exit Long: (all 4 conditions must be met)
- Change in +DI or -DI > Avg IQR Value
- RSI < Previous RSI
- Close–Open Gap > Avg IQR Gap
- Close Price < Previous Close
Entry Short: Change in +DI or -DI > Avg IQR Value AND Close Price < Previous Close
Exit Short: (all 4 conditions must be met)
- Change in +DI or -DI > Avg IQR Value
- RSI > Previous RSI
- Close–Open Gap > Avg IQR Gap
- Close Price > Previous Close
Disclaimers:
Trading futures contracts carries a high degree of risk, and price movements can be highly volatile. This script is intended as a reference tool only. It should be used by individuals who fully understand futures trading, have assessed their own risk tolerance, and are knowledgeable about the strategy’s logic.
All investment decisions are the sole responsibility of the user. DNSE bears no liability for any potential losses incurred from applying this strategy in real trading. Past performance does not guarantee future results. Please contact us directly if you have specific questions about this script.
Liquidation Strategy💣 Liquidation Strategy (High-Level Overview + Usage)
This strategy is built to trade extreme liquidation events on crypto exchanges like Bybit or OKX, using TradingView’s Liquidations indicator as input.
🔧 Core Logic
Long entries: Triggered when long liquidation values spike above a set threshold.
Short entries: Triggered when short liquidation values drop below a negative threshold.
Optional EMA filter ensures liquidation values are significantly above/below their moving average.
RSI crossover logic is used to exit trades.
🛠️ Usage Instructions
Add the Liquidations Indicator: Go to TradingView → Indicators → Search for “Liquidations” under the Financials section.
Select the Correct Chart: Use a chart from Bybit or OKX, as these exchanges provide liquidation data.
Link the Data Sources: In the strategy settings, set: Long Liquidation Data to the long liquidation series from the indicator. Short Liquidation Data to the short liquidation series.
Overlay the Strategy: You can overlay this strategy directly on the Liquidations indicator for better visual alignment.