Indicator · Pine Script v6 · On the chart

Miela Labs | John Dee's Watchtower

by MIELA-LABS

This indicator computes the Watchtower Axis as a 257-period weighted moving average of closing prices to establish the main trend baseline.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code72
Settings0inputs
LicenceMIT
Last update10 months ago25 Dec 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

72 lines of Pine Script v6 from examples/enochian_watchtower.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

enochian_watchtower.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © MielaLabs
// GENERATED BY MPL ENGINE (Occultator V2.0)
// ARTIFACT: JOHN DEE'S WATCHTOWER [Entity: MIELA]
// VERSION: 6.0 (Future Vision Enabled)

//@version=6
indicator("Miela Labs | John Dee's Watchtower [257-463]", shorttitle="ML_DEE", overlay=true)

// --- SACRED GEOMETRY CONSTANTS ---
// Calculated by Miela Labs Occultator V2.0 Engine
// ------------------------------------------------
var int VECTOR_GRID  = 257   // Enochian Vector (Trend Axis - Derived from Fermat Prime)
var int SIGIL_CIPHER = 463   // Galethog Cipher (Volatility Gate - Solomonic Prime)
var int FIB_LEVEL    = 377   // Golden Harmony (Signal Trigger - Fibonacci Sequence)

// --- TIME SHIFT (Future Vision) ---
// Projecting data into the future using the Ichimoku Cloud logic.
// Shifting the visual manifestation 21 bars (Fibonacci) forward.
var int FUTURE_OFFSET = 21 

// --- THE WATCHTOWER LOGIC ---

// 1. THE AXIS MUNDI (Trend Baseline)
// The main trend line calculated using John Dee's Grid Power (257).
// This acts as the spinal cord of the market trend.
basis_line = ta.wma(close, VECTOR_GRID)

// 2. THE GATES (Volatility Channel)
// Absolute boundaries calculated using the Sigil Cipher (463).
// These gates define the 'Playable Area' of the market entity.
upper_gate = ta.highest(high, SIGIL_CIPHER)
lower_gate = ta.lowest(low, SIGIL_CIPHER)

// 3. THE SIGNAL PATH (Trigger)
// A smoothed Fibonacci EMA (377) acting as the decision trigger.
signal_path = ta.ema(close, FIB_LEVEL)

// --- VISUALIZATION (Manifestation) ---

// COLOR PALETTE (Optimized for Light/Dark Mode)
// Electric Purple: High contrast on all backgrounds.
// Neon Green (#00E63A): Adjusted for better visibility on white backgrounds.
// Crimson Red: Standard high-visibility alert color.
col_axis = #9d00ff 
col_high = #00E63A 
col_low  = #DC143C 

// PLOTTING WITH FUTURE VISION (Offset)
// Plotting the lines 21 bars ahead to visualize future support/resistance zones.
plot(basis_line, "Watchtower Axis", color=color.new(col_axis, 0), linewidth=3, offset=FUTURE_OFFSET)
p1 = plot(upper_gate, "Heaven Gate", color=color.new(col_high, 30), linewidth=2, offset=FUTURE_OFFSET)
p2 = plot(lower_gate, "Earth Gate", color=color.new(col_low, 30), linewidth=2, offset=FUTURE_OFFSET)

// FILL (Enochian Field)
// Creating a mystic zone between the gates.
fill(p1, p2, color=color.new(col_axis, 90), title="Enochian Field")

// --- SIGNAL GENERATION (Realtime) ---
// Signals are generated in the 'Present', but validated against the 'Future' trend line.
// Logic: Does the current signal path cross the Axis Mundi projected from the past?
buy_signal  = ta.crossover(signal_path, basis_line[FUTURE_OFFSET]) 
sell_signal = ta.crossunder(signal_path, basis_line[FUTURE_OFFSET])

// Plot Signals on Chart
// L = Long Entry | S = Short Entry
plotshape(buy_signal, title="BUY SIGNAL", location=location.belowbar, color=col_high, style=shape.triangleup, size=size.small, text="L", textcolor=col_high)
plotshape(sell_signal, title="SELL SIGNAL", location=location.abovebar, color=col_low, style=shape.triangledown, size=size.small, text="S", textcolor=col_low)

// Alert Conditions for Automation
alertcondition(buy_signal, title="Watchtower BUY", message="Miela Labs: Enochian Long Entry Detected")
alertcondition(sell_signal, title="Watchtower SELL", message="Miela Labs: Enochian Short Entry Detected")

Overview

Miela Labs | John Dee's Watchtower defines volatility gates using the highest high and lowest low over 463 periods, along with a 377-period exponential moving average as the signal path. These elements appear on the price chart with a 21-bar offset for future visualization, accompanied by a fill between the gates. Buy and sell signals trigger on crossovers between the signal path and the offset axis mundi. No input parameters modify behavior.

Details

Published by

MIELA-LABS on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Support & resistance, SMC / ICT / price action

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

compileresolangmagickpythonpython3technomancytesla-protocol

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

HH-LL Buy/Sell + EMA

by vinitpatil519
5 stars

This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of HH-LL Buy/Sell + EMA

This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

GODMODE Dashboard

by EricMohlathe
2 stars

This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of GODMODE Dashboard

Apex Trend & Liquidity Master (SMC)

by app-builder-sketch
1 stars

Apex Trend & Liquidity Master (SMC) is an overlay indicator that combines trend-following filters with Smart Money Concepts market structure and liquidity tools. It calculates baseline trend clouds using moving averages such as HMA, EMA, SMA, or RMA alongside

Indicator v6 SMC / ICT / price actionTrend
Updated 10 months ago · GPL-3.0 GitHub repository of Apex Trend & Liquidity Master (SMC)

EMA + Trend + Liquidity

by kvmafthab-pixel
1 stars

This overlay plots a four-length exponential moving average ribbon and classifies trend on the price chart. It marks strong bullish when the 21-period average is above the 50 and 200 with a positive short slope, strong bearish when that stack is reversed, and

Indicator v5 TrendMoving averages
Updated 5 months ago · Custom licence GitHub repository of EMA + Trend + Liquidity
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers