指標和策略
SMA Strategy Indicator ZeenuThis indicator is created to visualize the buying opportunities in death cross and selling opportunities in gold cross. This is only for educational purpose.
GRU-Inspired Buy/Sell IndicatorIndicator created using the GRU-Inspired Buy/Sell Indicator principles.
Trend Strength IndexThis is a refined and fixed version of the classic True Strength Index (TSI) indicator. TSI is a momentum oscillator developed by William Blau that captures both trend direction and strength by analyzing the double-smoothed price momentum.
Unlike the standard version, this script is fixed to only update on closed candles, ensuring signals are stable and do not repaint or fluctuate mid-bar—ideal for traders who want reliable confirmation before making decisions.
Key Features:
Double EMA smoothing of momentum
Stable and reliable signal generation
Perfect for spotting reversals and trend continuations
Fixed updates only at candle close
Best used in combination with trend-following tools, divergences, or price action for maximum effectiveness
EMA 9/21 Cross Alerts with RSI Filter and Push AlertsSirve para compra y venta de futuros en 5m. Se entra cuand la EMA9 cruza hacia arriba la EMA 21.
StrategyUtilsLibrary "StrategyUtils"
getHeikinAshi(open, high, low, close)
getHeikinAshi
Parameters:
open (float) : float: Raw open price
high (float) : float: Raw high price
low (float) : float: Raw low price
close (float) : float: Raw close price
Returns: tuple of haOpen, haClose, haHigh, haLow
getFibExtensions(high, low)
getFibExtensions
Parameters:
high (float) : float: Highest point before trade
low (float) : float: Lowest point before trade
Returns: tuple of extension levels
inBacktestWindow(time, start, end)
inBacktestWindow
Parameters:
time (int) : int: Current bar time
start (int) : int: Start timestamp
end (int) : int: End timestamp
Returns: bool: true if within Fbrange
getCurrentState(buy, sell)
getCurrentState
Parameters:
buy (bool) : bool: Buy signal condition
sell (bool) : bool: Sell signal condition
Returns: string: "Buy", "Sell", or "None"
formatPrice(price)
formatPrice
Parameters:
price (float) : float: Input price value
Returns: string: Formatted price string
getColorByProfit(netprofit, initial, green, red)
getColorByProfit
Parameters:
netprofit (float) : float: Strategy net profit
initial (float) : float: Initial capital
green (color) : color: Positive color
red (color) : color: Negative color
Returns: color: Display color based on PnL
Extended-hours Volume vs AVOL// ──────────────────────────────────────────────────────────────────────────────
// Extended-Hours Volume vs AVOL • HOW IT WORKS & HOW TO TRADE IT
// ──────────────────────────────────────────────────────────────────────────────
//
// ░ What this indicator is
// ------------------------
// • It accumulates PRE-MARKET (04:00-09:30 ET) and AFTER-HOURS (16:00-20:00 ET)
// volume on intraday charts and compares that running total with the stock’s
// 21-day average daily volume (“AVOL” by default).
// • Three live read-outs are shown in the data-window/table:
//
// AH – volume traded since the 16:00 ET close
// PM – volume traded before the 09:30 ET open
// Ext – AH + PM (updates in pre-market only)
// %AVOL – Ext ÷ AVOL × 100 (updates in pre-market)
//
// • It is intended for U.S. equities but the session strings can be edited for
// other markets.
//
// ░ Why it matters
// ----------------
// Big extended-hours volume almost always precedes outsized intraday range.
// By quantifying that volume as a % of “normal” trade (AVOL), you can filter
// which gappers and news names deserve focus *before* the bell rings.
//
// ░ Quick-start trade plan (educational template – tune to taste)
// ----------------------------------------------------------------
// 1. **Scan** the watch-list between 08:30-09:25 ET.
// ► Keep charts on 1- or 5-minute candles with “Extended Hours” ✔ checked.
// 2. **Filter** by `Ext` or `%AVOL`:
// – Skip if < 10 % → very low interest
// – Flag if 20-50 % → strong interest, Tier-1 candidate
// – Laser-focus if > 50 % → crowd favourite; expect liquidity & range
// 3. **Opening Range Breakout (long example)**
// • Preconditions: Ext ≥ 20 % & price above yesterday’s close.
// • Let the first 1- or 5-min bar complete after 09:30.
// • Stop-buy 1 tick above that bar (or pre-market high – whichever higher).
// • Initial stop below that bar low (or pre-market low).
// • First target = 1R or next HTF resistance.
// 4. **Red-to-Green reversal (gap-down long)**
// • Ext ≥ 30 % but pre-market gap is negative.
// • Enter as price reclaims yesterday’s close on live volume.
// • Stop under reclaim bar; scale out into VWAP / first liquidity pocket.
// 5. **Risk** – size so the full stop is ≤ 1 R of account. Volume fade or
// loss of %AVOL slope is a reason to tighten or exit early.
//
// ░ Tips
// ------
// • AVOL look-back can be changed in the input panel (21 days ⇒ ~1 month).
// • To monitor several symbols, open a multi-chart layout and sort your
// watch-list by %AVOL descending – leaders float to the top automatically.
// • Replace colour constants with hex if the namespace ever gets shadowed.
//
// ░ Disclaimer
// ------------
// For educational purposes only. Not financial advice. Trade your own plan.
//
// ──────────────────────────────────────────────────────────────────────────────
ADR% & CDR% - Clean Hover View✅ What This Does:
ADR% and CDR% (Current Day Range) now show up in the Data Window (when you hover over the chart)
The chart still looks completely clean (the plots are fully transparent)
Chart scale is unaffected, because the values are typical % ranges (e.g., 1–10%)
75-min RSI-EMA Crossover Alertnsdjcnisdncjsndcncnscj
dcsdcjsbcjbccbsc
dncjbsdscbscbshb
ncjsdcbsdhc sdc
Logarithmischer Trendkanal (sichtbar, in Preisskala + Stilwahl)3. verbesserte Version des frei konfigurierbaren Trendkanals für log Charts
Previous Day/Week/Month - High/Lows (BHUVANESH Rajendran)Previous Day/Week/Month - High/Lows (BHUVANESH Rajendran)
Mervin 2025 Predictive BOS Reversal DetectorObjective of the Script
To help traders predict and confirm market reversals using a combination of candlestick alignment, BOS logic, and trend strength indicators (CCI & ATR).
How the Script Works – Step-by-Step
Step 1: Detect Body Alignment Reversal
This step checks if the current candlestick is a potential reversal, defined as:
Opposite direction to the previous candle, and
Body alignment, meaning the previous close is nearly equal to the current open within a small tolerance.
✅ Conditions:
Bullish reversal: Previous candle is red (down), current candle is green (up).
Bearish reversal: Previous candle is green (up), current candle is red (down).
Aligned: abs(prevClose - currOpen) <= tolerance
If both alignment and reversal are detected:
A potential bullish BOS or potential bearish BOS is predicted.
📍 Displayed on Chart:
🔶 Orange triangle up = predicted bullish BOS
🔶 Orange triangle down = predicted bearish BOS
Step 2: Predict and Confirm Break of Structure (BOS)
Once a reversal is predicted, the script waits for a break above or below a key level from the previous candle:
Bullish BOS confirmed if the price breaks above the previous high.
Bearish BOS confirmed if the price breaks below the previous low.
📍 Displayed on Chart:
✅ Green label up = confirmed bullish BOS
❌ Red label down = confirmed bearish BOS
Step 3: Alerts
The script includes alerts that can be turned on in TradingView:
Predict Bullish BOS – potential long opportunity
Predict Bearish BOS – potential short opportunity
Confirmed BOS Bullish – confirmation to enter or add to a long
Confirmed BOS Bearish – confirmation to enter or add to a short
Step 4: Candle Strength and Forecast Bias Table
This section provides trend strength analysis using:
Candle strength: Percentage change from open to close
CCI (Commodity Channel Index): Detects trend direction and strength
ATR (Average True Range): Measures volatility
Bias Logic:
Buy: CCI is positive, increasing, and ATR is rising.
Sell: CCI is negative, decreasing, and ATR is rising.
Wait: No clear signal.
📍 Displayed on Chart:
A table in the top-right corner shows:
Candle strength and label (Bullish/Bearish)
Bias with color coding: ✅ Lime (Buy), ❌ Red (Sell), ⚪ Gray (Wait)
🛠️ Inputs You Can Customize
Input Name Description Default
Alignment Tolerance How closely previous close should match current open to consider aligned 0.01
Predict BOS within next N bars Number of bars to watch for BOS confirmation 2
CCI Length Period for CCI calculation 20
ATR Length Period for ATR calculation 14
🧭 Trading Strategy – Steps to Use
🔍 Step 1: Watch for BOS Prediction
Look for orange triangle up/down on the chart.
This is your heads-up for a potential reversal.
✅ Step 2: Wait for BOS Confirmation
Only trade if:
Price breaks above the high (for bullish) or below the low (for bearish) of the previous bar.
You’ll see green/red labels on the chart.
🛒 Step 3: Entry
Bullish Entry (Long):
After confirmed bullish BOS
Bias table shows "Buy"
Bearish Entry (Short):
After confirmed bearish BOS
Bias table shows "Sell"
🎯 Step 4: Stop Loss and Take Profit
Use ATR to gauge volatility and set stop loss.
Example: SL = Entry ± 1.5x ATR
Consider previous swing high/low for take profit levels.
🔔 Step 5: Set Alerts
Turn on alerts in TradingView to be notified of predictions and confirmations.
Zen FDAX Session📝 Description
OVERVIEW
The Zen FDAX Session indicator highlights periods outside the regular trading hours of the FDAX (DAX Futures) on the Xetra exchange. It shades the chart background during non-trading hours, aiding traders in distinguishing active market periods from inactive ones.
FUNCTIONALITY
Customizable Trading Hours: Users can define the session's start and end times in UTC, allowing flexibility to match personal trading schedules or account for daylight saving changes.
Visual Clarity: The indicator applies a subtle background color to non-trading hours, ensuring clear demarcation without obscuring price data.
Time Zone Awareness: Designed with UTC inputs to maintain consistency across different user time zones.
USAGE
Add the Indicator: Apply the "Zen FDAX Session" indicator to your chart.
Set Trading Hours: Input your desired session start and end times in UTC.
Interpret the Shading: Areas with shaded backgrounds represent times outside your defined trading session.
Note: This indicator does not generate buy/sell signals but serves as a visual aid to identify trading sessions.
Candlestick Patterns Zh# CandlePatternsZh
**CandlePatternsZh** aims to translate All Patterns indicators in TradingView into Chinese, combining educational content with TradingView's PineScript code tool to help traders better understand and apply technical analysis.
## 專案介紹 (Project Overview)
**CandlePatternsZh** 旨在將TradingView裡的All Patterns指標翻譯成中文,結合教育內容和TradingView的PineScript程式碼工具,幫助交易者更好地理解和應用技術分析。
- **中文化**:提供K線形態的中文名稱、解釋和交易策略。
- **PineScript工具**:自動檢測並視覺化K線形態,支援TradingView平台。
- **教育資源**:詳細的形態說明、圖表範例和中英對照表。
## 功能 (Features)
- Localized candlestick patterns with Chinese translations.
- PineScript scripts for detecting and visualizing patterns on TradingView.
- Educational guides with examples and trading strategies.
## 目前支援的K線形態 (Supported Patterns)
| 英文名稱 (English) | 中文名稱 (Chinese) | 說明 (Description) |
|--------------------------|--------------------|---------------------------------------------|
| Doji | 十字星 | 開盤價與收盤價接近,反映市場猶豫。 |
| Hammer | 錘形線 | 長下影線,短實體,可能預示底部反轉。 |
| Bullish Engulfing | 看漲吞沒 | 大陽線吞沒前一根陰線,表明買方力量增強。 |
| Bearish Engulfing | 看跌吞沒 | 大陰線吞沒前一根陽線,表明賣方力量增強。 |
更多形態請參閱 (docs/)。
## 快速開始 (Getting Started)
1. 複製專案:
```bash
git clone github.com
```
2. 瀏覽 `docs/` 資料夾,查看K線形態的教育內容。
3. 將 `scripts/` 資料夾中的PineScript程式碼複製到TradingView的Pine Editor以應用。
## 專案結構 (Project Structure)
```
CandlePatternsZh/
├── docs/ # 教育內容 (Educational content)
├── scripts/ # PineScript程式碼 (PineScript scripts)
├── examples/ # 圖表範例 (Chart examples)
├── translations/ # 中英對照翻譯 (Translations)
├── README.md # 專案介紹 (Project overview)
├── CONTRIBUTING.md # 貢獻指南 (Contribution guidelines)
├── LICENSE # MPL 2.0許可證 (MPL 2.0 License)
└── .gitignore # Git忽略檔案 (Git ignore file)
```
## 貢獻 (Contributing)
歡迎參與貢獻!請閱讀 (CONTRIBUTING.md) 了解如何提交翻譯、程式碼或範例。
## 許可證 (License)
This project is licensed under the Mozilla Public License 2.0 - see the (LICENSE) file for details.
## 聯繫 (Contact)
有任何問題或建議?請在GitHub上開啟 (github.com) 或聯繫我們!
Raam Strategy TemplateAll combined strategy best to try, RSI+MACD+EMA all combined best strategy, Back tested and got higher winning results.
RSI Phan Ky FullThe RSI divergence indicator is like a magnifying glass that spots gaps between price swings and momentum. When price keeps climbing but RSI quietly sags, it’s a flashing U‑turn sign: the bulls are winded, and the bears are lacing up their boots. Flip it around—price is sliding yet RSI edges higher—and you’ve got bulls secretly stockpiling. Hidden divergences shore up the trend; regular divergences hint at a pivot. Blend those signals with overbought/oversold zones, support‑resistance, and volume, and RSI divergence turns into a radar that helps traders jump in with swagger and bail out just in time.
High-Delta Candle HighlighterThis indicator highlights powerful candles that we are suppose to have a reaction from. Based on volume delta.
Approx. Footprint: Volume DeltaThis indicator brings you a simplified “footprint” view by charting the volume delta—the imbalance between bullish and bearish volume—alongside total bar volume.
Delta Bars: Green/red columns show where buyers (close > open) or sellers (close < open) dominated each bar.
Total Volume: Semi-transparent gray columns in the background give you overall context.
No Hidden Data: Works on any symbol/timeframe without tick-by-tick or bid/ask feeds.
Use it to quickly spot bars with strong buying or selling pressure, identify momentum shifts, and confirm breakouts or reversals—all within TradingView’s standard volume streams.
Range Progress TrackerRANGE PROGRESS TRACKER(RPT)
PURPOSE
This indicator helps traders visually and statistically understand how much of the typical price range (measured by ATR) has already been covered in the current period (Daily, Weekly, or Monthly). It includes key features to assist in trend exhaustion analysis, reversal spotting, and smart alerting.
CORE LOGIC
The indicator calculates the current range of the selected time frame (e.g., Daily), which is:
Current Range = High - Low
This is then compared to the ATR (Average True Range) of the same time frame, which represents the average price movement range over a defined period (default is 14).
The comparison is expressed as a percentage, calculated with this formula:
Range % = (Current Range / ATR) × 100
This percentage shows how much of the “average expected move” has already occurred.
WHY IT MATTERS
When the current range approaches or exceeds 100% of ATR, it means the price has already moved as much as it typically does in a full session.
This indicates a lower probability of continuing the trend with a new high or low, especially when the price is already near the session's high or low.
This setup can signal:
A possible consolidation phase
A reversal in trend
The market entering a corrective phase
SMART ALERTS
The indicator can alert you when:
A new high is made after the range percentage exceeds your set threshold.
A new low is made after the range percentage exceeds your set threshold.
You can adjust the Range % Alert Threshold in the settings to tailor it to your trading style.