4-Hour Range Scalping [v6.3]User Guide: 4-Hour Range Scalping Strategy
Hello! Here is the guide for the Pine Script strategy. Please read it carefully to get the best results.
📈 This script automates the "4-Hour Range Scalping Strategy" from the video.
The main idea is that the first four hours of a major trading day (like New York) set up a "trap zone." The strategy waits for the price to break out of this zone and then fail, giving us a signal that the breakout was false and the price is likely to reverse.
Here’s the simple logic:
Define the Range: It precisely calculates the highest high and lowest low during the first four hours of the selected trading session (e.g., 00:00 to 04:00 New York Time).
Wait for a Breakout: It then monitors the 5-minute chart for a price breakout where a candle fully closes outside of this established range.
Identify the Reversal: The trade trigger occurs when the price fails to continue its breakout and a subsequent 5-minute candle closes back inside the range. This signals a potential reversal or "failed breakout."
Execute the Trade:
]A Short (Sell) trade is triggered after a failed breakout above the range high.
A Long (Buy) trade is triggered after a failed breakout below the range low.
Manage the Risk: The Stop Loss is automatically placed at the peak (for shorts) or trough (for longs) of the breakout move, and the Take Profit is set to a default 2:1 Risk/Reward Ratio.
How to Use the Script (Step-by-Step) ⚙️
Follow these instructions to get it running perfectly.
1. Set Your Chart Timeframe This is the most important step. The strategy is designed to run on a 5-minute (5m) chart. Open your TradingView chart and make sure the timeframe is set to "5m".
2. Add the Script to Your Chart Open the Pine Editor tab at the bottom of TradingView, paste the entire script, and click the "Add to chart" button.
3. Configure the Settings On your chart, find the strategy's name (e.g., "4-Hour Range Scalping ") and click the gear icon ⚙️ to open its settings.
Trading Session: Choose the session for the range. New York is the default and the one from the video.
Risk/Reward Ratio: The default is 2.0, meaning your potential profit is twice your potential loss. You can adjust this to test other targets.
Backtesting Period: To see how the strategy performed on all historical data, go to the "Strategy Tester" panel, click its own gear icon ⚙️, and uncheck the boxes for "Start Date" and "End Date."
4. Understand the Visuals on Your Chart
Blue Background Area: This is the 4-hour calculation window. The script is identifying the day's high and low during this time. No trades will ever happen here.
Red Line (Range High): The highest price of the 4-hour window. This is the upper boundary of the "trap zone."
Green Line (Range Low): The lowest price of the 4-hour window. This is the lower boundary.
Green Triangle (▲): Shows where a Long (Buy) trade was entered.
Red Triangle (▼): Shows where a Short (Sell) trade was entered.
A Very Important Note on Timezones 🕒
This is critical for you in the Philippines (PHT).
The script is based on the New York session, which is 12 hours behind you. Your TradingView chart will still show your local time, but the script works on NY time in the background.
The New York "day" begins at 12:00 PM (Noon) your time.
The script's blue calculation window will be from 12:00 PM to 4:00 PM your local time.
The red and green range lines will appear on your chart only after 4:00 PM your time.
So, if you look at your chart in the morning or early afternoon, you will not see today's range yet. This is normal! The script is just waiting for the New York session to start.
How to Set Up Trade Alerts 🔔
You can have TradingView send you a notification whenever the script enters a trade.
Click the "Alert" button (looks like a clock) in the right-hand toolbar of TradingView.
In the "Condition" dropdown, select the name of the script (e.g., "4-Hour Range Scalping...").
You will then see two options: "Long Signal" and "Short Signal".
Select one (e.g., "Long Signal") and configure how you want to be notified (e.g., "Notify on app").
Click "Create". Repeat the process to create an alert for the other signal.
⚠️ Important Disclosure
For Educational and Research Purposes Only.
This script and all accompanying information are provided for educational and research purposes only. The strategy demonstrated is a technical concept and should not be misconstrued as financial, investment, legal, or tax advice.
Trading financial markets involves substantial risk and is not suitable for every investor. There is a possibility that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.
Past performance is not indicative of future results. The backtesting results shown by this script are historical and do not guarantee future performance. Market conditions are constantly changing.
By using this script, you acknowledge that you are solely responsible for any and all trading decisions you make. You should conduct your own thorough research and, if necessary, seek advice from an independent financial advisor before making any investment decisions. The creators of this script assume no liability for any of your trading results.
Educational
FVG and OB🧠 Concept Behind the “FVG and OB” Indicator
This indicator merges two core ICT (Inner Circle Trader) concepts — Fair Value Gaps (FVGs) and Order Blocks (OBs) — into one clean, dynamic visualization tool.
It is designed for professional price-action traders who want to track institutional imbalances and smart money footprints directly on the chart.
🟩 FAIR VALUE GAP (FVG)
An FVG represents an imbalance in price caused by aggressive buying or selling where the market fails to offer two-way liquidity.
It’s typically created when a strong candle leaves a visible “gap” between the previous candle’s high and the next candle’s low (for bullish FVG), or vice versa (for bearish FVG).
In this indicator:
🟢 Bullish FVGs are drawn when low > high
🔴 Bearish FVGs are drawn when high < low
Each gap box dynamically extends to the right until it is mitigated (partially or fully filled).
You can choose between two mitigation modes:
Boundary Touch (default): The FVG is considered mitigated once price touches the gap boundary.
Full Fill: The FVG remains active until the entire gap range is filled.
This gives you real-time awareness of whether liquidity has been rebalanced — a key ICT concept in identifying market turning points.
🟥 ORDER BLOCK (OB)
An Order Block represents the last opposing candle before a strong impulsive move.
It is where institutional traders likely executed large block orders, creating supply or demand zones that price often revisits.
In this script, an OB is automatically drawn:
🟥 Bearish OBs form after a strong down move (usually following a bearish FVG).
🟩 Bullish OBs form after a strong up move (usually following a bullish FVG).
Key features:
The indicator can detect OBs in two ways:
Only FVG’s First Candle: A stricter mode aligning OB formation directly with FVG events.
Classic (Last Opposite Color): A more traditional ICT-style detection that finds the last candle of the opposite color within a defined lookback range.
OBs auto-expand with the next candle’s wick, so any extra high/low beyond the original OB is included by default.
Each OB remains extended until mitigated — when price revisits and closes the imbalance.
⚙️ CONTROL & CUSTOMIZATION
You can control the entire behavior and visualization through the settings panel:
Display Mode: Show only FVGs, only OBs, or both simultaneously.
Mitigation Mode: Choose how strict the FVG closure logic should be.
Body-Only Option: Restrict OB calculation to candle bodies instead of wicks for cleaner structure.
Individual Color Settings: Customize border and fill colors for each block type.
Lookback Depth: Define how far back the system searches for valid OB structures.
The result is a clean, layered representation of institutional footprints — with automatic cleanup logic that prevents chart clutter and keeps only active zones visible.
📊 PRACTICAL APPLICATION
Use this indicator to:
Identify imbalances left by aggressive moves (potential retracement targets).
Confirm confluences between FVGs and OBs — the overlap areas often mark powerful reaction zones.
Track mitigation progress as price revisits those zones.
Refine entry timing when price reacts to unmitigated OBs or fills the last untested FVG.
🧩 TECHNICAL DESIGN
Built in Pine Script v5 with fully modular code architecture.
FVG and OB modules can be toggled or used independently.
Uses arrays for efficient management of multiple boxes.
Auto-updates in real-time and mitigates per-bar to minimize lag.
Designed for multi-timeframe backtesting compatibility.
💡 Summary
This tool visually bridges two of the most powerful Smart Money Concepts —
FVG = imbalance zones and OB = institutional origin blocks.
Together, they help traders map out liquidity flows, identify premium/discount zones, and anticipate where price is likely to react next.
🧑💻 Credits
Based on ICT & Smart Money Concepts, rewritten in modular PineScript with precision mitigation logic.
# For educational and analytical purposes only.
Turtle soupHi all!
This indicator will show you turtle soups. The logic is that pivots detected from a higher timeframe, with the pivot lengths of left and right in the settings, will be up for 'grabs' by price that spents more than one candle above/below the pivot.
If only one candle is beyond the pivot it's a liquidity sweep or grab. Liquidity sweeps can be discovered through my script 'Market structure' (), but this script will discover turtle soup entries with false breakouts that takes liquidity.
The turtle soup can have a confirmation in the terms of a change of character (CHoCH). The turtle soup strategy usually comes with some sort of confirmation, in this case a CHoCH, but it can also be a market structure shift (MSS) or a change in state of delivery (CISD).
Turtle soups (pivots that have been 'taken') within a turtle soup will also be visible (but not have a turtle).
Alerts are available for when a turtle soup setup occurs and you can set the alert frequency of your liking (to get early signals with a script that might repaint or wait for a closed candle).
I hope that this description makes sense, tell me otherwise. Also tell me if you have any improvements or feature requests.
Best of trading luck!
The chart in the publication contains a 4 hour chart with a daily timeframe and confirmations with CHoCH.
Conviction Ratio | viResearchConviction Ratio | viResearch
Conceptual Foundation and Innovation
The Conviction Ratio by viResearch is a trend strength indicator designed to measure the conviction behind market movements by analyzing price returns over a defined period. It reflects how consistently and powerfully an asset has trended within that time window. The higher the ratio, the stronger and more confident the trend.
This approach provides a clear and intuitive way to gauge whether recent price action is supported by genuine momentum or merely short-term noise. By quantifying return intensity, the indicator helps traders identify assets that are trending with conviction versus those moving without sustained direction.
Technical Composition and Calculation
The Conviction Ratio evaluates an asset’s performance by comparing its current price level to past values over a customizable lookback period. It measures how much the market has advanced or declined, translating that movement into a normalized ratio that reflects overall trend conviction.
A rising ratio indicates strong and accelerating trend strength, while a falling or negative ratio suggests fading momentum or potential reversal. This dynamic view helps traders visually assess whether a trend is strengthening, weakening, or entering a transition phase.
Features and User Inputs
To accommodate different trading styles and timeframes, the indicator offers several adjustable settings:
Period (Days): Defines how far back the indicator measures return performance, allowing users to analyze short-term bursts or longer-term trends.
Start Date: Sets the beginning of the analysis window, useful for backtesting or focusing on a specific time period.
The Conviction Ratio line changes color dynamically to reflect market conviction:
Aqua: Positive ratio, indicating strong upward trend strength.
Pink: Negative ratio, signaling weak or declining market conviction.
Practical Applications
The Conviction Ratio can be applied across all asset classes — equities, cryptocurrencies, forex, and commodities — to identify where the strongest trends are forming. It’s particularly useful for:
Measuring Trend Strength: Quickly determine how strong or sustained a trend is within the chosen timeframe.
Identifying Momentum Shifts: Spot when market conviction is increasing or fading, signaling potential trend continuation or reversal.
Comparative Analysis: Compare multiple assets to find which ones are trending with greater conviction and consistency.
Advantages and Strategic Value
The Conviction Ratio offers a simple yet powerful way to quantify trend quality. Instead of relying on price direction alone, it evaluates the strength and persistence behind that movement. This makes it an ideal tool for trend followers, momentum traders, and portfolio managers seeking to align with assets showing genuine directional confidence.
Its normalized structure ensures consistency across different volatility environments, making it suitable for both discretionary and systematic trading strategies.
Visual Cues and Interpretation
The indicator plots a smooth, color-coded ratio line centered around zero, with key reference levels at +1.0 and –1.0.
Ratios above +1.0 indicate strong, confident uptrends.
Ratios below +1.0 suggest weakening or unstable market conditions.
Ratios below 0 represent unprofitable or negative-return periods.
Sharp declines in the ratio, even from high positive levels, can serve as early warning signals of weakening momentum or potential trend reversal.
By tracking both the level and the rate of change of the ratio, traders can detect when market conviction starts to fade — often before price itself shows clear reversal signs.
Summary and Usage Tips
The Conviction Ratio | viResearch provides traders with a clean, data-driven way to interpret market strength. By focusing on return-based trend conviction, it highlights where the market is moving with genuine confidence and warns when conviction begins to erode.
Use it to confirm breakout strength, identify fading rallies, or monitor early signs of trend exhaustion. The higher the ratio, the stronger the conviction — but when it starts falling sharply, take note. It might be your first signal that the trend is losing strength.
Note: Historical results are for reference only and do not guarantee future performance.
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文字までしか貼り付けできません。
楽天証券の出力フォーマットを想定しているため、他社形式を使う場合は列構成を揃える必要があります。
また、楽天証券の出力フォーマットが変更された場合は、正しく表示出来なります。
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!






















