Earth Rotation 4m: Sq9 Diamond

This indicator is mathematically locked to the 4-minute timeframe. Why? The Earth rotates 360 degrees every 24 hours (1,440 minutes). 1440 minutes / 360 degrees = 4 minutes per degree. On a 4-minute chart, 1 Bar = 1 Degree of Earth's rotation. This is the fundamental constant that aligns the time grid with the Square of 9 price levels. If you use this on any other timeframe, the script will disable itself to prevent false data.
Concept & Logic
The Earth Rotation 4m is not a standard lagging indicator (like RSI or MACD). It is a leading market geometry engine based on W.D. Gann’s "Square of Nine" principles. It assumes that price and time are interchangeable and move in synchronized cycles.
The Anchor (The "Bang"): Everything starts from a major pivot (High or Low). You must set the Anchor Time manually to this pivot. The script then projects a grid forward in time.
Time Cycles (Vertical Lines): Since 1 Bar = 1 Degree, the script projects vertical lines at key harmonic intervals: 45°, 90°, 144°, 180°, and 360°. These are "Time Windows" where volatility is expected.
Price Levels (Horizontal Lines): The script takes the Anchor Price, converts it into the "Square of Nine" root structure, rotates it by specific degrees, and converts it back to price. This creates static support/resistance levels derived from the seed price itself.
The "Blue Diamond" (The Signal): When a Time Cycle (Vertical) intersects with a Price Level (Horizontal) at the exact same moment price is there, a Blue Diamond appears. This represents "Squaring Time and Price"—a geometric point of maximum balance where a reversal or acceleration often occurs.
Feature List
1. Smart Grid Engine
Auto-Cleaning: Automatically deletes old lines when you change the Anchor Time—no more messy charts.
Harmonic Time Lines: Color-coded verticals (Gold for 90° cardinals, Cyan for 45° ordinals).
Square of 9 Levels: dotted horizontal lines representing the "Roadmap" for price.
2. The Gann Fan
Optional geometric fans (1x1, 1x2, 2x1, etc.) anchored to your start time.
Acts as a visual slope reference for the strength of the trend.
3. "Diamond" Detection Signal
A visual Blue Diamond prints above the bar when price hits a Square of 9 level exactly on a Time Cycle.
Includes a tolerance input (Time/Price Tolerance) to account for minor market noise.
4. Visual Trade Model (Forward Tester)
Note: This is a theoretical visualization tool, not a backtester.
Logic: It visualizes a Mean Reversion setup.
If Price is > Anchor at a Time Cycle → Visualizes a Short.
If Price is < Anchor at a Time Cycle → Visualizes a Long.
Auto-Alignment: Draws Profit (Green) and Loss (Red) boxes directly on the chart, snapping to the trade duration.
Stats Dashboard: A sleek Black/Gold table tracking the Win Rate and Net R (Risk/Reward) of these theoretical setups for the current session.
5. Professional Alerts
Grid Intersection: Triggers when a Diamond prints.
Trade Entry: Triggers when the visual model detects an entry criteria.
How to Use (Step-by-Step Guide)
Set the Chart: Open any asset (Crypto, Forex, Stocks) and set the timeframe to 4 Minutes.
Find the Pivot: Look for a major High or Low earlier in the day (or yesterday).
Set the Anchor: Go to the Indicator Settings -> Anchor Time. Enter the exact time of that pivot bar.
Observe the Grid: The script will project the future roadmap.
Watch for price approaching a Horizontal Level as a Vertical Time Line is coming up.
The Diamond Signal: If price hits that level exactly on the time line, a Blue Diamond appears. This is your area of interest.
Visual Confirmation: Use the Trade Logic boxes to see how price reacted to similar setups earlier in the session.
Settings Guide
Anchor Time: The most critical input. Must be precise.
Cycle Limit: How far forward to draw the grid (in 360-degree cycles).
ATR Multiplier: Adjusts the size of the Stop/Limit boxes for the visual model. (BTC typically needs 4.0-5.0; Alts need 2.5-3.5).
Fan Scale: Adjusts the slope of the Gann Fan.
Disclaimer
This script is a market geometry analysis tool. The "Trade" module and Dashboard are for educational visualization purposes only and do not represent a financial strategy, backtest, or guarantee of future results. Trading involves significant risk. Always use your own risk management.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ PyraTime โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
Access our proprietary Cardical Indicator Suite: whop.com/pyratime
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ PyraTime โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
Access our proprietary Cardical Indicator Suite: whop.com/pyratime