Smart Trading Assistant v3.0Product Introduction:
This is a multi-functional trading assistant tool that combines various market analysis techniques to help traders identify potential trading opportunities.
Main Modules:
Dynamic Price Filter
· Adaptive to market volatility
· Intelligent trend-following adjustments
· Reduces market noise interference
Market Structure Visualization
· Identifies key price zones
· Displays potential support/resistance areas
· Automatically extends reference intervals
Multi-Condition Confirmation System
· Built-in momentum indicator validation
· Volume activity detection
· Multi-dimensional signal filtering
Trend Direction Assistance
· Medium-to-long-term trend reference
· Multi-cycle smoothing processing
· Trend strength visualization
Product Features:
Multi-technique fusion analysis
Customizable parameter settings
Visual interface design
Automatic signal marking
Real-time dynamic updates
Applicable Scenarios:
Trend-following strategy assistance
Key price level identification
Trading timing reference
Risk management support
Candlestick analysis
STRUCTRA Ver1.1STRUCTRA Ver1.1
Session High/Low × MSS × OTE Entry with HTF Bias
■ Overview
STRUCTRA Ver1.1 is a discretionary trading support indicator designed to clarify
where to wait, where to look, and when to consider entry.
By combining Session High/Low, Market Structure Shift (MSS), Deal Range (DR), and OTE (Optimal Trade Entry),
STRUCTRA helps traders focus only on high-probability scenarios instead of chasing price.
This indicator is not meant to increase trade frequency,
but to reduce low-quality trades and improve execution discipline.
■ Key Features
① Session High / Low (Fixed to New York Time)
Automatically plots Asia, London, and New York session Highs and Lows
Past sessions are faded for better chart clarity
Previous session High / Low can be displayed as text labels (optional)
② Session Line Touch Detection
Detects price interaction only after session confirmation
One signal per line (prevents repeated triggers)
Optional touch alerts included
③ Market Structure Shift (MSS)
MSS detection on 1m or 5m timeframe (selectable)
Pivot-based structure break logic
Optional Displacement confirmation
Short guide line drawn at MSS level
④ Deal Range (DR) Definition
Automatically defines the active range after MSS
Used as the base range for OTE calculation
⑤ OTE Zone Visualization
Displays the latest OTE zone (0.62 – 0.79) based on the current DR
Only the most recent zone is shown to avoid chart clutter
Clearly visualizes where price is expected to retrace
⑥ Entry Signals (Discretionary Support)
Signals appear only inside the OTE zone
Triggered by:
Engulfing pattern
Displacement candle
(Both can be enabled/disabled)
One signal per DR (anti-overtrading)
Adjustable signal size
Separate Long / Short alerts
⑦ HTF Bias (Higher Timeframe MSS)
Directional bias determined by MSS on a higher timeframe (default: 15m)
Bias HUD displayed on the chart
Optional filter to allow entries only in bias direction
■ Recommended Usage
Chart timeframe: 1m or 5m
Identify liquidity areas using session Highs/Lows
Confirm direction with HTF Bias
Wait for price to reach the OTE zone
Use entry signals as confirmation, not automation
⚠️ This indicator is not an automated trading system.
Always combine it with proper risk management and your own trading rules.
■ Version Information
Ver1.1
Added HTF Bias (MSS-based)
Bias HUD implemented
Entry precision improved with Bias filtering
Stability and performance improvements
■ Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice.
The author assumes no responsibility for any trading losses incurred through its use.
The Rumers Box Strategy+ v1.5.0The Rumers Box Strategy - Visual Trading Setup Analyzer
This indicator implements Doug Rumers' Box Strategy methodology for identifying high-probability trading setups based on historical price ranges and opening candle analysis.
Key Features:
Customizable Box Construction - Define a "Box Date" to establish the high/low range that forms your trading framework
8:45 Candle Analysis - Automatically identifies and validates the opening candle on your specified "Analysis Date"
20% Rule Validation - Visual confirmation when the 8:45 candle range meets the 20% threshold of the box range
Entry Zone Highlighting - Clear visual marking of the top 20% (short zone) and bottom 20% (long zone) of the box
50% Midpoint Reference - Yellow midline for price action analysis
Multi-Timezone Support - Works with 12 major timezones including US, European, Asian, and Pacific markets
Comprehensive Info Panel - Real-time display of all key metrics including box range, thresholds, and setup validity
Historical Analysis - Time-based positioning allows analysis of any historical date without bar index limitations
How to Use:
Select your timezone
Choose the Box Date (the date that establishes your high/low range)
Choose the Analysis Date (the date to check the 8:45 candle)
The indicator will display a ✓ or ✗ showing whether the setup meets the 20% rule
Trade within the highlighted entry zones when valid setups appear
Perfect for: Day traders and swing traders using systematic, rule-based entry strategies on NAS100, ES, and other index futures.
Couple Candle RangeCouple Candle Range
We are looking for a 2-candle pattern where body of candle-1 is within the range of candle-2 and similarly, body of candle-2 is within the range of candle-1.
With this indicator, we are auto-calculating the couple candle range.
Couple Candle PatternCouple Candle Pattern
We are looking for a 2-candle pattern where body of candle-1 is within the range of candle-2 and similarly, body of candle-2 is within the range of candle-1
XAUUSD 1M SCALP BY ELIRAN"The 1% Sniper" Strategy: Fast Forex Trading (1-Minute Chart) This is a strategy for disciplined traders looking for short, sharp market moves. The goal is to achieve a daily/weekly target of a single 1%, which will accumulate to the $1,000.1 pullback target. Technical SetupTimeframe: 1 minute chart ($1M$).Recommended assets: Major forex pairs with low spreads (like $EUR/USD$ or $GBP/USD$).Supporting indicators: Moving average ( NYSE:EMA \ 20/50$) to identify a short-term trend, and supply and demand areas ($Supply\ &\ Demand$).2. ExecutionEntry: Identify strong momentum on the minute chart. Enter only when there is a built-in confirmation (e.g.: a "hammer" candle on a support level or a breakout of a market structure).Risk management: NGM:RISK \ Per\ Trade$ is fixed. Since the target is 1% per portfolio, we are looking for a risk-reward ratio ($R:R$) of at least $1:2$.The Goal: Once the portfolio has reached a 1% profit that day – close the screen. This discipline is what will get you to $1,000 faster without "Putting" money back into the market. 3. The financial roadmap In this strategy, we are not looking for a single "hit", but consistency: Base capital: $2,250. Daily target: 1% ($\approx $22.5). The path to withdrawal: After about 45 successful trading days (or less, if you increase the lot carefully), you reach the $1,000 withdrawal target. Why does it work for you? Short screen time: A 1-minute chart allows you to find opportunities quickly, take your percentage and go about your business. Clear goal: Instead of dreaming of millions, you are focused on the next 1%. This makes the path to the next portfolio much more tangible. Protection of the capital: Working on a few percentages protects your $2,250 from too sharp fluctuations. Important to remember: On a 1-minute chart, the "noise" in the market is high. Make sure you work with a broker who has low commissions so that they They won't eat your 1% profit.
Gold Decisions [DayFunded]Gold Decisions 🎯
A multi-timeframe decision system designed specifically for XAUUSD (Gold) traders who want clarity, not noise.
🔍 What It Does
This indicator helps you identify high-probability trade setups by checking 5 key conditions:
1️⃣ Direction — Weekly + Daily must agree (no fighting the trend!)
2️⃣ Breakout — Daily closes beyond a key H4 zone
3️⃣ Pullback — Price returns to the cleared level (no chasing!)
4️⃣ Structure — 15-minute confirms with a break of structure
5️⃣ Entry — Clean directional close = signal
When all gates pass, you get a simple BUY or SELL label with confidence level (H/M/L).
📊 Features
✅ Clean, minimal chart labels (no spam!)
✅ Smart panel showing exactly what to watch for
✅ Win/Loss tracking to see historical performance
✅ H4 Supply/Demand zones auto-detected
✅ Asia session levels (Gold reacts to these!)
✅ Weekly/Daily high-low reference points
✅ Pullback target line for easy visual
⚠️ Important Notes
This is an indicator, not an EA — it does NOT place trades
Signals fire on confirmed bar close — no repainting
Works best on 15m to 4H timeframes
Designed for XAUUSD but may work on other pairs
🎁 Free to Use
This script is completely free. If you find it helpful, a follow or comment is always appreciated!
📖 How to Use
Add to your Gold chart (15m-4H recommended)
Watch the panel for "WATCH FOR" guidance
Wait for BUY/SELL signal
Check confidence level (H = High, M = Medium, L = Low)
Manage your own risk
Not financial advice. Trade responsibly. ✌️
CCT Legend v19.3
CCT Legend v19.3 - Smart Trading Signals
What Does This Indicator Do?
This indicator automatically finds high-probability BUY and SELL signals on your chart by combining multiple proven trading strategies. It shows you exactly when and where to enter trades.
How It Works (Simple)
Step 1: Finds Key Price Levels
Looks at higher timeframes (like Daily or 4-Hour charts)
Identifies untouched wicks (virgin wicks) as important support/resistance
Draws green lines (bullish) or red lines (bearish) when these levels activate
Step 2: Waits for Confirmation
The indicator uses 3 different methods to confirm a trade is valid:
Method 1: Price breaks the previous candle's high/low
Method 2: Price fills a gap and reverses direction
Method 3: Price breaks a key structure level (most accurate)
Step 3: Shows You the Signal
Green "BUY" label = Go Long
Red "SELL" label = Go Short
"A+" signals = Multiple methods agree (strongest signals!)
Quick Start Guide
For Complete Beginners:
Add indicator to your chart
Wait for a BUY or SELL label to appear
Enter the trade when that candle closes
Place stop loss just below/above the colored line
Exit at 2-3x your risk (if you risk $10, target $20-$30 profit)
That's it! The indicator does all the analysis for you.
Understanding the Labels
📊 What You'll See:
Horizontal Lines: Important price levels (green = support, red = resistance)
BUY Label: Buy signal with entry method shown
SELL Label: Sell signal with entry method shown
Boxes: Show special trading zones (gaps)
Table (bottom right): Quick status dashboard
Settings Explained (Simplified)
Step 1: Setup
Setup Timeframe: Which timeframe to use for finding levels (Daily is good for most traders)
Show POI Lines: Turn lines on/off
Step 2: Filters (Optional)
EMA Trend Filter: Only buy above 200 EMA, only sell below it (keeps you with the trend)
ADX Filter: Only trades when market is moving (avoids flat, choppy conditions)
Step 3: Entry Models
Model 1, 2, 3: Which confirmation methods to use (keep all 3 ON to start)
A+ Setup: Automatically finds the strongest signals (always keep ON)
Step 4: Sessions
Choose which trading sessions to trade (London + NY recommended)
Or select "Trade 24/7" for crypto
Simple Strategy Example
Classic Setup:
Green line appears on chart (POI activated)
Price dips down and touches the green line
"BUY" label appears with "A+ (M1 & M3)"
Enter trade at candle close
XAUUSD ELIRANTo build a professional and accurate description of your strategy, I have distilled the information you shared into a neat "Trading Plan". This strategy combines strict financial discipline with a desire for consistent growth in the Forex market.
Here is a suggestion for describing your strategy:
The "Safe Profit" Strategy: Capital Management and Growth in the Forex Market
The strategy focuses on preserving equity while creating cash flow for withdrawal and leveraging profits to purchase additional trading portfolios. The goal is to reduce personal risk and increase purchasing power in the market.
1. Capital and Withdrawal Goals
Starting Capital/Base: $2,250.
Periodic Profit Target: $1,000.
Withdrawal Policy: Upon reaching the profit target, the $1,000 is immediately withdrawn for "cash out" and reinvestment in additional trading portfolios.
2. Operational Logic (The Workflow)
The strategy operates in cycles of accumulation -> withdrawal -> expansion:
Accumulation phase: Focus on trading Forex assets with the aim of achieving a return of approximately 44% on the base portfolio.
Withdrawal phase: Defining the first $1,000 as net profit that leaves the market to ensure "money in your pocket".
Expansion phase: Using part of the profit that is withdrawn to purchase an additional trading portfolio, which allows for increased trading volume without increasing the risk on the original portfolio.
3. Advantages of the strategy
Psychological risk management: Knowing that you are withdrawing money "home" reduces mental stress and allows for cleaner decision-making.
Smart leverage: Purchasing additional portfolios creates diversification of risks between different accounts.
Self-discipline: Pre-defined profit and withdrawal targets prevent the "greed trap" that exists in Forex.
GP MagicCandle and Time Based Breakout Indicator ..... Back test and used for Nifty and Bank nifty Spot Index
QUARTERLY CYCLES - DAY - SESSION - 90M - RICH BVWYThis custom version of the origional script by © HandlesHandle
refines the quarter labeling system. Instead of implying discrete deliveries (A, M, D, X etc.), quarters are labeled Q1–Q4 to reflect fixed time ranges. This ensures clarity: quarters are structural anchors, while AMDX variables define the actual cycle behavior. The indicator highlights cycles, not expected deliveries.
Golden EMA Basic Visuals - MAurum LabsGolden EMA UI is a premium-style trading indicator built for traders who value Clarity, Structure, and Precision.
At its core, the indicator uses a powerful EMA 9 / 21 / 50 frameworks to identify short-term momentum, trend direction, and higher-timeframe bias.
Advanced UI and rule-based BUY/SELL signals are available in the premium version via invite-only access.
Thai Stock Trend Template (Minervini)Standard Criteria for Uptrend Stock Screening (Trend Template)
To ensure efficient security screening and accurate identification of stocks with structural strength (Stage 2 Uptrend), investors should prioritize securities that fully satisfy the following criteria:
1. Long-term Moving Average Alignment: The current security price must be positioned above both the 150-day Simple Moving Average (SMA 150) and the 200-day Simple Moving Average (SMA 200). Furthermore, the SMA 150 must be higher than the SMA 200.
2. Price Stability Duration: The security price must consistently maintain its level above the SMA 200 for a period of no less than one month (though a duration of 4-5 months or more is preferred for trend stability).
3. Short-to-Medium Term Slope and Momentum: The 50-day Simple Moving Average (SMA 50) must be positioned above both the SMA 150 and the SMA 200, respectively. Additionally, the current price must be trading above the SMA 50.
4. Recovery Rate from 52-Week Low: The current price must be at least 30% higher than its 52-week low. (A price increase of 100% to 300% or more is considered a hallmark of a high-performance stock).
5 .Proximity to 52-Week High: The current price must be within 25% of its 52-week high, indicating a high probability of establishing a new high.
6. Relative Strength (RS) Ranking: The security’s Relative Strength score must be at least 70. Scores within the 80 to 90 range (or higher) typically identify clear Market Leaders.
Additional Recommendations: These criteria are designed to identify stocks experiencing systematic accumulation and a clear state of demand exceeding supply. Investors should also incorporate Fundamental Analysis to ensure maximum security in risk management.
🛠️ How to Use in TradingView:
1. Open the TradingView application or website and select your desired Thai stock chart.
2. In the bottom panel, click on the "Pine Editor" tab.
3. Delete any existing code and paste the provided Pine Script.
4. Click "Save" (Title it: Thai Trend Template).
5. Click "Add to Chart".
💡 Visual Indicators:
Three-color Lines: SMA 50 (Blue), SMA 150 (Orange), and SMA 200 (Red).
Light Green Highlight: The background will turn green when the stock meets all Trend Template conditions simultaneously.
"TREND TEMPLATE" Label: This label will appear below the candle on the first day the stock qualifies, signaling the potential start of a major uptrend.
⚠️ Precautions:
RS Ranking: In this Pine Script, the calculation is based on the Raw Relative Strength (stock performance relative to its own past). Since Pine Script cannot pull rankings across the entire market directly like specialized scanning software, this serves as a technical proxy.
Thai Stock Market: It is highly recommended to use the Daily Timeframe only to maintain the accuracy and integrity of the original formula.
-----------------------------------------------------------------------------------------------
เกณฑ์มาตรฐานการคัดกรองหุ้นตามแนวโน้มขาขึ้น (Trend Template)
เพื่อให้การคัดกรองหลักทรัพย์เป็นไปอย่างมีประสิทธิภาพและสามารถระบุหุ้นที่มีความแข็งแกร่งเชิงโครงสร้าง (Stage 2 Uptrend) ได้อย่างแม่นยำ ผู้ลงทุนควรพิจารณาหลักทรัพย์ที่มีคุณสมบัติครบถ้วนตามหลักเกณฑ์ดังต่อไปนี้:
1. การเรียงตัวของเส้นค่าเฉลี่ยระยะยาว: ราคาหลักทรัพย์ปัจจุบันต้องอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 150 วัน (SMA 150) และเส้นค่าเฉลี่ยเคลื่อนที่ 200 วัน (SMA 200) โดยที่เส้นค่าเฉลี่ย 150 วัน ต้องมีค่าสูงกว่าเส้นค่าเฉลี่ย 200 วัน
2. ระยะเวลาการยืนระยะของราคา: ราคาหลักทรัพย์ต้องสามารถรักษาระดับอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 200 วัน มาอย่างต่อเนื่องเป็นระยะเวลาไม่น้อยกว่า 1 เดือน (โดยระยะเวลาที่เหมาะสมตามเกณฑ์ความมั่นคงของแนวโน้มคือ 4-5 เดือนขึ้นไป)
3. ความชันและโมเมนตัมระยะสั้นถึงกลาง: เส้นค่าเฉลี่ยเคลื่อนที่ 50 วัน (SMA 50) ต้องอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 150 วัน และ 200 วัน ตามลำดับ อีกทั้งราคาปัจจุบันของหลักทรัพย์ต้องเคลื่อนไหวอยู่เหนือเส้นค่าเฉลี่ย 50 วัน
4. อัตราการฟื้นตัวจากจุดต่ำสุด: ราคาปัจจุบันของหลักทรัพย์ต้องปรับตัวสูงกว่าจุดต่ำสุดในรอบ 52 สัปดาห์ (1 ปี) อย่างน้อยร้อยละ 30 ขึ้นไป (หากราคาปรับตัวสูงขึ้นได้ร้อยละ 100 ถึง 300 จะถือเป็นสัญญาณของหุ้นที่มีประสิทธิภาพสูง)
5. กรอบการเคลื่อนไหวใกล้จุดสูงสุด: ราคาปัจจุบันต้องเคลื่อนไหวอยู่ในกรอบที่ไม่เกินร้อยละ 25 เมื่อเทียบกับจุดสูงสุดในรอบ 52 สัปดาห์ (1 ปี) เพื่อแสดงถึงสภาวะที่ราคาพร้อมจะสร้างระดับสูงสุดใหม่ (New High)
6. ค่าความแข็งแกร่งสัมพัทธ์ (Relative Strength Ranking): ค่าคะแนนความแข็งแกร่งสัมพัทธ์ของหลักทรัพย์ต้องไม่ต่ำกว่า 70 คะแนน โดยระดับที่บ่งชี้ถึงหุ้นผู้นำตลาด (Market Leader) ที่ชัดเจนควรมีคะแนนอยู่ในช่วง 80 ถึง 90 คะแนนขึ้นไป
ข้อแนะนำเพิ่มเติม : หลักเกณฑ์ดังกล่าวข้างต้นออกแบบมาเพื่อระบุหุ้นที่มีแรงซื้อสะสมอย่างเป็นระบบและอยู่ในสภาวะที่อุปสงค์มากกว่าอุปทานอย่างชัดเจน นักลงทุนควรใช้การวิเคราะห์ปัจจัยพื้นฐาน (Fundamental Analysis) ร่วมด้วยเพื่อความปลอดภัยสูงสุดในการบริหารความเสี่ยง
🛠️ วิธีใช้งานใน TradingView:
1. เปิดโปรแกรม/เว็บไซต์ TradingView แล้วเลือกกราฟหุ้นไทยตัวที่ต้องการ
2. ที่แถบด้านล่าง คลิกที่คำว่า "Pine Editor"
3. ลบโค้ดเก่าออกให้หมด แล้ว Copy โค้ดด้านบนไปวาง
4. กดปุ่ม "Save" (ตั้งชื่อว่า Thai Trend Template)
5. กดปุ่ม "Add to Chart"
💡 สิ่งที่คุณจะเห็น:
เส้น 3 สี: SMA 50 (น้ำเงิน), 150 (ส้ม), 200 (แดง)
แถบสีเขียวอ่อน: พื้นหลังจะเปลี่ยนเป็นสีเขียวเมื่อหุ้นตัวนั้นเข้าเงื่อนไข Trend Template ครบทุกข้อ ณ ขณะนั้น
ป้าย "TREND TEMPLATE": จะปรากฏใต้แท่งเทียนในวันแรกที่หุ้นเริ่มเข้าเกณฑ์ เพื่อบอกจุดเริ่มต้นของรอบขาขึ้น
⚠️ ข้อควรระวัง:
RS Ranking: ใน Pine Script ตัวนี้ ใช้การคำนวณ Performance ของตัวหุ้นเองเทียบกับอดีต (Relative Strength แบบดิบ) เนื่องจากระบบ Pine Script ไม่สามารถดึง Ranking ของหุ้นทั้งตลาดมาเปรียบเทียบกันได้โดยตรงเหมือนโปรแกรมสแกนเฉพาะทาง
ตลาดหุ้นไทย: แนะนำให้ใช้บน Timeframe Day เท่านั้นเพื่อให้แม่นยำตามสูตรต้นตำรับ
Promethus █ OVERVIEW
HPT Master Suite is an all-in-one institutional trading toolkit combining multi-timeframe analysis, Smart Money Concepts (SMC), and volume-based detection systems.
█ FEATURES
MTF DASHBOARD
- Real-time analysis across 9 timeframes (1M to Monthly)
- MA alignment status with trend detection
- RSI and squeeze monitoring
- Macro data row (VIX, DXY, 10Y, OIL)
- 5/20 and 9/21 cross confluence tracking
SMART MONEY CONCEPTS
- Volumetric Order Blocks with engagement detection
- Fair Value Gaps with 50% CE line
- Liquidity sweep detection
- Unicorn Model (FVG + OB overlap)
VOLUME ANALYSIS
- Dynamic Volume Profile (POC, VAH, VAL)
- High/Low Volume Nodes
- Naked POC tracking
- Absorption detection with strength gauge
INSTITUTIONAL TOOLS
- 55 SMA institutional support level
- Significant wick levels
- Session boxes (Asia, London, NYSE, Lunch, PM)
- SMT Divergence detection
SIGNALS
- Buy/Sell signals with adjustable sensitivity
- Golden/Death Cross alerts
- OB engagement alerts
█ USAGE
Enable features as needed - all components are modular and can be toggled independently. Start with the dashboard and add SMC/volume tools based on your trading style.
█ SETTINGS
Most detection parameters use simplified controls (Low/Medium/High) for ease of use while maintaining effectiveness.
█ NOTES
Works best on futures (NQ, ES) and indices. Dashboard updates in real-time across all timeframes.
For TradingView I am not redirecting, and or soliciting any service. If your interesting in learning more and how I trade with a 98% WR in options and above 80% in futures the links to my FREE site's are listed in my profile.
Dong - Auto Volume +VERSmart Volume Spike Detection: Automatically identifies significant trading activity by comparing current volume against its historical average with adjustable sensitivity.
Dynamic Supply & Resistance Zones: Draws extended horizontal boxes from high-volume candles to visualize key institutional interest levels and potential price pivot points.
Viewport-Optimized Performance: Features an intelligent "Visible Range" toggle that focuses processing and display only on the active chart area for a cleaner, faster experience.
Immediate Visual Confirmation: Dynamically colors price bars during volume surges, providing instant visual cues for market conviction without checking a separate sub-window.
Directional Market Analysis: Uses distinct color-coding for bullish and bearish spikes to help traders quickly distinguish between aggressive buying and panic selling.
Smart Resource Management: Includes a customizable limit for active boxes, ensuring the chart remains organized while preserving the most relevant historical levels.
Professional Styling Control: Offers full flexibility over line widths, border styles, and colors to seamlessly integrate with any professional trading template.
Ker 2021 EMA/SMA這個腳本主要是EMA/SMA的基礎
加上可調動範圍
數字可以調動
但是因為我不是coding人員
所以有些欄位編排不正確
但是使用上沒有什麼問題
如果你有coding的能力
可以聯絡我 幫我補正 謝謝
This script is mainly based on EMA/SMA, with adjustable ranges and parameters.
The values can be modified freely.
Since I’m not a programmer, some of the field formatting may not be perfectly structured.
However, it works fine in actual use.
If you have coding experience and would like to help improve or clean up the code, feel free to contact me. Thank you.
ORB 9 AM📊 ORB 9 AM (Opening Range Breakout)
ORB 9 AM is an Opening Range Breakout indicator designed to identify the high and low price range during the morning market opening at 09:00 WIB.
This indicator helps traders:
Identify the initial consolidation zone
Trade valid breakouts after the opening range is formed
Use the opening range as intraday support and resistance
⚙️ How It Works
The indicator captures the High and Low price range at 09:00 WIB
ORB High and ORB Low lines are clearly separated
The range is applied only for that session (no overlapping with other sessions)
After the range is formed, traders wait for a breakout above or below the range
📈 Basic Trading Rules
Buy (Long)
Price breaks and closes above ORB High
Optional confirmation: volume or momentum
Sell (Short)
Price breaks and closes below ORB Low
Optional confirmation: volume or momentum
Stop Loss
Placed on the opposite side of the ORB range
Take Profit
Risk–Reward based (1:2 / 1:3)
Or follow market structure
🕒 Timezone Information
Default timezone: UTC
09:00 WIB = 02:00 UTC
Make sure your chart timezone is correct for accurate levels
🧠 Best Used For
Intraday trading
Scalping and day trading
Crypto, Forex, Indices, and Gold
⚠️ Disclaimer
This indicator does not guarantee profits. Always use proper risk management and additional confirmation before entering a trade.
Sonic R 89 - NY buy LionLee 079 228 1999//@version=5
indicator("Sonic R 89 - NY SL Custom Fixed", overlay=true, max_lines_count=500)
// --- 0. TÙY CHỈNH THÔNG SỐ ---
group_session = "Cài đặt Phiên Giao Dịch (Giờ New York)"
use_session = input.bool(true, "Chỉ giao dịch theo khung giờ", group=group_session)
session_time = input.session("0800-1200", "Khung giờ NY 1", group=group_session)
session_time2 = input.session("1300-1700", "Khung giờ NY 2", group=group_session)
max_trades_per_session = input.int(1, "Số lệnh tối đa/mỗi khung giờ", minval=1, group=group_session)
group_risk = "Quản lý Rủi ro (Dashboard)"
risk_usd = input.float(100.0, "Số tiền rủi ro mỗi lệnh ($)", minval=1.0, group=group_risk)
group_sl_custom = "Cấu hình Stop Loss (SL)"
sl_mode = input.string("Dragon", "Chế độ SL", options= , group=group_sl_custom)
lookback_x = input.int(5, "Số nến (X) cho Swing SL", minval=1, group=group_sl_custom)
group_htf = "Lọc Đa khung thời gian (MTF)"
htf_res = input.timeframe("30", "Chọn khung HTF", group=group_htf)
group_sonic = "Cấu hình Sonic R"
vol_mult = input.float(1.5, "Đột biến Volume", minval=1.0)
max_waves = input.int(4, "Ưu tiên n nhịp đầu", minval=1)
trade_cd = input.int(5, "Khoảng cách lệnh (nến)", minval=1)
group_tp = "Quản lý SL/TP & Dòng kẻ"
rr_tp1 = input.float(1.0, "TP1 (RR)", step=0.1)
rr_tp2 = input.float(2.0, "TP2 (RR)", step=0.1)
rr_tp3 = input.float(3.0, "TP3 (RR)", step=0.1)
rr_tp4 = input.float(4.0, "TP4 (RR)", step=0.1)
line_len = input.int(15, "Chiều dài dòng kẻ", minval=1)
// --- 1. KIỂM TRA PHIÊN & HTF ---
is_in_sess1 = not na(time(timeframe.period, session_time, "America/New_York"))
is_in_sess2 = not na(time(timeframe.period, session_time2, "America/New_York"))
is_in_session = use_session ? (is_in_sess1 or is_in_sess2) : true
var int trades_count = 0
is_new_session = is_in_session and not is_in_session
if is_new_session
trades_count := 0
htf_open = request.security(syminfo.tickerid, htf_res, open, lookahead=barmerge.lookahead_on)
htf_close = request.security(syminfo.tickerid, htf_res, close, lookahead=barmerge.lookahead_on)
is_htf_trend = htf_close >= htf_open ? 1 : -1
// --- 2. TÍNH TOÁN CHỈ BÁO ---
ema89 = ta.ema(close, 89)
ema34H = ta.ema(high, 34)
ema34L = ta.ema(low, 34)
atr = ta.atr(14)
avgVol = ta.sma(volume, 20)
slope89 = (ema89 - ema89 ) / atr
hasSlope = math.abs(slope89) > 0.12
isSqueezed = math.abs(ta.ema(close, 34) - ema89) < (atr * 0.5)
var int waveCount = 0
if not hasSlope
waveCount := 0
newWave = hasSlope and ((low <= ema34H and close > ema34H) or (high >= ema34L and close < ema34L))
if newWave and not newWave
waveCount := waveCount + 1
// --- 3. LOGIC VÀO LỆNH ---
isMarubozu = math.abs(close - open) / (high - low) > 0.8
highVol = volume > avgVol * vol_mult
buyCondition = is_in_session and (trades_count < max_trades_per_session) and waveCount <= max_waves and is_htf_trend == 1 and
(isMarubozu or highVol) and close > ema34H and low >= ema89 and
(slope89 > 0.1 or isSqueezed ) and close > open
sellCondition = is_in_session and (trades_count < max_trades_per_session) and waveCount <= max_waves and is_htf_trend == -1 and
(isMarubozu or highVol) and close < ema34L and high <= ema89 and
(slope89 < -0.1 or isSqueezed ) and close < open
// --- 4. QUẢN LÝ LỆNH ---
var float last_entry = na
var float last_sl = na
var float last_tp1 = na
var float last_tp2 = na
var float last_tp3 = na
var float last_tp4 = na
var string last_type = "NONE"
var int lastBar = 0
trigger_buy = buyCondition and (bar_index - lastBar > trade_cd)
trigger_sell = sellCondition and (bar_index - lastBar > trade_cd)
// --- 5. TÍNH TOÁN SL & LOT SIZE ---
float contract_size = 1.0
if str.contains(syminfo.ticker, "XAU") or str.contains(syminfo.ticker, "GOLD")
contract_size := 100
// Logic tính SL linh hoạt
float swing_low = ta.lowest(low, lookback_x)
float swing_high = ta.highest(high, lookback_x)
float temp_sl_calc = na
if trigger_buy
temp_sl_calc := (sl_mode == "Dragon") ? ema34L : swing_low
if trigger_sell
temp_sl_calc := (sl_mode == "Dragon") ? ema34H : swing_high
float sl_dist_calc = math.abs(close - temp_sl_calc)
float calc_lots = (sl_dist_calc > 0) ? (risk_usd / (sl_dist_calc * contract_size)) : 0
if (trigger_buy or trigger_sell)
trades_count := trades_count + 1
lastBar := bar_index
last_type := trigger_buy ? "BUY" : "SELL"
last_entry := close
last_sl := temp_sl_calc
float riskAmt = math.abs(last_entry - last_sl)
last_tp1 := trigger_buy ? last_entry + (riskAmt * rr_tp1) : last_entry - (riskAmt * rr_tp1)
last_tp2 := trigger_buy ? last_entry + (riskAmt * rr_tp2) : last_entry - (riskAmt * rr_tp2)
last_tp3 := trigger_buy ? last_entry + (riskAmt * rr_tp3) : last_entry - (riskAmt * rr_tp3)
last_tp4 := trigger_buy ? last_entry + (riskAmt * rr_tp4) : last_entry - (riskAmt * rr_tp4)
// Vẽ dòng kẻ
line.new(bar_index, last_entry, bar_index + line_len, last_entry, color=color.new(color.gray, 50), width=2)
line.new(bar_index, last_sl, bar_index + line_len, last_sl, color=color.red, width=2, style=line.style_dashed)
line.new(bar_index, last_tp1, bar_index + line_len, last_tp1, color=color.green, width=1)
line.new(bar_index, last_tp2, bar_index + line_len, last_tp2, color=color.lime, width=1)
line.new(bar_index, last_tp3, bar_index + line_len, last_tp3, color=color.aqua, width=1)
line.new(bar_index, last_tp4, bar_index + line_len, last_tp4, color=color.blue, width=2)
// KÍCH HOẠT ALERT()
string alert_msg = (trigger_buy ? "BUY " : "SELL ") + syminfo.ticker + " at " + str.tostring(close) + " | SL Mode: " + sl_mode + " | Lot: " + str.tostring(calc_lots, "#.##") + " | SL: " + str.tostring(last_sl, format.mintick)
alert(alert_msg, alert.freq_once_per_bar_close)
// --- 6. CẢNH BÁO CỐ ĐỊNH ---
alertcondition(trigger_buy, title="Sonic R BUY Alert", message="Sonic R BUY Signal Detected")
alertcondition(trigger_sell, title="Sonic R SELL Alert", message="Sonic R SELL Signal Detected")
// --- 7. DASHBOARD & PLOT ---
var table sonic_table = table.new(position.top_right, 2, 10, bgcolor=color.new(color.black, 70), border_width=1, border_color=color.gray)
if barstate.islast
table.cell(sonic_table, 0, 0, "NY SESSION", text_color=color.white), table.cell(sonic_table, 1, 0, last_type, text_color=(last_type == "BUY" ? color.lime : color.red))
table.cell(sonic_table, 0, 1, "SL Mode:", text_color=color.white), table.cell(sonic_table, 1, 1, sl_mode, text_color=color.orange)
table.cell(sonic_table, 0, 2, "Trades this Sess:", text_color=color.white), table.cell(sonic_table, 1, 2, str.tostring(trades_count) + "/" + str.tostring(max_trades_per_session), text_color=color.yellow)
table.cell(sonic_table, 0, 3, "LOT SIZE:", text_color=color.orange), table.cell(sonic_table, 1, 3, str.tostring(calc_lots, "#.##"), text_color=color.orange)
table.cell(sonic_table, 0, 4, "Entry:", text_color=color.white), table.cell(sonic_table, 1, 4, str.tostring(last_entry, format.mintick), text_color=color.yellow)
table.cell(sonic_table, 0, 5, "SL:", text_color=color.white), table.cell(sonic_table, 1, 5, str.tostring(last_sl, format.mintick), text_color=color.red)
table.cell(sonic_table, 0, 6, "TP1:", text_color=color.gray), table.cell(sonic_table, 1, 6, str.tostring(last_tp1, format.mintick), text_color=color.green)
table.cell(sonic_table, 0, 7, "TP2:", text_color=color.gray), table.cell(sonic_table, 1, 7, str.tostring(last_tp2, format.mintick), text_color=color.lime)
table.cell(sonic_table, 0, 8, "TP3:", text_color=color.gray), table.cell(sonic_table, 1, 8, str.tostring(last_tp3, format.mintick), text_color=color.aqua)
table.cell(sonic_table, 0, 9, "TP4:", text_color=color.gray), table.cell(sonic_table, 1, 9, str.tostring(last_tp4, format.mintick), text_color=color.blue)
plot(ema89, color=slope89 > 0.1 ? color.lime : slope89 < -0.1 ? color.red : color.gray, linewidth=2)
p_high = plot(ema34H, color=color.new(color.blue, 80))
p_low = plot(ema34L, color=color.new(color.blue, 80))
fill(p_high, p_low, color=color.new(color.blue, 96))
plotshape(trigger_buy, "BUY", shape.triangleup, location.belowbar, color=color.green, size=size.small)
plotshape(trigger_sell, "SELL", shape.triangledown, location.abovebar, color=color.red, size=size.small)
bgcolor(isSqueezed ? color.new(color.yellow, 92) : na)
bgcolor(not is_in_session ? color.new(color.gray, 96) : na)






















