Gann Square of Nine Forecaster
- Indicators
-
Mohamed Amr Mohamed Osama Abdelwahab
Software Developer, Instructor, and Technical Team Leader with over 22 years of experience across desktop, web, and financial software development. Top Rated freelancer on Upwork with 200+ completed projects, $200K+ delivered, and a 100% job success record. Specialized in algorithmic trading systems - Version: 2.0
- Activations: 5
**Gann Square of Nine — Price & Time Forecaster**
The Square of Nine is one of W.D. Gann's most respected forecasting tools. This indicator brings it to MetaTrader 5 in a faithful, modern, fully interactive form, built directly on the method described in Patrick Mikula's "The Definitive Guide to Forecasting Using W.D. Gann's Square of Nine."
From a single anchor price, the indicator projects the support and resistance levels that fall on the Square of Nine's cardinal cross (0, 90, 180, 270 degrees) and diagonal cross (45, 135, 225, 315 degrees). It also forecasts time — the bars where future turning points may occur — and measures which angles the market is currently respecting most.
This is an analysis and forecasting tool. It never places, modifies, or closes orders. No DLLs, no internet connection. Works on any symbol and any timeframe.
---
**HOW THE SQUARE OF NINE WORKS (in short)**
Gann arranged numbers in a spiral. Moving one full rotation (360 degrees) around the spiral changes the square root of the value by 2. From any anchor price, the levels at 45-degree steps around the spiral act as natural support and resistance. The cardinal cross (the plus shape: 0/90/180/270) and the diagonal cross (the X shape: 45/135/225/315) are the most important angles. The same idea applied to time gives the famous Gann counts — 9, 25, 49, 81 bars and so on.
---
**KEY FEATURES**
- Price levels projected from an anchor, on the cardinal and diagonal crosses
- Several rings (rotations) above and below the anchor
- Time forecasting: vertical lines at Gann bar counts from a recent swing
- Angle reliability: a live measure of which angles price respects most
- Confluence levels from the previous day's high and low
- Historical levels from past sessions, faded by age
- Click the chart to set the anchor; arrow keys to rotate the overlay
- A clean "level ladder" panel with distances to each level
- Auto-scaling that works on forex, metals, indices and crypto
---
**EVERY INPUT EXPLAINED**
Base price (anchor):
- Anchor — where the whole Square of Nine is measured from. Choose D1 Open (the current day's open, auto), Recent Swing (a recent significant high or low), or Manual.
- Manual base price — used only when Anchor is set to Manual. Type the exact price you want to measure from (for example a major historical high or low).
- Swing anchor uses a LOW — when the anchor is Recent Swing, choose whether it locks to the latest swing low (on) or the latest swing high (off).
- Bars back for the swing anchor — how far back to search for that swing.
- Add confluence from prev D1 HIGH / LOW — also draws a level derived from yesterday's high and low. Where these meet a Square of Nine level, the zone is stronger.
- Click chart to set the base price — when on, click anywhere on the chart and the anchor jumps to that price. Press C to return to automatic.
Method / scale:
- Sqrt scale — controls level spacing. Leave at 0 for automatic (recommended). A larger value packs the levels closer together (good for intraday), a smaller value spreads them wider (good for swing trading). This matches Gann/Mikula's idea of "selecting the increment" to fit the instrument and timeframe.
Levels:
- Rings — how many full rotations to project above and below the anchor. More rings cover a wider price range.
- Cardinal levels (0/90/180/270) — turn the plus-shape angles on or off.
- Diagonal levels (45/135/225/315) — turn the X-shape angles on or off.
- Overlay rotation (deg) — rotate every level by a fixed number of degrees. Use this to align the Square to the pivots your market is actually respecting (see "angle reliability"). The arrow keys nudge this live.
Display:
- Draw levels within +/- this % of price — only shows levels near the current price, to keep the chart clean. Set 0 to draw all of them.
- Levels listed per side in the panel — how many levels above and below to list in the panel.
- Extend level lines to the right — extend lines to the right edge as live S/R.
- Price labels on the lines — show the price and angle on each line.
- Level line width — thickness of the lines.
Colors:
- Cardinal, Diagonal, Active/nearest, Base line, Confluence — full colour control.
Angle reliability (the Gann edge):
- Show how often price respects each angle — for each angle (0, 45, 90 ...), the tool counts how often price has touched levels on that angle recently, and shows it as a meter. Gann teaches that the angle with the best recent correlation is the best forecaster for the near future.
- Bars to scan for touches — history depth for the measure.
- Touch threshold (% of price) — how close a candle must come to count as a touch.
Historical zones:
- Show past sessions' levels (faded) — draws Square of Nine levels from previous daily sessions, fading older ones. Levels that repeat across sessions mark strong, lasting zones.
- Past D1 sessions to draw / Rings for historical levels / Fade older sessions — control how many sessions, how many rings each, and how quickly they fade.
Time forecasting:
- Forecast pivot DATES — vertical lines projected forward from a recent swing, at the Gann bar counts (9, 25, 49, 81 ...). These mark candidate turning-point dates.
- Forecast bars to project — how many counts to draw.
- Time line color — colour of those vertical lines.
Panel:
- Show panel, position, font size, background — the on-chart information panel.
---
**HOW TO USE IT IN LIVE TRADING (ideas and strategies)**
1) Daily open levels for intraday trading
Keep the anchor on D1 Open. The cardinal and diagonal levels around the day's open become your intraday support and resistance map. Look for reactions (rejections, pauses, reversals) as price reaches a level, and trade toward the next level.
2) Trade from a major swing
Set the anchor to a major historical high or low (use Manual, or click that pivot). The projected levels often line up with future reaction points. Enter on a bounce from a level in the direction of the larger trend, with a stop just beyond the level and a target at the next level up or down.
3) Use the strongest angle
Watch the angle reliability meters. If, say, the 90-degree angle is being respected most, give the 90-degree levels more weight for entries and targets, and rotate the overlay to fine-tune the alignment. This is the core Gann idea: let the market tell you which angle to trust.
4) Confluence stacking
The highest-probability zones are where several things agree: a Square of Nine level, a previous-day high or low confluence line, and a historical level from past sessions all near the same price. Favour reversals and breakouts at these stacked zones.
5) Price and time together
When a Square of Nine price level is reached at the same time as one of the forecast time lines (9, 25, 49, 81 bars from a swing), the chance of a turn is higher than price or time alone. Watch these price-time coincidences for reversals.
6) Targets and stops
Use the nearest level beyond your entry as the first target and the level after it as the second target. Place stops just beyond the level that should hold if your idea is correct. The panel's distance readout helps you size the trade.
Tip: tune the Sqrt scale and rings to the instrument and timeframe so the levels sit naturally around price. Then confirm with your own method — the Square of Nine is a map of high-probability levels and dates, not a stand-alone signal.
*Please contact me after purchase for your gift
________________ Arabic __________________________
**مربع جان التاسع — أداة التنبؤ بالسعر والزمن (Gann Square of Nine)**
مربع التسعة (Square of Nine) هو واحد من أشهر أدوات التنبؤ التي وضعها و. د. جان. هذا المؤشر يقدّمه على منصة ميتاتريدر 5 بشكل حديث وتفاعلي ومخلص للطريقة الأصلية، مبنيًا مباشرةً على المنهج الموضّح في كتاب باتريك ميكولا "الدليل القاطع للتنبؤ باستخدام مربع جان التاسع".
انطلاقًا من سعر أساس واحد، يرسم المؤشر مستويات الدعم والمقاومة التي تقع على الصليب القلبي (0، 90، 180، 270 درجة) والصليب القُطري (45، 135، 225، 315 درجة) لمربع التسعة. كما يتنبأ بالزمن — الشموع التي قد تحدث عندها نقاط انعكاس مستقبلية — ويقيس أي الزوايا يحترمها السوق أكثر في الوقت الحالي.
هذه أداة تحليل وتنبؤ فقط. لا تفتح أي صفقة ولا تعدّلها ولا تغلقها. بدون مكتبات DLL وبدون اتصال بالإنترنت. تعمل على أي رمز وأي إطار زمني.
---
**كيف يعمل مربع التسعة باختصار**
رتّب جان الأرقام في شكل حلزوني. الدوران دورة كاملة (360 درجة) حول الحلزون يغيّر الجذر التربيعي للقيمة بمقدار 2. انطلاقًا من أي سعر أساس، تعمل المستويات عند كل 45 درجة حول الحلزون كدعوم ومقاومات طبيعية. الصليب القلبي (شكل +: 0/90/180/270) والصليب القُطري (شكل X: 45/135/225/315) هما أهم الزوايا. وتطبيق الفكرة نفسها على الزمن يعطي عدّات جان الشهيرة — 9، 25، 49، 81 شمعة وهكذا.
---
**أهم المزايا**
- مستويات سعرية مُسقطة من سعر أساس، على الصليب القلبي والقُطري
- عدة حلقات (دورات) أعلى وأسفل سعر الأساس
- التنبؤ الزمني: خطوط رأسية عند عدّات جان انطلاقًا من قمة/قاع حديث
- موثوقية الزوايا: قياس حيّ لأي الزوايا يحترمها السعر أكثر
- مستويات توافق من أعلى وأدنى اليوم السابق
- مستويات تاريخية من جلسات سابقة تخفت مع تقادمها
- اضغط على الشارت لتحديد سعر الأساس؛ وأسهم لوحة المفاتيح لتدوير الشبكة
- لوحة "سلّم المستويات" نظيفة تعرض المسافة إلى كل مستوى
- مقياس تلقائي يعمل على الفوركس والمعادن والمؤشرات والعملات الرقمية
---
**شرح كل مُدخل (Input)**
سعر الأساس (Anchor):
- Anchor — النقطة التي يُقاس منها مربع التسعة بالكامل. اختر D1 Open (افتتاح اليوم الحالي تلقائيًا)، أو Recent Swing (قمة أو قاع مهم حديث)، أو Manual (يدوي).
- Manual base price — يُستخدم فقط عندما يكون Anchor = Manual. اكتب السعر الذي تريد القياس منه (مثل قمة أو قاع تاريخي مهم).
- Swing anchor uses a LOW — عند اختيار Recent Swing، حدّد هل يثبت على أحدث قاع (تشغيل) أم أحدث قمة (إيقاف).
- Bars back for the swing anchor — إلى أي مدى يبحث عن تلك القمة/القاع.
- Add confluence from prev D1 HIGH / LOW — يرسم أيضًا مستوى مشتقًا من أعلى وأدنى الأمس. حيث يلتقي هذا مع مستوى من مربع التسعة تصبح المنطقة أقوى.
- Click chart to set the base price — عند التشغيل، اضغط في أي مكان على الشارت فينتقل سعر الأساس إلى ذلك السعر. اضغط حرف C للعودة إلى الوضع التلقائي.
الطريقة / المقياس:
- Sqrt scale — يتحكم في تباعد المستويات. اتركه 0 للوضع التلقائي (موصى به). القيمة الأكبر تجعل المستويات أقرب لبعضها (مناسب للتداول داخل اليوم)، والقيمة الأصغر تباعدها (مناسب لتداول السوينغ). هذا يطابق فكرة جان/ميكولا في "اختيار المقدار" بما يناسب الأداة والإطار الزمني.
المستويات:
- Rings — عدد الدورات الكاملة المُسقطة أعلى وأسفل سعر الأساس. حلقات أكثر تغطي مدى سعري أوسع.
- Cardinal levels (0/90/180/270) — تشغيل/إيقاف زوايا الصليب القلبي.
- Diagonal levels (45/135/225/315) — تشغيل/إيقاف زوايا الصليب القُطري.
- Overlay rotation (deg) — تدوير كل المستويات بعدد ثابت من الدرجات. استخدمها لمحاذاة المربع مع النقاط التي يحترمها سوقك فعليًا (انظر "موثوقية الزوايا"). وأسهم لوحة المفاتيح تحرّكها مباشرةً.
العرض:
- Draw levels within +/- this % of price — يعرض فقط المستويات القريبة من السعر الحالي لإبقاء الشارت نظيفًا. اجعلها 0 لرسم الكل.
- Levels listed per side in the panel — عدد المستويات أعلى وأسفل التي تُعرض في اللوحة.
- Extend level lines to the right — مدّ الخطوط إلى يمين الشارت كدعم/مقاومة حيّة.
- Price labels on the lines — إظهار السعر والزاوية على كل خط.
- Level line width — سُمك الخطوط.
الألوان:
- Cardinal، Diagonal، Active/nearest، Base line، Confluence — تحكّم كامل بالألوان.
موثوقية الزوايا (ميزة جان):
- Show how often price respects each angle — لكل زاوية (0، 45، 90 ...) يحسب المؤشر كم مرة لمس السعر مستوياتها مؤخرًا ويعرضها كمقياس. يعلّم جان أن الزاوية ذات أفضل ارتباط حديث هي الأفضل للتنبؤ بالمستقبل القريب.
- Bars to scan for touches — عمق التاريخ المستخدم في القياس.
- Touch threshold (% of price) — مدى قرب الشمعة لكي تُحتسب لمسة.
المناطق التاريخية:
- Show past sessions' levels (faded) — يرسم مستويات مربع التسعة من جلسات يومية سابقة مع تخفيت الأقدم. المستويات التي تتكرر عبر الجلسات تشير إلى مناطق قوية ودائمة.
- عدد الجلسات / حلقات لكل جلسة / سرعة التخفيت — للتحكم في عددها وكثافتها.
التنبؤ الزمني:
- Forecast pivot DATES — خطوط رأسية مُسقطة للأمام من قمة/قاع حديث عند عدّات جان (9، 25، 49، 81 ...). تحدّد تواريخ انعكاس محتملة.
- Forecast bars to project — كم عدّة تُرسم.
- Time line color — لون تلك الخطوط الرأسية.
اللوحة:
- إظهار اللوحة، الموضع، حجم الخط، الخلفية — لوحة المعلومات على الشارت.
---
**كيف تستخدمه في التداول الحيّ (أفكار واستراتيجيات)**
1) مستويات افتتاح اليوم للتداول داخل اليوم
أبقِ سعر الأساس على D1 Open. تصبح زوايا الصليب القلبي والقُطري حول افتتاح اليوم خريطة الدعوم والمقاومات داخل اليوم. راقب ردّ فعل السعر (رفض، توقف، انعكاس) عند بلوغه مستوى، وتاجر باتجاه المستوى التالي.
2) التداول من قمة/قاع رئيسي
اضبط سعر الأساس على قمة أو قاع تاريخي مهم (يدويًا أو بالضغط على تلك النقطة). كثيرًا ما تتوافق المستويات المُسقطة مع نقاط ردّ فعل مستقبلية. ادخل عند ارتداد من مستوى باتجاه الاتجاه الأكبر، مع وقف خسارة خلف المستوى وهدف عند المستوى التالي.
3) استخدم أقوى زاوية
راقب مقاييس موثوقية الزوايا. إذا كانت زاوية 90 درجة مثلًا هي الأكثر احترامًا، فأعطِ مستوياتها وزنًا أكبر في الدخول والأهداف، ودوّر الشبكة لضبط المحاذاة. هذه هي فكرة جان الجوهرية: دع السوق يخبرك بأي زاوية تثق.
4) تكديس التوافق
أعلى المناطق احتمالًا هي حيث تجتمع عدة عوامل: مستوى من مربع التسعة، وخط توافق من أعلى/أدنى الأمس، ومستوى تاريخي من جلسات سابقة، كلها قرب السعر نفسه. فضّل الانعكاسات والاختراقات عند هذه المناطق المكدّسة.
5) السعر والزمن معًا
عندما يُبلَغ مستوى سعري من مربع التسعة في نفس وقت أحد خطوط الزمن المتوقعة (9، 25، 49، 81 شمعة من قمة/قاع)، يكون احتمال الانعكاس أعلى من السعر أو الزمن منفردًا. راقب هذه التوافقات بين السعر والزمن للانعكاسات.
6) الأهداف ووقف الخسارة
استخدم أقرب مستوى بعد دخولك كهدف أول، والمستوى الذي يليه كهدف ثانٍ. ضع الوقف خلف المستوى الذي يُفترض أن يصمد إن كانت فكرتك صحيحة. ويساعدك عرض المسافة في اللوحة على تحديد حجم الصفقة.
نصيحة: اضبط Sqrt scale وعدد الحلقات بما يناسب الأداة والإطار الزمني لتجلس المستويات طبيعيًا حول السعر. ثم أكّد بطريقتك الخاصة — فمربع التسعة خريطة لمستويات وتواريخ عالية الاحتمال، وليس إشارة مستقلة بذاتها.
