Trade History Label Display On Chart (Copy-paste from Rakuten)Overview
This script automatically displays buy/sell labels on the chart simply by copying and pasting your trade history (execution records) exported from Rakuten Securities in Excel format.
It also automatically calculates the profit and loss for each trade.
Background
When reviewing one’s trades, manually matching the broker’s execution records — “date, time, symbol, number of shares, buy or sell” — with the exact points on the chart can be extremely time-consuming.
This is especially inefficient for day traders and scalpers, who may execute dozens of trades per day.
With this script, you can automatically display the entry (IN) and exit (OUT) points on your chart as labels.
It’s also useful when attaching charts to your trading notes or journals, as you can visually confirm exactly where you entered and exited, greatly speeding up the review process.
The script also supports multiple symbols.
Even if you paste a combined dataset containing trades for several stocks, only the trades for the currently displayed symbol will appear automatically.
This allows you to maintain a single master record and instantly visualize the relevant trades just by switching charts.
How to Use
1. Preparing your Excel data
(1)Export trade history
Export your trade history as a CSV file from Rakuten Securities MarketSpeed II, etc.
If you want to include detailed execution times (seconds), make sure to export the data on the same day.
If you export later as a batch, only the date will remain — the time information (hh:mm:ss) will be lost.
(2)Open and format in Excel
Always open the CSV file in Excel — not in Notepad.
If opened in Notepad, double quotes (") will be automatically added, which makes the script unable to recognize the data correctly.
If you need to include seconds in the execution date/time, set a custom format in Excel as follows:
yyyy/mm/dd hh:mm:ss
Copy the range from Execution Date (Column A) to Execution Price (Column L).
Do not include header rows.
Copy data only. Including the header line will cause parsing errors in the script.
(3)If you create a memo column
You can add a Memo column (Column M) next to the “Execution Price” column.
Anything written here (e.g., trade reasoning or notes) will appear on the chart labels.
If you add a memo column, copy the range from Execution Date (A) to Memo (M) when pasting into the script.
Again, copy only the data (not headers). Including column names will cause errors.
2. Paste data into TradingView
Open the script settings and paste the copied data into the text area labeled “Trade Data Paste Area.”
The script automatically parses the text and recognizes date, time, symbol, trade type, position type, credit type, quantity, price, and memo, displaying them as labels at the correct bar.
You can paste data for multiple stocks at once.
Only the rows matching the currently displayed chart’s symbol will be plotted.
3. Display settings (ON/OFF controls)
Each label element (credit type, position type, quantity, memo, etc.) can be turned ON/OFF individually in the script settings via checkboxes (input.bool).
If you’ve created a memo column, its content will also appear on the label.
4. Checking on the chart
Each trade’s entry and exit are shown directly above or below the relevant candlestick.
You can switch between daily and intraday timeframes for more detailed inspection.
Labels are color-coded (e.g., Buy / Sell / Settlement) for quick visual recognition.
When switching symbols, only the relevant trade labels for that symbol will automatically appear.
5. Notes
The script is designed for use on 1-minute to daily charts.
If there’s no matching candlestick for a given trade date/time, the label may not display correctly.
Data input is manual paste only (automatic import not supported).
CSV files must be edited in Excel. Other editors may alter the text format, causing parsing errors.
Due to Pine Script limitations, input.text_area can hold a maximum of 40,960 characters.
The script is tailored for Rakuten Securities’ export format.
Using data from other brokers may require aligning column structures.
If Rakuten changes its export format, the script may need adjustment.
--------------------------------------------------------------------------------------------
概要
このスクリプトは、楽天証券の約定履歴(取引記録)をExcelからコピーして貼り付けるだけで、チャート上に売買ラベルを自動表示するツールです。
また、各取引の損益も自動で計算されます。
背景
自分のトレードを振り返る際、証券会社の約定記録から「何月何日何時何分、どの銘柄を、何株、買った・売った」を確認して、チャート上の位置と突き合わせる作業は非常に時間がかかります。
特にデイトレードやスキャルピングをしていると、1日に数十件以上の約定が発生し、手動で位置を確認するのは非効率です。
このスクリプトを使えば、IN・OUTのタイミングをチャート上にラベルとして自動表示できます。
自分のトレードノート、トレード日記にチャート画像を貼り付ける際も利用 でき、チャートのどこでエントリー/決済したかを視覚的に確認できるため、振り返り作業が大幅に効率化されます。
また、 複数銘柄に対応しており、貼り付けたデータの中から現在表示中のチャート銘柄と一致する売買履歴だけを抽出・表示します。
これにより、複数銘柄分の約定記録を一括管理していても、チャートを切り替えるだけで該当銘柄の取引履歴を瞬時に可視化できます。
使用方法
1. Excelデータの準備
(1)約定履歴のエクスポート
楽天証券マーケットスピードⅡなどから約定履歴をCSV形式でエクスポートします。
約定の詳細な時刻(時分秒単位)データを取得したい場合は、必ず当日中にエクスポートしてください。後日まとめて過去分をエクスポートしても、日付までしか記録されず、時刻情報(hh:mm:ss)は失われます。
(2)Excelで開いて整形
CSVは必ずExcelで開いて編集してください。メモ帳で開くと "(ダブルクォーテーション) が自動的に付与され、スクリプトが正しく認識できません。
約定日の秒単位までを扱いたい場合は、Excelのセル書式設定を開き、「ユーザー定義」で次の形式を新規作成して適用します。書式を変更しないでコピーした場合は分までのデータとなり、スクリプトは00秒と認識します。
yyyy/mm/dd hh:mm:ss
約定日(A列)~約定単価(L列)までのデータ部分をコピーする。
※このとき、項目名(ヘッダー行)は含めず、データ部分のみをコピーしてください。項目名を含めるとスクリプトが誤認識してエラーになります
(3)メモ欄を作成する場合
約定単価の右隣の列(M列)を「メモ欄」として利用できます。ここにエントリー根拠など任意のメモを書いておくとラベル上でもメモを確認できます。
メモ欄を作成した場合は、約定日(A列)からメモ欄(M列)までをコピーして貼り付けてください。
※このとき、項目名(ヘッダー行)は含めず、データ部分のみをコピーしてください。項目名を含めるとスクリプトが誤認識してエラーになります。
2. データをTradingViewに貼り付ける
スクリプトの設定画面を開き、「取引データ貼り付け欄」にExcelからコピーしたデータをそのまま貼り付けます。
スクリプトが自動でテキストを解析し、日付・時刻・銘柄コード・取引区分・建玉区分・信用区分・数量・単価・メモなどを認識して、ラベルをチャート上に自動配置します。
複数銘柄のデータを一度に貼り付けても問題ありません。現在表示中のチャート銘柄と一致する行だけがラベルとして描画されます。
3. 表示設定(ON/OFF切り替え)
各表示要素(信用区分・建玉区分・数量・メモなど)は、設定画面のチェックボックス(input.bool)で個別に表示/非表示を切り替えられます。
メモ欄を作成している場合は、その内容もラベルに表示されます。
4. チャートでの確認
各取引のIN・OUTが、チャート上の該当バー(ローソク足)にラベルとして表示されます。
日足・分足を切り替えることで、より詳細なタイミングを確認できます。
ラベルは、買い(Buy)・売り(Sell)・返済などで色分けされ、視覚的に理解しやすい構成になっています。
チャートを銘柄ごとに切り替えるだけで、その銘柄の取引履歴のみが自動表示されます。
5. 注意点
このスクリプトは 1分足~日足 での使用を想定しています。データ上の日付や時刻に対応するローソク足が存在しない場合、ラベルを正しく表示できません。
データは手動貼り付け方式です。自動取得には対応していません。
Excel以外のアプリで開いたCSVは、文字列形式が変わるため解析できないことがあります。
Pineスクリプトの仕様上、テキストエリアには40,960文字までしか貼り付けできません。
楽天証券の出力フォーマットを想定しているため、他社形式を使う場合は列構成を揃える必要があります。
また、楽天証券の出力フォーマットが変更された場合は、正しく表示出来なります。
Educational
Relative Performance Tracker [QuantAlgo]🟢 Overview
The Relative Performance Tracker is a multi-asset comparison tool designed to monitor and rank up to 30 different tickers simultaneously based on their relative price performance. This indicator enables traders and investors to quickly identify market leaders and laggards across their watchlist, facilitating rotation strategies, strength-based trading decisions, and cross-asset momentum analysis.
🟢 Key Features
1. Multi-Asset Monitoring
Track up to 30 tickers across any market (stocks, crypto, forex, commodities, indices)
Individual enable/disable toggles for each ticker to customize your watchlist
Universal compatibility with any TradingView symbol format (EXCHANGE:TICKER)
2. Ranking Tables (Up to 3 Tables)
Each ticker's percentage change over your chosen lookback period, calculated as:
(Current Price - Past Price) / Past Price × 100
Automatic sorting from strongest to weakest performers
Rank: Position from 1-30 (1 = strongest performer)
Ticker: Symbol name with color-coded background (green for gains, red for losses)
% Change: Exact percentage with color intensity matching magnitude
For example, Rank #1 has the highest gain among all enabled tickers, Rank #30 has the lowest (or most negative) return.
3. Histogram Visualization
Adjustable bar count: Display anywhere from 1 to 30 top-ranked tickers (user customizable)
Bar height = magnitude of percentage change.
Bars extend upward for gains, downward for losses. Taller bars = larger moves.
Green bars for positive returns, red for negative returns.
4. Customizable Color Schemes
Classic: Traditional green/red for intuitive interpretation
Aqua: Blue/orange combination for reduced eye strain
Cosmic: Vibrant aqua/purple optimized for dark mode
Custom: Full personalization of positive and negative colors
5. Built-In Ranking Alerts
Six alert conditions detect when rankings change:
Top 1 Changed: New #1 leader emerges
Top 3/5/10/15/20 Changed: Shifts within those tiers
🟢 Practical Applications
→ Momentum Trading: Focus on top-ranked assets (Rank 1-10) that show strongest relative strength for trend-following strategies
→ Market Breadth Analysis: Monitor how many tickers are above vs. below zero on the histogram to gauge overall market health
→ Divergence Spotting: Identify when previously leading assets lose momentum (drop out of top ranks) as potential trend reversal signals
→ Multi-Timeframe Analysis: Use different lookback periods on different charts to align short-term and long-term relative strength
→ Customized Focus: Adjust histogram bars to show only top 5-10 strongest movers for concentrated analysis, or expand to 20-30 for comprehensive overview
Business Predictability | Robinhodl21Have you ever wondered why a company beats earnings estimates yet its stock barely moves—or even drops? It might be because the market already expected a beat. Companies that consistently outperform forecasts tend to attract higher expectations over time, so another “+20 % surprise” may no longer surprise anyone. In other cases, investors may weigh sales growth more heavily than earnings, especially in growth sectors where top-line momentum matters more than margin control.
This indicator was built to explore exactly that dynamic. It helps you quantify how predictable a business truly is, how consistently it beats (or misses) expectations, and how well management seems to understand and guide its own performance. It’s not a timing tool, but a quality lens for long-term stock pickers who want to identify stable, well-managed companies with disciplined forecasting and execution.
What the indicator is
its is designed to quantify how often and how well a company beats-or-misses expectations (earnings and sales) over multiple years, then map that into a “predictability” and “quantile” score that you can use to compare across stocks. Its core logic combines deviation from estimates, rolling history, and statistical ranking to highlight companies where the management and the business appear to be aligned, stable and reliable.
Key features:
(• Choice of financial data frequency: you can select FQ (quarterly) or FY (annual) mode so the indicator adapts to your preferred horizon.
(• Deviation calculation: earnings surprise and/or sales surprise can be combined via a weighted setup so you pick which metric drives the score.
(• History buffer: you choose how many “commit points” (i.e., past surprises) to include in the statistics and quantile calculations.
(• Quantile ranking: the tool computes how the company’s recent deviation stacks up versus its own history; in FY-mode we still use quarterly density for statistical robustness.
(• Predictability & volatility metrics: beyond the quantile, you get a predictability score (low recent deviation + low volatility) and a simple “moat” / management-quality overlay via the SLOAN ratio.
(• Status and CI table: the indicator comes with a visualization panel summarizing mean surprise, standard deviation, sample length, and your computed quantile and predictability grades.
(• Future box: optional forward-map showing the next earnings date, estimated deltas and flagged surprises.
What it is not
It is not a timing indicator (i.e., it won’t tell you when to buy or sell precisely). It does not predict short-term price movements. Instead, it is tuned for fundamental stock picking: look for companies that repeatedly deliver surprise results, for which you believe management and business model give an advantage. Use it to add an extra dimension of “earnings surprise stability & management forecasting quality” to your dashboard.
My usage case
I developed this indicator as part of a broader portfolio strategy: I screen for companies that are both highly predictable (i.e., rarely miss) and have the capacity to beat earnings by a meaningful margin, because I believe this reflects strong business execution and good internal alignment. Over time I plan to expand the dashboard with more indicators geared toward company quality and moat (quantitative metrics built from financial statement data). This version is still work in progress (there may be bugs), so consider the output as one more input—do not rely on it exclusively.
Important caveats
The code is relatively computation-intensive, especially with large lookback windows and quarterly frequency. On my Mac Pro it runs smoothly—but depending on your device and market data feed you may experience slower performance. Also: synchronising earnings release timing and sales release timing across companies is tricky—sometimes data lags or is updated later, so there may be discrepancies. Because of this the indicator’s output should be treated as a guide rather than a guarantee.
Empirical background
The academic literature supports the idea that consistent surprises and management execution can matter—but the relationship is complex. For example, research on post-earnings-announcement drift (PEAD) shows that markets often under-react to surprise earnings and that returns continue to drift in the direction of surprise for weeks or months.  At the same time, studies such as Skinner & Sloan (2000) show that when you control for growth expectations the relation of surprise to future returns becomes weaker.  In other words: just beating earnings by 20 % repeatedly does not guarantee outsized share-price gains, because market expectations adjust, estimates bake in the beat and other factors (discount rates, fundamentals) still dominate.
Final word
Use it as part of your fundamental stock-analysis toolkit to gauge how well a company consistently delivers relative to expectations, how volatile those surprises are, and whether you think management has a competitive edge in forecasting or executing. As mentioned, this is a work in progress and should not be your only tool—but used wisely, it can add a meaningful extra dimension to your decision-making. I’ll continue to improve it and add new quality-and-moat oriented indicators in future releases.
Volume Profile Pro
Volume Profile Pro is an advanced market analysis tool that displays trading activity distribution across price levels. It identifies key market structure levels including Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) based on actual volume data.
ORIGINALITY & VALUE:
This indicator provides unique volume distribution analysis with intelligent timeframe detection, real-time profile development, and professional visualization. Unlike basic volume indicators, it calculates precise volume distribution across price levels and identifies high-volume nodes that act as dynamic support/resistance zones.
KEY FEATURES:
Smart Timeframe Detection - Automatically uses chart timeframe with manual override option
Value Area Calculation - Customizable percentage (68% recommended for standard deviation)
Real-time Profile Updates - Live developing profile during active trading sessions
Session Awareness - Adjusts for regular vs extended trading hours
Professional Visualization - Clean, customizable display with multiple placement options
Advanced Alert System - POC breach detection with multiple extension options
CORE COMPONENTS:
Point of Control (POC) - Price level with highest traded volume (market consensus price)
Value Area (VA) - Price range containing specified percentage of total volume
Value Area High (VAH) - Upper boundary of value area (Orange)
Value Area Low (VAL) - Lower boundary of value area (Bright Blue)
Volume Distribution - Visual histogram showing volume concentration at price levels
TRADING APPLICATIONS:
Dynamic Support/Resistance - POC and Value Area act as evolving S/R levels
Breakout Confirmation - Volume-backed breakouts from Value Area
Mean Reversion - Trading opportunities at Value Area boundaries
Market Structure - Understanding volume distribution and market acceptance
Risk Management - Using Value Area for strategic stop placement
SETUP INSTRUCTIONS:
Timeframe: Uses current chart timeframe by default (customizable in settings)
Value Area: Set to 68% for standard market profile or adjust based on volatility
Profile Placement: Choose Left for historical analysis or Right for current session
Alerts: Enable POC breach alerts for real-time trading signals
Visualization: Customize colors and widths to match your trading style
This indicator provides institutional-grade market structure analysis in an accessible format, helping traders identify high-probability trading zones based on actual volume data rather than just price action.
Blick Trades Position Size CalculatorThe Blick Trades Position Size indicator is a comprehensive Position Size Calculator designed for futures traders on TradingView. It automatically detects the asset type (Gold, Nasdaq, or ES futures - both regular and micro contracts) and calculates the optimal number of contracts to trade based on your risk amount and stop loss price.
The indicator features a "Maximize Risk" option that intelligently switches between regular and micro contracts to get as close as possible to your target risk amount, plus support for limit orders with custom entry prices. It displays visual elements on the chart including entry and stop loss lines with live risk calculations, and uses an asset-specific display system so you can control which charts show the indicator (preventing parameter confusion when switching between different futures contracts).
The calculator handles all the complex math automatically - just input your risk amount and stop loss, and it tells you exactly how many contracts to trade while showing your precise dollar risk in real-time.
QULLAMAGGIE Trades Database 2014-2022QULLAMAGGIE HISTORICAL TRADES DATABASE (2014-2022)
Educational research tool displaying historical entry points from documented trading activity.
═══════════════════════════════════════════
WHAT THIS IS:
- Visual database of 1,700+ historical trade entries
- Data compiled from publicly available livestream archives (2014-2022)
- Shows when trades were taken, not why or how they performed
- Educational reference for pattern recognition and timing study
⚠️ WORKS ON DAILY TIMEFRAME ONLY
This indicator is designed for daily charts. It will not display correctly on intraday timeframes (1min, 5min, 1h, etc.)
DATA SOURCES:
- Excel databases compiled from public archives
- Livestream recordings and tweet history
- Community-maintained trade logs
- Covers 554+ different tickers
WHAT THIS IS NOT:
❌ Not trade signals or recommendations
❌ Not showing entry prices, exits, stops, or position sizing
❌ Not guaranteed accurate or complete
❌ Past performance ≠ future results
❌ Does not work on intraday timeframes
INTENDED USE:
- Study historical timing patterns on daily charts
- Analyze market conditions when entries occurred
- Research setup frequency across different tickers
- Educational backtesting reference
LIMITATIONS:
- Shows only entry dates, not full trade management
- May contain transcription errors from original sources
- Historical data only - no predictive value
- Covers specific time period (2014-2022)
- Daily timeframe only
═══════════════════════════════════════════
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator displays historical data compiled from public sources.
Not affiliated with or endorsed by the original trader.
Always do your own research and risk management.
N Order EMAThe exponential moving average is one of the most fundamental tools in technical analysis, but its implementation is almost always locked to a single mathematical approach. I've always wanted to extend the EMA into an n-order filter, and after some time working through the digital signal processing mathematics, I finally managed to do it. This indicator takes the familiar EMA concept and opens it up to four different discretization methods, each representing a valid way to transform a continuous-time exponential smoother into a discrete-time recursive filter. On top of that, it includes adjustable filter order, which fundamentally changes the frequency response characteristics in ways that simply changing the period length cannot achieve.
The four discretization styles are impulse-matched, all-pole, matched z-transform, and bilinear (Tustin). The all-pole version is exactly like stacking multiple EMAs together but implemented in a single function with proper coefficient calculation. It uses a canonical form where you get one gain coefficient and the rest are zeros, with the feedback coefficients derived from the binomial expansion of the pole polynomial. The other three methods are attempts at making generalizations of the EMA in different ways. Impulse-matched creates the filter by matching the discrete-time impulse response to what the continuous EMA would produce. Matched z-transform directly maps the continuous poles to the z-domain using the exponential relationship. Bilinear uses the Tustin transformation with frequency prewarping to ensure the cutoff frequency is preserved despite the inherent warping of the mapping.
Honestly, they're all mostly the same in practice, which is exactly what you'd expect since they're all valid discretizations of the same underlying filter. The differences show up in subtle ways during volatile market conditions or in the exact phase characteristics, but for most trading applications the outputs will track each other closely. That said, the bilinear version works particularly well at low periods like 2, where other methods can sometimes produce numerical artifacts. I personally like the z-match for its clean frequency-domain properties, but the real point here is demonstrating that you can tackle the same problem from multiple mathematical angles and end up with slightly different but equally valid implementations.
The order parameter is where things get interesting. A first-order EMA is the standard single-pole recursive filter everyone knows. When you move to second-order, you're essentially cascading two filter sections, which steepens the roll-off in the frequency domain and changes how the filter responds to sudden price movements. Higher orders continue this progression. The all-pole style makes this particularly clear since it's literally stacking EMA operations, but all four discretization methods support arbitrary order. This gives you control over the aggressiveness of the smoothing that goes beyond just adjusting the period length.
On top of the core EMA calculation, I've included all the standard variants that people use for reducing lag. DEMA applies the EMA twice and combines the results to get faster response. TEMA takes it further with three applications. HEMA uses a Hull-style calculation with fractional periods, applying the EMA to the difference between a half-period EMA and a full-period EMA, then smoothing that result with the square root of the period. These are all implemented using whichever discretization method you select, so you're not mixing different mathematical approaches. Everything stays consistent within the chosen framework.
The practical upside of this indicator is flexibility for people building trading systems. If you need a moving average with specific frequency response characteristics, you can tune the order parameter instead of hunting for the right period length. If you want to test whether different discretization methods affect your strategy's performance, you can swap between them without changing any other code. For most users, the impulse-matched style at order 1 will behave almost identically to a standard EMA, which gives you a familiar baseline to work from. From there you can experiment with higher orders or different styles to see if they provide any edge in your particular market or timeframe.
What this really highlights is that even something as seemingly simple as an exponential moving average involves mathematical choices that usually stay hidden. The standard EMA formula you see in textbooks is already a discretized version of a continuous exponential decay, and there are multiple valid ways to perform that discretization. By exposing these options, this indicator lets you explore a parameter space that most traders never even know exists. Whether that exploration leads to better trading results is an empirical question that depends on your strategy and market, but at minimum it's a useful reminder that the tools we take for granted are built on arbitrary but reasonable mathematical decisions.
Market-BS Based on price action on 1 minute time frame-
Buy signal- whenever B print below the candle
Sell signal- whenever S print above the candle
X-GoldThis indicator visualizes the relationship between Gold’s global strength and the U.S. Dollar Index (DXY) to help traders identify periods of confluence or divergence between the two assets.
It combines:
# Gold Spread Index (GSI) – the average normalized value of XAU quoted against several major currencies (USD, AUD, CHF, EUR, GBP, and Silver).
This helps measure gold’s strength across global markets, not just against the U.S. dollar.
# Normalized DXY line – a z-scored and smoothed version of the U.S. Dollar Index for visual comparison.
The background highlights confluence zones:
🟢 Bullish Confluence – GSI trending up while DXY trends down
🔴 Bearish Confluence – GSI trending down while DXY trends up
⚫ Neutral / Divergence – both move in the same direction (often signals indecision or ranging conditions)
Key Features:
# Works on any timeframe
# Real-time background color zones for instant trend confluence visualization
# Optional alerts for buy/sell/neutral confluence transitions
# Clean layout in a separate panel for clear comparison
Disclaimer:
This script is for educational and analytical purposes only.
It does not provide financial advice or guarantee any trading outcomes.
Always perform your own analysis before making investment decisions.
OSOK AMERICANA [TakingProphets]OVERVIEW
OSOK is an ICT-inspired execution framework designed to help traders map the interaction between Higher-Timeframe (HTF) liquidity sweeps, qualifying Order Blocks, and Current-Timeframe (CTF) confirmation signals — all within a single, structured workflow.
By sequencing an HTF CRT → Order Block → CTF CRT model and integrating IPDA 20 equilibrium context, this tool provides traders with a visual framework for aligning intraday execution decisions with higher-timeframe intent. All plotted elements — sweeps, blocks, open prices, and equilibrium levels — update continuously in real time.
-----------------------------------------------------------------------------------------------
Core Concepts (ICT-Based)
-----------------------------------------------------------------------------------------------
Candle Range Transition (CRT) Sweeps
Bullish CRT → The second candle runs below the first candle’s low and closes back inside its range.
Bearish CRT → The second candle runs above the first candle’s high and closes back inside its range.
These patterns are frequently associated with liquidity grabs and potential directional shifts.
HTF → CTF Alignment
-Detects valid HTF CRTs (e.g., Daily CRTs derived from H4 or Weekly CRTs derived from Daily).
-Locates a qualifying Order Block within HTF Candle-2 to identify areas of potential interest.
-Waits for a modified CRT confirmation on the current timeframe before signaling possible directional bias.
IPDA 20 Equilibrium
-Plots the midpoint of the daily highest and lowest prices over the last 20 periods.
-Provides a visual reference for premium and discount pricing zones.
-----------------------------------------------------------------------------------------------
How OSOK Works
-----------------------------------------------------------------------------------------------
Step 1 — HTF CRT Check
On each new HTF candle, the script scans for a clean CRT formation on the higher aggregation (e.g., H4 → D or D → W).
If found, it tags the candles as C1, C2, and C3 and optionally shades their backgrounds for clear visual parsing.
Step 2 — HTF Order Block Identification
Searches within HTF Candle-2 for a qualifying Order Block using a compact pattern filter.
Draws a persistent OB level with clear labeling for context.
Step 3 — CTF Confirmation (Modified CRT)
Monitors your current chart timeframe for a modified CRT in alignment with the HTF setup:
For bullish setups → waits for a bullish modified CRT and close above C1’s high zone.
For bearish setups → expects a bearish modified CRT and close below C1’s low zone.
Step 4 — Real-Time Maintenance
All labels, lines, and background spans update intrabar.
If the setup invalidates — for example, if implied targets are exceeded before entry — the layout resets and waits for the next valid sequence.
-----------------------------------------------------------------------------------------------
KEY FEATURES
-----------------------------------------------------------------------------------------------
HTF CRT Visualization
-Optional “×” markers on Daily/Weekly CRT sweeps.
-Independent background shading for C1, C2, and C3.
Order Block + Open Price Context
-Draws HTF Order Block levels and plots C3 Open Price (DOP) for additional directional reference.
CTF CRT Execution Cue
-Displays a modified CRT on your current timeframe when conditions align with the HTF narrative.
IPDA 20 Line + Label
-Plots a dynamic midpoint level with an optional label for quick premium/discount context.
Optimized Drawing Engine
-Lightweight, efficient use of chart objects ensures smooth performance without visual clutter.
INPUTS
-Higher Timeframe Settings
-Toggle markers for Daily/Weekly CRT sweeps.
-Enable and color C1, C2, and C3 background spans.
-IPDA Display Options
-Control visibility, color, and line style for IPDA 20 equilibrium levels.
-Sweep, OB, and Open Price Styles
-Per-element customization for colors, widths, and labels.
-----------------------------------------------------------------------------------------------
BEST PRACTICES
-----------------------------------------------------------------------------------------------
Start on H4 or Daily to identify valid HTF CRT formations.
Confirm a qualifying OB inside Candle-2.
Drop to your execution timeframe and wait for the modified CTF CRT confirmation before acting.
Use IPDA 20 equilibrium as a reference for premium vs. discount zones.
Combine with your ICT session bias and overall market context for optimal decision-making.
-----------------------------------------------------------------------------------------------
Important Notes
-----------------------------------------------------------------------------------------------
OSOK is not a buy/sell signal provider. It’s a visual framework for understanding ICT-based execution models.
All objects reset automatically when new HTF candles form or setups invalidate.
Works on any symbol and timeframe by default, with HTF mapping set to H4 → D and D → W.
Harmonic Patterns Pro 1.0 [abusuhil]# Harmonic Patterns Pro 1.0
## 📊 Professional Harmonic Pattern Detector - All 10 Classical Models
**Harmonic Patterns Pro** is a comprehensive, non-repainting indicator that automatically detects and displays all 10 classical harmonic patterns in real-time. Built with precision and professional traders in mind, this indicator helps you identify high-probability reversal zones based on Fibonacci ratios.
---
## ✨ Key Features
### 🎯 10 Harmonic Patterns Supported
- **Gartley** - The most common harmonic pattern
- **Bat** - High accuracy with tight stop loss
- **Butterfly** - Extended pattern with strong reversal potential
- **Crab** - Extreme extension pattern (1.618 XA)
- **Deep Crab** - Deeper B retracement variant
- **Shark** - Unique C point extension pattern
- **Cypher** - C extends beyond A, tight stop loss
- **AB=CD** - Simple equal-leg pattern
- **Alternate Bat** - Bat variation with D beyond X
- **Three Drives** - Three equal impulse moves
### 🔒 100% Non-Repainting
- Patterns are drawn **only after completion** (candle close)
- Once drawn, patterns **stay permanently** on the chart
- No future data used - completely reliable for live trading
- What you see in history is what you get in real-time
### 🎚️ 5 Sensitivity Levels
Choose the detection accuracy that fits your trading style:
- **Strict (±2%)** - Highest accuracy, fewer signals
- **Medium-Strict (±5%)** - Good balance
- **Medium (±8%)** - Recommended for most traders
- **Medium-Loose (±12%)** - More patterns detected
- **Loose (±18%)** - Maximum pattern detection
### 🎨 Advanced Visual Design
- **PRZ Zone**: Automatic Potential Reversal Zone highlighting
- **Pattern Fill**: Shaded area between pattern lines for clarity
- **XABCD Points**: Clear labeling of all pivot points
- **Color Coded**: Green for bullish, red for bearish patterns
- **Customizable**: Adjust colors, opacity, line styles, label sizes
### 📈 Complete Trading System
- **Entry Signals**: Clear BUY/SELL labels at point D
- **3 Profit Targets**: TP1 (38.2%), TP2 (61.8%), TP3 (100% CD)
- **Stop Loss**: Automatically calculated and displayed
- **Entry Timing**: Option to enter at D or next candle
- **Pattern Names**: Each pattern labeled (e.g., "Bullish Bat")
### 🧹 Simplified Mode
- Toggle to hide all decorations
- Shows only: BUY/SELL signals, targets, and stop loss
- Perfect for experienced traders who want a clean chart
### 🚫 Anti-Overlap System
- **Minimum Bars Between Patterns** setting
- Prevents cluttered charts with overlapping patterns
- Ensures only the most recent, valid patterns are displayed
- Adjustable from 5 to 50 bars
### 🔔 Smart Alert System
- **3 Alert Types**: Buy Signal, Sell Signal, Any Signal
- **Signal Tester Compatible**: Works with backtesting tools
- **alertcondition()** method for TradingView alerts
- Get notified immediately when patterns complete
---
## 🚀 Quick Start Guide
### Recommended Settings (Beginners)
```
ZigZag Length: 12
Sensitivity: Medium
PRZ Opacity: 40
Fill Opacity: 30
Entry on Next Candle: false
Simplified Mode: false
Min Bars Between Patterns: 15
```
### For Live Trading
```
Entry on Next Candle: true ← Important!
```
### For Clean Charts
```
Simplified Mode: true
```
---
## 📊 Best Practices
### Timeframes
- **Best**: 4H, Daily, Weekly
- **Good**: 1H, 2H
- **Acceptable**: 15m, 30m
### Markets
Works on **all markets**: Forex, Stocks, Crypto, Commodities, Indices
### Risk Management
- Risk per trade: 1-2% of account
- Stop Loss: Use indicator's calculated SL
- Profit Targets: Scale out at TP1, TP2, TP3
- Minimum R:R: 1:2
---
## 🎓 Trading Strategies
### Strategy 1: Conservative
- Sensitivity: Strict
- Entry on Next Candle: true
- Confirm with RSI/MACD
### Strategy 2: Aggressive
- Sensitivity: Medium-Loose
- Quick entry and exit
- Scale out at TP1, TP2
### Strategy 3: Swing Trading
- Sensitivity: Strict
- Timeframe: 4H, Daily
- Hold to TP3
### Strategy 4: Multi-Timeframe
- Identify pattern on higher timeframe
- Enter on lower timeframe pattern
---
## 🔔 Setting Up Alerts
1. Right-click on chart → **"Add Alert"**
2. Condition → **"Harmonic Patterns Pro 1.0 "**
3. Choose: Buy Signal / Sell Signal / Any Signal
4. Click **"Create"**
---
## ❓ FAQ
**Q: Does this indicator repaint?**
A: No. 100% non-repainting.
**Q: What's the best sensitivity setting?**
A: Start with "Medium".
**Q: How many patterns should I expect?**
A: Daily: 1-3/month. 1H: 5-10/week.
**Q: Can I use this for backtesting?**
A: Yes! Compatible with Signal Tester.
**Q: Should I trade every pattern?**
A: No. Focus on quality setups.
**Q: What's the typical win rate?**
A: Beginners: 40-50%, Advanced: 65-75%.
---
## 🎯 Why Choose This Indicator?
✅ **Comprehensive** - All 10 patterns in one
✅ **Reliable** - 100% non-repainting
✅ **Professional** - Clean, customizable design
✅ **Complete** - Entry, targets, stop loss included
✅ **User-Friendly** - Easy to use
✅ **Flexible** - Works on all markets and timeframes
---
## ⚠️ Disclaimer
This indicator is a tool for technical analysis and should not be considered financial advice. Trading involves substantial risk of loss. Always use proper risk management and never risk more than you can afford to lose.
---
## 🏆 Final Words
**Harmonic Patterns Pro 1.0** combines classical harmonic pattern theory with modern automation. Start identifying high-probability reversal zones today!
**Version**: 1.0 | **Author**: | **Last Updated**: October 2025
**Happy Trading! 📊✨**
---
---
---
# ═══════════════════════════════════════════════════════════
# 🌟 النسخة العربية | ARABIC VERSION 🌟
# ═══════════════════════════════════════════════════════════
---
---
---
# مؤشر نماذج الهارمونيك الاحترافي 1.0
## 📊 كاشف احترافي لنماذج الهارمونيك - جميع النماذج العشرة الكلاسيكية
**مؤشر نماذج الهارمونيك الاحترافي** هو مؤشر شامل وغير معاد الرسم يكتشف ويعرض تلقائياً جميع نماذج الهارمونيك الكلاسيكية العشرة في الوقت الفعلي. تم بناؤه بدقة ومع وضع المتداولين المحترفين في الاعتبار، يساعدك هذا المؤشر على تحديد مناطق الانعكاس عالية الاحتمالية بناءً على نسب فيبوناتشي.
---
## ✨ الميزات الرئيسية
### 🎯 دعم 10 نماذج هارمونيك
- **Gartley (جارتلي)** - النموذج الأكثر شيوعاً
- **Bat (الخفاش)** - دقة عالية مع وقف خسارة ضيق
- **Butterfly (الفراشة)** - نموذج ممتد مع إمكانية انعكاس قوية
- **Crab (السلطعون)** - نموذج امتداد متطرف (1.618 XA)
- **Deep Crab (السلطعون العميق)** - نسخة أعمق من السلطعون
- **Shark (القرش)** - نموذج فريد بامتداد النقطة C
- **Cypher (السايفر)** - C تمتد بعد A، وقف خسارة ضيق
- **AB=CD** - نموذج بسيط بأرجل متساوية
- **Alternate Bat (الخفاش البديل)** - نسخة من الخفاش مع D بعد X
- **Three Drives (الدفعات الثلاث)** - ثلاث حركات دفع متساوية
### 🔒 عدم إعادة الرسم 100%
- يتم رسم النماذج **فقط بعد الاكتمال** (إغلاق الشمعة)
- بمجرد الرسم، تبقى النماذج **بشكل دائم** على الشارت
- لا يتم استخدام بيانات مستقبلية - موثوق تماماً للتداول المباشر
- ما تراه في التاريخ هو ما تحصل عليه في الوقت الفعلي
### 🎚️ 5 مستويات حساسية
اختر دقة الكشف التي تناسب أسلوب التداول الخاص بك:
- **Strict (صارم ±2%)** - أعلى دقة، إشارات أقل
- **Medium-Strict (متوسط-صارم ±5%)** - توازن جيد
- **Medium (متوسط ±8%)** - موصى به لمعظم المتداولين
- **Medium-Loose (متوسط-مرن ±12%)** - اكتشاف المزيد من النماذج
- **Loose (مرن ±18%)** - أقصى اكتشاف للنماذج
### 🎨 تصميم مرئي متقدم
- **منطقة PRZ**: تمييز تلقائي لمنطقة الانعكاس المحتملة
- **تظليل النموذج**: منطقة مظللة بين خطوط النموذج للوضوح
- **نقاط XABCD**: تسمية واضحة لجميع نقاط المحور
- **ترميز لوني**: أخضر للنماذج الصاعدة، أحمر للنماذج الهابطة
- **قابل للتخصيص**: ضبط الألوان، الشفافية، أنماط الخطوط، أحجام الملصقات
### 📈 نظام تداول كامل
- **إشارات الدخول**: ملصقات BUY/SELL واضحة عند النقطة D
- **3 أهداف ربح**: TP1 (38.2%)، TP2 (61.8%)، TP3 (100% CD)
- **وقف الخسارة**: يتم حسابه وعرضه تلقائياً
- **توقيت الدخول**: خيار للدخول عند D أو الشمعة التالية
- **أسماء النماذج**: كل نموذج مُسمى (مثل "Bullish Bat")
### 🧹 الوضع المبسط
- تبديل لإخفاء جميع الزخارف
- يعرض فقط: إشارات BUY/SELL، الأهداف، ووقف الخسارة
- مثالي للمتداولين ذوي الخبرة الذين يريدون شارت نظيف
### 🚫 نظام منع التداخل
- إعداد **الحد الأدنى من الشموع بين النماذج**
- يمنع الشارت المزدحم بالنماذج المتداخلة
- يضمن عرض النماذج الأحدث والصالحة فقط
- قابل للتعديل من 5 إلى 50 شمعة
### 🔔 نظام تنبيهات ذكي
- **3 أنواع تنبيهات**: إشارة شراء، إشارة بيع، أي إشارة
- **متوافق مع Signal Tester**: يعمل مع أدوات الاختبار الخلفي
- طريقة **alertcondition()** لتنبيهات TradingView
- احصل على إشعار فوري عند اكتمال النماذج
---
## 🚀 دليل البدء السريع
### الإعدادات الموصى بها (للمبتدئين)
```
ZigZag Length: 12
Sensitivity: Medium
PRZ Opacity: 40
Fill Opacity: 30
Entry on Next Candle: false
Simplified Mode: false
Min Bars Between Patterns: 15
```
### للتداول المباشر
```
Entry on Next Candle: true ← مهم!
```
### للشارت النظيف
```
Simplified Mode: true
```
---
## 📊 أفضل الممارسات
### الأطر الزمنية
- **الأفضل**: 4 ساعات، يومي، أسبوعي
- **جيد**: ساعة، ساعتين
- **مقبول**: 15 دقيقة، 30 دقيقة
### الأسواق
يعمل على **جميع الأسواق**: الفوركس، الأسهم، العملات الرقمية، السلع، المؤشرات
### إدارة المخاطر
- المخاطرة لكل صفقة: 1-2% من الحساب
- وقف الخسارة: استخدم SL المحسوب من المؤشر
- أهداف الربح: خذ أرباح تدريجية عند TP1، TP2، TP3
- الحد الأدنى للمخاطرة/العائد: 1:2
---
## 🎓 استراتيجيات التداول
### الاستراتيجية 1: المحافظة
- الحساسية: Strict (صارم)
- الدخول من الشمعة التالية: true
- التأكيد مع RSI/MACD
### الاستراتيجية 2: العدوانية
- الحساسية: Medium-Loose (متوسط-مرن)
- دخول وخروج سريع
- أخذ أرباح تدريجية عند TP1، TP2
### الاستراتيجية 3: السوينج
- الحساسية: Strict (صارم)
- الإطار الزمني: 4 ساعات، يومي
- الاحتفاظ حتى TP3
### الاستراتيجية 4: متعدد الأطر الزمنية
- تحديد النموذج على إطار زمني أعلى
- الدخول على نموذج إطار زمني أقل
---
## 🔔 إعداد التنبيهات
1. انقر بزر الماوس الأيمن على الشارت → **"Add Alert"**
2. الشرط → **"Harmonic Patterns Pro 1.0 "**
3. اختر: Buy Signal / Sell Signal / Any Signal
4. اضغط **"Create"**
---
## ❓ الأسئلة الشائعة
**س: هل يعيد المؤشر الرسم؟**
ج: لا. عدم إعادة الرسم 100%.
**س: ما هو أفضل إعداد للحساسية؟**
ج: ابدأ بـ "Medium" (متوسط).
**س: كم عدد النماذج المتوقعة؟**
ج: يومي: 1-3 شهرياً. ساعة: 5-10 أسبوعياً.
**س: هل يمكنني استخدامه للاختبار الخلفي؟**
ج: نعم! متوافق مع Signal Tester.
**س: هل يجب أن أتداول كل نموذج؟**
ج: لا. ركز على الإعدادات عالية الجودة.
**س: ما هو معدل الربح النموذجي؟**
ج: المبتدئون: 40-50%، المتقدمون: 65-75%.
---
## 🎯 لماذا تختار هذا المؤشر؟
✅ **شامل** - جميع النماذج العشرة في مؤشر واحد
✅ **موثوق** - عدم إعادة الرسم 100%
✅ **احترافي** - تصميم نظيف وقابل للتخصيص
✅ **كامل** - الدخول، الأهداف، ووقف الخسارة مشمولة
✅ **سهل الاستخدام** - سهل الاستخدام
✅ **مرن** - يعمل على جميع الأسواق والأطر الزمنية
---
## ⚠️ إخلاء المسؤولية
هذا المؤشر هو أداة للتحليل الفني ولا ينبغي اعتباره نصيحة مالية. التداول ينطوي على مخاطر كبيرة للخسارة. استخدم دائماً إدارة المخاطر المناسبة ولا تخاطر أبداً بأكثر مما يمكنك تحمل خسارته.
---
## 🏆 الكلمة الأخيرة
**مؤشر نماذج الهارمونيك الاحترافي 1.0** يجمع بين نظرية نماذج الهارمونيك الكلاسيكية والأتمتة الحديثة. ابدأ في تحديد مناطق الانعكاس عالية الاحتمالية اليوم!
**الإصدار**: 1.0 | **المطور**: | **آخر تحديث**: أكتوبر 2025
**تداول موفق! 📊✨**
Directional Momentum VisualizerDescription
This script provides a color-coded column visualization of a classic momentum oscillator that measures relative strength and weakness. Instead of a single line, it uses conditional coloring to make directional changes easier to identify at a glance.
The tool is designed for clarity and adaptability, offering both column and line displays, with optional overbought, oversold, and midpoint guides.
How It Works
The script evaluates the oscillator’s value relative to a midpoint and its previous reading.
Depending on whether it’s above or below the midpoint — and whether it’s rising or falling — each column changes color:
Strong upward momentum (above midpoint and rising) → bright green
Fading upward momentum (above midpoint but falling) → pale green
Strong downward momentum (below midpoint and falling) → bright red
Fading downward momentum (below midpoint but rising) → pale red
Unchanged from the previous value → gray
This structure makes momentum shifts instantly visible without relying on line crossings or alerts.
Key Features
Color-coded momentum columns for instant visual interpretation
Adjustable midpoint, overbought, and oversold levels
Optional line overlay for smoother reference
Dynamic background highlighting in extreme zones
Works on any symbol or timeframe
Inputs Overview
Length: Controls the sensitivity of the oscillator calculation.
Source: Selects the price source (Close, HL2, etc.).
Midpoint Level: Defines the central reference level separating bullish and bearish momentum.
Show Line: Toggles visibility of the traditional line overlay.
Overbought / Oversold Levels: Define upper and lower boundaries for potential exhaustion zones.
How to Use
Add the script to your chart from the Indicators tab.
Adjust the midpoint and level settings to fit your preferred configuration.
Observe how column colors shift to reflect strength or weakness in momentum.
Use these transitions as visual context, not as trade signals.
How it Helps
This visual approach offers a clearer perspective on momentum dynamics by replacing the traditional single-line display with color-coded columns. The conditional coloring instantly reveals whether momentum is strengthening or weakening around a chosen midpoint, making trend shifts and fading pressure easier to interpret at a glance. It helps reduce visual noise and allows for quicker, more intuitive analysis of market behavior.
This tool is intended purely as a visual aid to help identify changing momentum conditions at a glance. It is not a buy or sell signal generator and should be used in combination with other forms of analysis and sound risk management.
⚠️ Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
Mythical EMAs + Dynamic VWAP BandThis indicator titled "Mythical EMAs + Dynamic VWAP Band." It overlays several volatility-adjusted Exponential Moving Averages (EMAs) on the chart, along with a Volume Weighted Average Price (VWAP) line and a dynamic band around it.
Additionally, it uses background coloring (clouds) to visualize bullish or bearish trends, with intensity modulated by the price's position relative to the VWAP.
The EMAs are themed with mythical names (e.g., Hermes for the 9-period EMA), but this is just stylistic flavoring and doesn't affect functionality.
I'll break it down section by section, explaining what each part does, how it works, and its purpose in the context of technical analysis. This indicator is designed for traders to identify trends, momentum, and price fairness relative to volume-weighted averages, with volatility adjustments to make the EMAs more responsive in volatile markets.
### 1. **Volatility Calculation (ATR)**
```pine
atrLength = 14
volatility = ta.atr(atrLength)
```
- **What it does**: Calculates the Average True Range (ATR) over 14 periods (a common default). ATR measures market volatility by averaging the true range (the greatest of: high-low, |high-previous close|, |low-previous close|).
- **Purpose**: This volatility value is used later to dynamically adjust the EMAs, making them more sensitive in high-volatility conditions (e.g., during market swings) and smoother in low-volatility periods. It helps the indicator adapt to changing market environments rather than using static EMAs.
### 2. **Custom Mythical EMA Function**
```pine
mythical_ema(src, length, base_alpha, vol_factor) =>
alpha = (2 / (length + 1)) * base_alpha * (1 + vol_factor * (volatility / src))
ema = 0.0
ema := na(ema ) ? src : alpha * src + (1 - alpha) * ema
ema
```
- **What it does**: Defines a custom function to compute a modified EMA.
- It starts with the standard EMA smoothing factor formula: `2 / (length + 1)`.
- Multiplies it by a `base_alpha` (a user-defined multiplier to tweak responsiveness).
- Adjusts further for volatility: Adds a term `(1 + vol_factor * (volatility / src))`, where `vol_factor` scales the impact, and `volatility / src` normalizes ATR relative to the source price (making it scale-invariant).
- The EMA is then calculated recursively: If the previous EMA is NA (e.g., at the start), it uses the current source value; otherwise, it weights the current source by `alpha` and the prior EMA by `(1 - alpha)`.
- **Purpose**: This creates "adaptive" EMAs that react faster in volatile markets (higher alpha when volatility is high relative to price) without overreacting in calm periods. It's an enhancement over standard EMAs, which use fixed alphas and can lag in choppy conditions. The mythical theme is just naming—functionally, it's a volatility-weighted EMA.
### 3. **Calculating the EMAs**
```pine
ema9 = mythical_ema(close, 9, 1.2, 0.5) // Hermes - quick & nimble
ema20 = mythical_ema(close, 20, 1.0, 0.3) // Apollo - short-term foresight
ema50 = mythical_ema(close, 50, 0.9, 0.2) // Athena - wise strategist
ema100 = mythical_ema(close, 100, 0.8, 0.1) // Zeus - powerful oversight
ema200 = mythical_ema(close, 200, 0.7, 0.05) // Kronos - long-term patience
```
- **What it does**: Applies the custom EMA function to the close price with varying lengths (9, 20, 50, 100, 200 periods), base alphas (decreasing from 1.2 to 0.7 for longer periods to make shorter ones more responsive), and volatility factors (decreasing from 0.5 to 0.05 to reduce volatility influence on longer-term EMAs).
- **Purpose**: These form a multi-timeframe EMA ribbon:
- Shorter EMAs (e.g., 9 and 20) capture short-term momentum.
- Longer ones (e.g., 200) show long-term trends.
- Crossovers (e.g., short EMA crossing above long EMA) can signal buy/sell opportunities. The volatility adjustment makes them "mythical" by adding dynamism, potentially improving signal quality in real markets.
### 4. **VWAP Calculation**
```pine
vwap_val = ta.vwap(close) // VWAP based on close price
```
- **What it does**: Computes the Volume Weighted Average Price (VWAP) using the built-in `ta.vwap` function, anchored to the close price. VWAP is the average price weighted by volume over the session (resets daily by default in Pine Script).
- **Purpose**: VWAP acts as a benchmark for "fair value." Prices above VWAP suggest bullishness (buyers in control), below indicate bearishness (sellers dominant). It's commonly used by institutional traders to assess entry/exit points.
### 5. **Plotting EMAs and VWAP**
```pine
plot(ema9, color=color.fuchsia, title='EMA 9 (Hermes)')
plot(ema20, color=color.red, title='EMA 20 (Apollo)')
plot(ema50, color=color.orange, title='EMA 50 (Athena)')
plot(ema100, color=color.aqua, title='EMA 100 (Zeus)')
plot(ema200, color=color.blue, title='EMA 200 (Kronos)')
plot(vwap_val, color=color.yellow, linewidth=2, title='VWAP')
```
- **What it does**: Overlays the EMAs and VWAP on the chart with distinct colors and titles for easy identification in TradingView's legend.
- **Purpose**: Visualizes the EMA ribbon and VWAP line. Traders can watch for EMA alignments (e.g., all sloping up for uptrend) or price interactions with VWAP.
### 6. **Dynamic VWAP Band**
```pine
band_pct = 0.005
vwap_upper = vwap_val * (1 + band_pct)
vwap_lower = vwap_val * (1 - band_pct)
p1 = plot(vwap_upper, color=color.new(color.yellow, 0), title="VWAP Upper Band")
p2 = plot(vwap_lower, color=color.new(color.yellow, 0), title="VWAP Lower Band")
fill_color = close >= vwap_val ? color.new(color.green, 80) : color.new(color.red, 80)
fill(p1, p2, color=fill_color, title="Dynamic VWAP Band")
```
- **What it does**: Creates a band ±0.5% around the VWAP.
- Plots the upper/lower bands with full transparency (color opacity 0, so lines are invisible).
- Fills the area between them dynamically: Semi-transparent green (opacity 80) if close ≥ VWAP (bullish bias), red if below (bearish bias).
- **Purpose**: Highlights deviations from VWAP visually. The color change provides an at-a-glance sentiment indicator—green for "above fair value" (potential strength), red for "below" (potential weakness). The narrow band (0.5%) focuses on short-term fairness, and the fill makes it easier to spot than just the line.
### 7. **Trend Clouds with VWAP Interaction**
```pine
bullish = ema9 > ema20 and ema20 > ema50
bearish = ema9 < ema20 and ema20 < ema50
bullish_above_vwap = bullish and close > vwap_val
bullish_below_vwap = bullish and close <= vwap_val
bearish_below_vwap = bearish and close < vwap_val
bearish_above_vwap = bearish and close >= vwap_val
bgcolor(bullish_above_vwap ? color.new(color.green, 50) : na, title="Bullish Above VWAP")
bgcolor(bullish_below_vwap ? color.new(color.green, 80) : na, title="Bullish Below VWAP")
bgcolor(bearish_below_vwap ? color.new(color.red, 50) : na, title="Bearish Below VWAP")
bgcolor(bearish_above_vwap ? color.new(color.red, 80) : na, title="Bearish Above VWAP")
```
- **What it does**: Defines trend conditions based on EMA alignments:
- Bullish: Shorter EMAs stacked above longer ones (9 > 20 > 50, indicating upward momentum).
- Bearish: The opposite (downward momentum).
- Sub-conditions combine with VWAP: E.g., bullish_above_vwap is true only if bullish and price > VWAP.
- Applies background colors (bgcolor) to the entire chart pane:
- Strong bullish (above VWAP): Green with opacity 50 (less transparent, more intense).
- Weak bullish (below VWAP): Green with opacity 80 (more transparent, less intense).
- Strong bearish (below VWAP): Red with opacity 50.
- Weak bearish (above VWAP): Red with opacity 80.
- If no condition matches, no color (na).
- **Purpose**: Creates "clouds" for trend visualization, enhanced by VWAP context. This helps traders confirm trends—e.g., a strong bullish cloud (darker green) suggests a high-conviction uptrend when price is above VWAP. The varying opacity differentiates signal strength: Darker for aligned conditions (trend + VWAP agreement), lighter for misaligned (potential weakening or reversal).
### Overall Indicator Usage and Limitations
- **How to use it**: Add this to a TradingView chart (e.g., stocks, crypto, forex). Look for EMA crossovers, price bouncing off EMAs/VWAP, or cloud color changes as signals. Bullish clouds with price above VWAP might signal buys; bearish below for sells.
- **Strengths**: Combines momentum (EMAs), volume (VWAP), and volatility adaptation for a multi-layered view. Dynamic colors make it intuitive.
- **Limitations**:
- EMAs lag in ranging markets; volatility adjustment helps but doesn't eliminate whipsaws.
- VWAP resets daily (standard behavior), so it's best for intraday/session trading.
- No alerts or inputs for customization (e.g., changeable lengths)—it's hardcoded.
- Performance depends on the asset/timeframe; backtest before using.
- **License**: Mozilla Public License 2.0, so it's open-source and modifiable.
G Position Size Calculator (Crypto)G Position Size Calculator (Crypto)
This tool helps traders quickly visualize and calculate risk, position size, leverage, and R:R ratio directly on the chart for crypto trading.
It works similarly to TradingView’s Long/Short Position tool but automatically computes all metrics based on your clicks.
⚙️ How to Use
Add to Chart
Click Indicators → My Scripts → G Position Size Calculator (Crypto)
Set Entry, Stop-Loss, and Take-Profit
Open the script’s ⚙️ Settings.
Click the crosshair icon next to Entry, then click on the chart.
Do the same for Stop-Loss and Take-Profit.
Adjust Account & Risk Settings
Enter your Account Size (USD).
Set your Risk % per trade (default: 1%).
Visual Feedback
A green box shows your profit zone (Entry → TP).
A red box shows your loss zone (Entry → SL).
The label on the right displays:
Risk (% and $)
R:R ratio
Position size (units)
Leverage required
Fine-Tune Without Re-clicking
Use the nudge inputs (Entry, Stop, TP) to move levels up/down by 1 tick at a time.
Positive = up, negative = down.
Re-pick Levels Anytime
Re-open settings and click the crosshair again to redefine a level.
📈 Features
Automatic calculation of risk, position size, leverage, and R:R ratio.
Visual green/red box representing profit and loss areas.
Adjustable risk %, account balance, and label offset.
“Nudge” controls to emulate quick drag adjustments.
Clean layout designed for crypto price charts (works on any symbol).
Leverage & Liquidations (Margins) Plotter - [SANIXLAB]Leverage & Liquidations (Margins) Plotter —
This indicator visualises liquidation zones across multiple leverage tiers and helps traders manage margin exposure .
It dynamically plots the liquidation ranges for 5x → 100x positions, highlighting where leveraged traders could get wiped out.
Add manual long / short markers , choose leverage and margin size, and the script calculates your exact liquidation prices — buffered for realism.
A clean control panel shows entries, liquidation levels, and percentage distance to liquidation.
Features
Visual leverage zones (5x → 100x)
Manual Long / Short marker system
Margin-based liquidation math with buffer
Toggleable entry & liq lines
Compact top-right control panel
Floating mid-zone leverage labels
Fully customizable colors
Use Case
Quickly see:
Where 10x / 20x traders get squeezed
How far your own trade can move before margin burn
Where cascading liquidations might begin
Perfect for futures & leverage traders who want to keep one eye on price … and the other on survival.
— MR.L ☕
Brewed with caffeine, coded with care.
Swing Points LiquiditySwing Points Liquidity
Unlock advanced swing detection and liquidity zone marking for smarter trading decisions.
Overview:
Swing Points Liquidity automatically identifies key swing highs and swing lows using a five-candle “palm” structure, marking each significant price turn with precise labels: “BSL swing high” for potential bearish liquidity and “SSL swing low” for potential bullish liquidity. This transparent swing logic provides a robust way to highlight areas where price is most likely to react—making it an invaluable tool for traders applying Smart Money Concepts, supply and demand, or liquidity-based strategies.
How It Works:
The indicator scans every candle on your chart to detect and label swing highs and lows.
A swing high (“BSL swing high”) is identified when a central candle’s high is greater than the highs of the previous two and next two candles.
A swing low (“SSL swing low”) is identified when a central candle’s low is lower than the lows of the previous two and next two candles.
Labels are plotted for every detected swing point, providing clear visualization of important market liquidity levels on any symbol and timeframe.
How to Use:
Liquidity levels marked by the indicator are potential price reversal zones. To optimize your entries, combine these levels with confirmation signals such as reversal candlestick patterns, order blocks, or fair value gaps (FVGs).
When you see a “BSL swing high” or “SSL swing low” label, observe the price action at that area—if a reliable reversal pattern or order block/FVG forms, it can signal a high-probability trade opportunity.
These marked liquidity swings are also excellent for locating confluence zones, setting stop losses, and identifying where institutional activity or smart money may trigger significant moves. Always use market structure and price action in conjunction with these levels for greater consistency and confidence in your trading.
Features:
Customizable label display for swing highs (BSL) and swing lows (SSL)
Automatic detection using robust 5-candle palm logic
Works with all symbols and chart timeframes
Lightweight, clear visual style—easy for manual and algorithmic traders
Notes:
The indicator requires at least two candles both before and after each swing point, so labels will start appearing after enough historical data is loaded.
For deeper historical analysis, simply scroll left or zoom out on your chart to load more candles—the indicator will automatically process and display swing points on all available data.
Matt Market EfficiencyThis is a custom Pine Script v5 indicator for TradingView that creates a Market Efficiency Heatmap as a background overlay on your chart. It visualizes how "efficient" the market's price movement is over a specified period—essentially measuring how much of the total price volatility (wiggle room) resulted in net directional progress, weighted with volume activity.
High efficiency (stronger, less transparent color) indicates a clean trend with minimal wasted movement (e.g., a strong uptrend or downtrend).
Low efficiency (fainter color) suggests choppy, inefficient price action (e.g., ranging or noisy market).
Color coding: Teal for bullish (net price up), Purple for bearish (net price down).
The heatmap intensity scales from 1% opacity (very low efficiency) to 25% opacity (high efficiency), making it subtle yet informative without overwhelming the chart.
SMC by ProfesorSMC by Profesor
Discover market structure mastery with SMC by Profesor – your ultimate Smart Money Concepts toolkit for TradingView. Identify bullish/bearish BOS & CHoCH breaks, plot internal/swing order blocks, detect EQH/EQL levels, highlight FVGs, and zone premium/discount areas. Visualize swing points, PDH/PDL lines, and trend-colored candles. Receive instant alerts for breakouts, gaps, and more. Perfect for ICT traders seeking precision in any timeframe. Historical or real-time mode – elevate your edge today!
NQ B3X-S1.5X cash by BellevueFXNQ B3X-S1.5X Cash by BellevueFX
Precision Breakout Engine for Nasdaq Futures (NQ)
The NQ B3X-S1.5X Cash indicator by BellevueFX is an advanced price-action and volatility-driven breakout system designed for short-term scalpers, intraday traders, and algorithmic strategy builders focused on Nasdaq (NQ) or high-volatility assets.
It combines ATR-adaptive trailing logic, EMA structure alignment, and dynamic target generation to highlight institutional momentum shifts and sniper entry zones in real time.
⚙️ Core Features
📈 ATR-Adaptive Trailing Stop:
Automatically adjusts to volatility for accurate dynamic stop levels.
🧠 Smart Sensitivity Control:
Fine-tune responsiveness using the Key Sensitivity parameter — higher values smooth noise, lower values increase reactivity.
🔵 EMA Trend Alignment:
EMA-50 and EMA-200 act as directional filters and structure references.
🧭 Heikin Ashi Option:
Optionally use HA candles for smoother breakout confirmation.
🎯 Dynamic TP/SL Levels:
Automatically draws ENTRY, STOP LOSS, TP1, and TP2 levels for each signal — cleanly synchronized with the current price.
🔔 Built-in Alerts:
Ready-to-use Long and Short alert conditions for automated trade execution or signal notifications.
💡 How It Works
The system continuously measures volatility through ATR(500) and reacts dynamically to price structure:
BUY signal: When price crosses above the trailing baseline and confirms bullish momentum.
SELL signal: When price falls below the baseline and momentum confirms bearish reversal.
Targets: Automatically projected based on swing structure (2× and 4× distance from SL).
⚡ Best Use Cases
Works best on Nasdaq (NQ), but also effective on US30, SPX, and XAUUSD.
Designed for scalping, momentum trading, and breakout confirmations.
Compatible with BellevueFX AI tools and future Profitcosmos automation modules.
🧩 Recommended Settings
Default sensitivity: 9.0
ATR period: 500
Swing lookback: 5
Use on 1-min and 5-min charts for best performance.
🧠 Developer
BellevueFX — a division of Groupe Bellevue Inc.
Focused on precision trading systems, AI-driven analytics, and professional automation tools for active traders.
🔗 Visit www.profitcosmos.com
for strategy packs, tools, and automation updates.
SST Table ShekharSST Table Shekhar — v6.10.2
A compact, movable table that displays up to 20 symbols per group (Group A / Group B), shows current price (CMP), previous 20-day high (OLD GTT), current 20-day high (NEW GTT) and an UPDATE flag when NEW GTT < OLD GTT. Adds SMA20 on-chart, with an optional daily closing-basis alert for CMP crossing above SMA20. Designed for daily timeframe usage and efficient multi-symbol monitoring.
Key features
Two symbol groups (Group A / Group B), each up to 20 tickers — switch between groups without editing text fields.
Clean, transparent, movable table: STOCK | CMP | OLD GTT | NEW GTT | UPDATE.
Correct per-symbol OLD GTT (previous bar’s 20-day high) using a single request.security() call per symbol (optimized under TradingView limits).
SMA20 plotted on the chart (blue line).
Toggleable plots: HIGH20 / LOW20 / TARGET for the active chart symbol.
Alternate row shading and header background selector; font size selector.
Alerts:
Update GTT — when NEW 20D HIGH < OLD 20D HIGH (aggregated list).
CMP Cross Above SMA20 (closing basis) — when symbol closes above its SMA20 (uses previous close & previous SMA20 for closing-basis detection).
Alert messages list all symbols that triggered in the active group and include the group name.
Robust parser for input symbol lists — handles commas, semicolons, pipes, newlines and trims empty entries.
Inputs (exposed)
20-Day High/Low Length — period for HIGH/LOW (default 20).
Target % — percent used to compute target (optional plotted).
Group A / Group B — comma-separated lists of tickers (blank by default).
Show Which Group? — select Group A or Group B for display.
Table Corner — position (Top Left / Top Right / Bottom Left / Bottom Right).
Font Size — Small / Normal / Large.
Header Background — Transparent / Silver / Blue / Green / Yellow.
Show HIGH20/LOW20/TARGET Plots — toggle plotting of those lines for the chart symbol.
Alternate Row Shading & opacity.
Enable Update GTT Alert & Alert Only On Bar Close toggle.
Enable CMP Cross Above SMA20 Alert & Cross Only On Bar Close toggle.
Alerts / How to use
Put the script on a chart (recommended timeframe: 1D for reliable closing-basis cross signals).
Populate Group A and/or Group B with up to 20 tickers each (comma-separated). Leave blank to start fresh.
In the indicator’s Inputs, choose which group to view with Show Which Group?.
To create a TradingView alert:
Click the Alarm icon → Add alert.
Condition: choose either the alertcondition lines exposed by the script:
SST Table Shekhar v6.10.2 → Update GTT (any symbol)
SST Table Shekhar v6.10.2 → CMP Cross Above SMA20 (any symbol)
Or choose Any alert() function call if you want the script’s internal alert() messages (aggregated).
Set Options to Once per bar close if you want alerts only at bar close (recommended for daily timeframe), or Once per bar for intrabar.
Choose delivery channels: pop-up, app, email, webhook (webhook recommended for automation).
Alert messages include ticker lists (e.g. Update GTT = YES for: NSE:TCS, NSE:RELIANCE — (Group A)).
Practical examples
Use Group A for your core watchlist, Group B for a secondary watchlist; toggle groups to change the displayed list.
Keep chart on daily timeframe and enable Cross Alert Only On Bar Close for accurate closing-basis signals.
Use webhook alerts to push signals to Google Sheets, Discord/Telegram, or a trading automation system.
Performance & limits
Each symbol uses one request.security() call returning a tuple — optimized to stay below TradingView’s 40 unique-request limit.
Designed for up to 20 symbols per group (40 total), but running both groups simultaneously (40 requests) may approach limits depending on other indicators on your chart. Keep it to 20 per instance for best stability.
Works best on 1D / 4H / 1H timeframes. On very low intraday timeframes (1–5 min) you may see heavier resource usage — reduce number of symbols or plots if needed.
Known limitations
Alerts are aggregated (single alert lists all matching tickers). If you need individual per-symbol alerts you can create separate script instances or ask for per-symbol alert logic.
Only the CMP Cross Above SMA20 (closing basis) is included in this release. If you want downward crosses (CMP crosses below SMA20) or more complex rules (volume filter, RSI, etc.), I can add those.
Changelog
v6.10.2 — stable publish candidate: Group A/B, 20 symbols, robust parser, SMA20 cross alerts, optimized single-request per symbol, UI/appearance options, alert messages.
(previous dev notes kept internally)
Permissions & licensing
You may publish and redistribute this script on TradingView. If you republish code derived from this indicator, please keep author credit as Shekhar / SST Table Shekhar and note any modifications.
This script is provided as-is. Not financial advice. Use at your own risk.
Support / Contact
For feature requests, bug reports, or help configuring alerts/webhooks (Discord/GSheets/Telegram) — message me in the TradingView script comments or reply to this post.
ICT 1st Presented FVG After RTH OpenICT 1st Presented FVG After RTH Open
Overview
This indicator identifies and tracks the first Fair Value Gap (FVG) that forms after the Regular Trading Hours (RTH) open, based on Inner Circle Trader (ICT) concepts. It monitors price behavior and reaction to this initial FVG throughout the trading session.
Key Features
📊 Smart FVG Detection
• Automatically identifies the first valid FVG after RTH open (default: 9:30-10:00 AM ET)
• Filters noise using ATR-based minimum gap size validation
• Option to display all FVGs or just the first one
• Visual distinction between the first FVG and subsequent ones
⏰ Customizable Time Settings
• Adjustable RTH window (default: 9:30-10:00 AM)
• Multiple timezone support (New York, Chicago, London, Tokyo)
• Flexible tracking duration and sampling intervals
📈 Price Reaction Tracking
• Monitors price behavior relative to the first FVG over time
• Tracks whether price remains above, below, or inside the FVG zone
• Records price distance from FVG boundaries
• Displays real-time data in an easy-to-read table
• Volume tracking at each sample interval
🎨 Visual Elements
• Color-coded FVG boxes (green for bullish, red for bearish)
• Timestamp labels showing when each FVG formed
• Extendable boxes to track ongoing validity
• Optional background highlighting during RTH window
• Customizable table positions and display options
🔔 Alert System
• Visual markers on chart for easy backtesting
• Real-time programmatic alerts with detailed FVG information
• TradingView alert conditions for custom notifications
• Alerts include price range, gap size, and timestamp
Settings
Time Configuration:
• Timezone selection
• RTH start/end times
• Tracking duration (default: 120 minutes)
• Sample interval (default: 5 minutes)
FVG Validation:
• ATR length for gap size calculation
• Minimum gap size as ATR percentage
• Option to show all valid FVGs
Display Options:
• Custom colors for bullish/bearish FVGs
• Label visibility toggle
• Box extension options
• Maximum historical FVGs to display
• Info and reaction table positions
Use Cases
1. Entry Timing: Use the first FVG as a potential entry zone when price returns to fill the gap
2. Trend Confirmation: Monitor whether price respects or violates the first FVG
3. Session Analysis: Track how the first inefficiency of the session plays out over time
4. Backtesting: Visual markers allow easy historical analysis of FVG behavior
How It Works
The indicator waits for RTH to begin, then identifies the first three-candle pattern that creates a valid Fair Value Gap. Once detected, it:
1. Marks the FVG zone with a colored box
2. Begins tracking price position at regular intervals
3. Records data in a reaction table showing price behavior over time
4. Continues monitoring until the tracking duration expires or a new trading day begins
Notes
• Resets daily to track each session independently
• Works on any timeframe, though lower timeframes (1-5 min) are recommended for intraday FVG detection
• The "first presented" FVG concept emphasizes the importance of the initial inefficiency created after market open
• Historical FVGs are preserved up to the display limit for reference
This indicator is designed for traders familiar with ICT concepts and Fair Value Gap trading strategies. It combines automated detection with comprehensive tracking to help identify high-probability trading opportunities.
Colocar Ordens Fácil!This eases the process of creating limit orders on Trading View, when using the smarphone.
For that, the user inputs the given price range, the desired fibonacci entry level, and trade direction. The tools gives visual snap-to objects that can be used to lock long/short position tools, from which the option "create limit order" can be used to directly create the orders.






















