OPEN-SOURCE SCRIPT
ATK/DEF MOON Cycle

# ATK/DEF MOON Cycle
ATK/DEF MOON Cycle is a market observation framework designed to examine price behavior through a different analytical structure from conventional technical analysis.
Instead of reducing market behavior to a single trend, indicator, or directional classification, this framework observes several measuble properties of the market simuaneously, including **price position, range depth, movement velocity, volatility, activity, structural distance, price expansion and contraction, and session conditions**.
The framework uses a physics-inspired conceual vocabary to organize these observations. Terms such as **Moon Phase, Water Depth, Resonance, Rotation, Black Hole, Satellite, Velocity and Burst** are names for calculated market conditions within the indicator. They are conceptual analytical labels and do not repreent literal astromical forces, gravitional effects, or claims that physical objects control fin markets.
The objective is to provide another way of ohow market conditions develop and intect.
## 🌙 MO Moon Phase — Cyclical Price Position
The Moon Phase module divies the current price position within a confurable obsertion range into eight stages:
* 🌑 New Moon
* 🌒 Waxing Crescent
* 🌓 First Quarter
* 🌔 Waxing Gibbous
* 🌕 Full Moon
* 🌖 Waning Gibbous
* 🌗 Last Quarter
* 🌘 Waning Crescent
The calcation uses the highest and lowest prices within the selected cy length.
The current closing price is noalized between these two bdaries and expreed as a percentage
This creates a visual reprention of where price is currently posioned inside its measured range.
The eight phas theefore describe **progressive positnal changes inside the market range**, rather than reprenting an actual astrmical moon cycle.
The default observation length is 28 bars and can be adjued through the indicator settings.
## 🌊 MO Test Depth — Range Depth
Test Depth measures how deeply the current price is positioned within the observed price range.
The calcation compares the current close with the cycle high and cycle low and converts the result into a normalied percentage.
The indicator divides this position into several zones:
* 🔵 Shallows
* 🟢 Shallow Water
* 🟡 Mid Water
* 🔴 Deep Water
This proides a diffent perective from siply describg price as bullish or bearish.
The same directional movement can have very different structural meanings depeding on wther price is located near the lower portion, middle portion, or upper portion of its observed range.
Test Depth is therefore primarily a **positional measurement**.
## 🔄 MO Resonance Rotation — Movement Velocity
Resonance Rotation measures the magtude of recent pric displacement relative to ATR.
The indicator calcates price change over several bas and compares that movement with the current ATR environment.
The result is normalized into a scale and classified into:
* Lo Speed
* M Speed
* Hg Speed
This allows the framework to distinguish between relatively small price movement and movement that is large comred with the current volatity environment.
The rm “Rotation” is a coptual descrtion of changing market movement. It does not iply literal physical rotation.
## 🌀 MO Black Hole Trap — Compression and Expansion
Black Hole Trap examines the relationship between **candle range and relative volume**.
The cunt candle range is comred with the brder cycle range, while current volume is comped with its moving average.
Several conditions can therefre be observed:
* relatiely compresed price rane with reced actity
* comessed range with very low relive activity
* expaded range with eleted activity
* more orary range and activity conditions
These conditions are converted into a normaled Black Hole Score
The resulting classifications are:
* No Tra
* Weak Tra
* Mid Tr
* Strong Tr
The purpose of this module is to describe unul combitions of **range compression, range expansion and market activity**.
“Black Hole” is a conceptual name for this calculd condition. It does not reprent an acal phcal black hole, gravitanal fild, or phycal force acng on price.
## ⚡ MO Price Action Resonance — Condition Alignment
Price Action Resonance examines several market characstics together.
The calculation considers:
* current price relative to the cycle high
* current price relative to the cycle low
* price relationship with the per
* relative volume
Each condition contrutes to a combined resonance score.
The score is classified into:
* No Reonace
* Weak Resnance
* Mid Resonace
* Strong Renance
This component is desned to show when seral difrent market obseations are ocuing together.
Raer than trting one measurent as the comlete descption of market behavior, the module presves several dimions and combes them into a single descrtive state.
## ⚡ MO Smooth Velocity — Smoothed Directional Movement
Smooth Velocity measures the rate of change of an EMA-smoothed price series.
The price is first smoothed with an EMA, after which the change in the smoothed series is measured over several bars and normazed relative to the smoothed price.
The resulting state is classified as:
* 🚀 Fast Up
* ⬆️ Slow Up
* ➡️ Sideways
* ⬇️ Slow Down
* 📉 Fast Down
This provides information about both **direction and movement rate**.
The purpose is not simply to ideify whether price is above or below a moving average, but to obrve how the smoothed price itelf is changing.
## 💥 MO Price Burst — Candle Displacement and Activity
Price Burst examines the relationship between candle body movement, total candle range and relative volume.
The open-to-close movement is normaled agaist the candle's high-to-low range.
The resulting directional movement is then combined with the current volume ratio.
This produces a Burst Strength measurement that is classified into:
* 💤 No Burst
* 💥 Weak Burst
* 💥 Mid Burst
* 💥 Strong Burst
This module descibes periods where candle displacement becomes more pronnced relative to the candle's total range and surrnding activity.
It provides another way of observing changes in the intesity of price movement.
## 🌍 MO Session Disruption Radar — Session Volatility
Session Radar divides the d into three broad observation periods:
* 🌏 Asia
* 🌍 Europe
* 🌎 America
The current ATR is compared with a session-specific volatility reference.
This produces a normalized session activity value and corsponding state.
The module therefore examines whether current volatility is relatively subdd or eleted within the defied session environment.
It is designed as a **session cont measurement**, allowing volatity conditions to be observed alonside the other componts of the framework.
## 🛰️ MO Moon Satellite — Secondary Price Position
The Satellite module introdes a secondary observation range derived from the main cycle length.
The current price is measured between the sateite high and salite low and normaled
The resulting states are:
* Very Low Sateite
* Low Sateite
* Balance Sateite
* Mid Sateite
* High Sateite
This creates a second positnal layer.
The main Moon Phase describes the broer range posion, while the Satelte measument provides another view of where price is locatd inside a smller obseation range.
“Satellite” is a conceptual naming system for this secondary range relationship.
## ⛰️ MO Structure Distance — Structural Location
Structure Distance evaates the current price against an expded structural range.
The indicator idtifies the highest and lowest prices over a larger obsvation window and calates the distance from the current close to both boundies.
The resulting conditions include:
* ⛰️ Near Re
* 🏔️ Near Sort
* 📈 Near Hh
* 📉 Near Lw
* 〰️ Mid Zo
This allows the current market locaon to be descbed in relation to its brder obseed exemes.
The measurement is based on distance rather than a manally drn level.
# 📍 Swing Point Context
The indicator also uses confirmed pivot-based swing highs and swing lows.
When a swing point is confirmed, its label can disay several pieces of conte information simaneously:
* swing price
* current MO Phase
* Satellite position
* structural location
* structural distance
This connects individual swing points with the broader market state being observed by the framework.
The pivot parameters can be adjusted through the Left Bars and Right Bars settings.
# 🧭 A Different Way to Observe Market Direction
The central concept of ATK/DEF MOON Cycle is that market direction does not have to be repreted by one conveional trend calcuion.
The framework separates several different questions:
**Where is price?**
MO Moon Phase, Test Depth and Satellite Position describe price location within different observation ranges.
**How fast is price moving?**
Resonance Rotation and Smooth Velocity describe the rate of price movement.
**How large is the current movement?**
ATR, candle range and Price Burst provide volatility and displacement information.
**How active is the market?**
Relative volume contributes information about the current activity environment.
**Where is price within the broader structure?**
Structure Distance describes the relationship between current price and observed structural extremes.
**Are several conditions occurring together?**
Price Action Resonance combines multiple observations into a common descriptive score.
This separation is important because market position and market movement are not necearily the same thing.
Price can be positioned near an extreme while movement remains weak.
Price can also move rapidly while remaining inside the middle portion of a larger structure.
A compressed range can occur with low activity, while an expanded range can occur with elevated activity.
ATK/DEF MOON Cycle keeps these characteristics visible instead of forcing them into a single conventional trend definition.
# 🧠 Conceptual Architecture
The indicator uses a phycs-inspired voculary as an alrnative organizational language for market obervation.
The terology can be understood as follows:
**Moon Phase**
→ progressive position inside a measured price cycle.
**Water Depth**
→ depth of current price inside the observed range.
**Rotation**
→ normalized magnitude of recent price movement.
**Resonance**
→ simultaneous presence of several measurable market conditions.
**Black Hole**
→ unusual range and activity conditions.
**Velocity**
→ rate of change of price movement.
**Burst**
→ concentrated candle displacement combined with activity.
**Satellite**
→ position inside a secondary observation range.
**Structure Distance**
→ distance between current price and observed structural extremes.
These terms form one consistent analytical language while the underlng calculations remain based on chart data.
The indicator transrms these values into normazed measurements and desiptive states.
The percentages displayed by the indicator repsent **normazed analytical values**. They are not probality estates and should not be intereted as guateed forecasts.
# 📊 Dashboard Design
The MOON Cycle dashboard presents several indepdent obseations in one compact structure.
The dashboard includes:
* Test Depth
* Resonance Rotation
* Black Hole Trap
* Price Action Resonance
* Smooth Velocity
* Price Burst
* Session Radar
Each row reprents a different charactertic of the current market environment.
The purpose of the dashboard is to make the relationship between different market properties eaier to observe without reding the ente chart to a single numeral value.
# 🔬 Analytical Philosophy
ATK/DEF MOON Cycle is based on a simple principle:
**Observe the market from multiple dimensns instead of descring it through only one contional concept.**
Price is treated not only as a seqnce of candles, but as a changing system of:
* position
* movement
* velocity
* range
* activity
* expansion
* contraction
* structural distance
* cyclical progression
* session environment
The physics-inspired terminology provides a separate conceptual language for organizing these observations.
It is not preseed as a claim that finl markets are goverd by lital astroal or phycal mechanms.
The undeying measements remain derived from market data available on the chart.
# ⚠️ Important Information
ATK/DEF MOON Cycle is an analytical and visualization framework for stu market behavior.
The ter used by the indicator is concal. References to Moon, Satellite, Black Hole, Resonance, Rotation, Water Depth and similar terms describe calcul market conditions and are not claims about leral physical forces affting fin mars.
The indicator does not provide fin advice Its purpose is to provide an altetive framework for obsing and analyzing the changing chararistics of market da.
ATK/DEF MOON Cycle is a market observation framework designed to examine price behavior through a different analytical structure from conventional technical analysis.
Instead of reducing market behavior to a single trend, indicator, or directional classification, this framework observes several measuble properties of the market simuaneously, including **price position, range depth, movement velocity, volatility, activity, structural distance, price expansion and contraction, and session conditions**.
The framework uses a physics-inspired conceual vocabary to organize these observations. Terms such as **Moon Phase, Water Depth, Resonance, Rotation, Black Hole, Satellite, Velocity and Burst** are names for calculated market conditions within the indicator. They are conceptual analytical labels and do not repreent literal astromical forces, gravitional effects, or claims that physical objects control fin markets.
The objective is to provide another way of ohow market conditions develop and intect.
## 🌙 MO Moon Phase — Cyclical Price Position
The Moon Phase module divies the current price position within a confurable obsertion range into eight stages:
* 🌑 New Moon
* 🌒 Waxing Crescent
* 🌓 First Quarter
* 🌔 Waxing Gibbous
* 🌕 Full Moon
* 🌖 Waning Gibbous
* 🌗 Last Quarter
* 🌘 Waning Crescent
The calcation uses the highest and lowest prices within the selected cy length.
The current closing price is noalized between these two bdaries and expreed as a percentage
This creates a visual reprention of where price is currently posioned inside its measured range.
The eight phas theefore describe **progressive positnal changes inside the market range**, rather than reprenting an actual astrmical moon cycle.
The default observation length is 28 bars and can be adjued through the indicator settings.
## 🌊 MO Test Depth — Range Depth
Test Depth measures how deeply the current price is positioned within the observed price range.
The calcation compares the current close with the cycle high and cycle low and converts the result into a normalied percentage.
The indicator divides this position into several zones:
* 🔵 Shallows
* 🟢 Shallow Water
* 🟡 Mid Water
* 🔴 Deep Water
This proides a diffent perective from siply describg price as bullish or bearish.
The same directional movement can have very different structural meanings depeding on wther price is located near the lower portion, middle portion, or upper portion of its observed range.
Test Depth is therefore primarily a **positional measurement**.
## 🔄 MO Resonance Rotation — Movement Velocity
Resonance Rotation measures the magtude of recent pric displacement relative to ATR.
The indicator calcates price change over several bas and compares that movement with the current ATR environment.
The result is normalized into a scale and classified into:
* Lo Speed
* M Speed
* Hg Speed
This allows the framework to distinguish between relatively small price movement and movement that is large comred with the current volatity environment.
The rm “Rotation” is a coptual descrtion of changing market movement. It does not iply literal physical rotation.
## 🌀 MO Black Hole Trap — Compression and Expansion
Black Hole Trap examines the relationship between **candle range and relative volume**.
The cunt candle range is comred with the brder cycle range, while current volume is comped with its moving average.
Several conditions can therefre be observed:
* relatiely compresed price rane with reced actity
* comessed range with very low relive activity
* expaded range with eleted activity
* more orary range and activity conditions
These conditions are converted into a normaled Black Hole Score
The resulting classifications are:
* No Tra
* Weak Tra
* Mid Tr
* Strong Tr
The purpose of this module is to describe unul combitions of **range compression, range expansion and market activity**.
“Black Hole” is a conceptual name for this calculd condition. It does not reprent an acal phcal black hole, gravitanal fild, or phycal force acng on price.
## ⚡ MO Price Action Resonance — Condition Alignment
Price Action Resonance examines several market characstics together.
The calculation considers:
* current price relative to the cycle high
* current price relative to the cycle low
* price relationship with the per
* relative volume
Each condition contrutes to a combined resonance score.
The score is classified into:
* No Reonace
* Weak Resnance
* Mid Resonace
* Strong Renance
This component is desned to show when seral difrent market obseations are ocuing together.
Raer than trting one measurent as the comlete descption of market behavior, the module presves several dimions and combes them into a single descrtive state.
## ⚡ MO Smooth Velocity — Smoothed Directional Movement
Smooth Velocity measures the rate of change of an EMA-smoothed price series.
The price is first smoothed with an EMA, after which the change in the smoothed series is measured over several bars and normazed relative to the smoothed price.
The resulting state is classified as:
* 🚀 Fast Up
* ⬆️ Slow Up
* ➡️ Sideways
* ⬇️ Slow Down
* 📉 Fast Down
This provides information about both **direction and movement rate**.
The purpose is not simply to ideify whether price is above or below a moving average, but to obrve how the smoothed price itelf is changing.
## 💥 MO Price Burst — Candle Displacement and Activity
Price Burst examines the relationship between candle body movement, total candle range and relative volume.
The open-to-close movement is normaled agaist the candle's high-to-low range.
The resulting directional movement is then combined with the current volume ratio.
This produces a Burst Strength measurement that is classified into:
* 💤 No Burst
* 💥 Weak Burst
* 💥 Mid Burst
* 💥 Strong Burst
This module descibes periods where candle displacement becomes more pronnced relative to the candle's total range and surrnding activity.
It provides another way of observing changes in the intesity of price movement.
## 🌍 MO Session Disruption Radar — Session Volatility
Session Radar divides the d into three broad observation periods:
* 🌏 Asia
* 🌍 Europe
* 🌎 America
The current ATR is compared with a session-specific volatility reference.
This produces a normalized session activity value and corsponding state.
The module therefore examines whether current volatility is relatively subdd or eleted within the defied session environment.
It is designed as a **session cont measurement**, allowing volatity conditions to be observed alonside the other componts of the framework.
## 🛰️ MO Moon Satellite — Secondary Price Position
The Satellite module introdes a secondary observation range derived from the main cycle length.
The current price is measured between the sateite high and salite low and normaled
The resulting states are:
* Very Low Sateite
* Low Sateite
* Balance Sateite
* Mid Sateite
* High Sateite
This creates a second positnal layer.
The main Moon Phase describes the broer range posion, while the Satelte measument provides another view of where price is locatd inside a smller obseation range.
“Satellite” is a conceptual naming system for this secondary range relationship.
## ⛰️ MO Structure Distance — Structural Location
Structure Distance evaates the current price against an expded structural range.
The indicator idtifies the highest and lowest prices over a larger obsvation window and calates the distance from the current close to both boundies.
The resulting conditions include:
* ⛰️ Near Re
* 🏔️ Near Sort
* 📈 Near Hh
* 📉 Near Lw
* 〰️ Mid Zo
This allows the current market locaon to be descbed in relation to its brder obseed exemes.
The measurement is based on distance rather than a manally drn level.
# 📍 Swing Point Context
The indicator also uses confirmed pivot-based swing highs and swing lows.
When a swing point is confirmed, its label can disay several pieces of conte information simaneously:
* swing price
* current MO Phase
* Satellite position
* structural location
* structural distance
This connects individual swing points with the broader market state being observed by the framework.
The pivot parameters can be adjusted through the Left Bars and Right Bars settings.
# 🧭 A Different Way to Observe Market Direction
The central concept of ATK/DEF MOON Cycle is that market direction does not have to be repreted by one conveional trend calcuion.
The framework separates several different questions:
**Where is price?**
MO Moon Phase, Test Depth and Satellite Position describe price location within different observation ranges.
**How fast is price moving?**
Resonance Rotation and Smooth Velocity describe the rate of price movement.
**How large is the current movement?**
ATR, candle range and Price Burst provide volatility and displacement information.
**How active is the market?**
Relative volume contributes information about the current activity environment.
**Where is price within the broader structure?**
Structure Distance describes the relationship between current price and observed structural extremes.
**Are several conditions occurring together?**
Price Action Resonance combines multiple observations into a common descriptive score.
This separation is important because market position and market movement are not necearily the same thing.
Price can be positioned near an extreme while movement remains weak.
Price can also move rapidly while remaining inside the middle portion of a larger structure.
A compressed range can occur with low activity, while an expanded range can occur with elevated activity.
ATK/DEF MOON Cycle keeps these characteristics visible instead of forcing them into a single conventional trend definition.
# 🧠 Conceptual Architecture
The indicator uses a phycs-inspired voculary as an alrnative organizational language for market obervation.
The terology can be understood as follows:
**Moon Phase**
→ progressive position inside a measured price cycle.
**Water Depth**
→ depth of current price inside the observed range.
**Rotation**
→ normalized magnitude of recent price movement.
**Resonance**
→ simultaneous presence of several measurable market conditions.
**Black Hole**
→ unusual range and activity conditions.
**Velocity**
→ rate of change of price movement.
**Burst**
→ concentrated candle displacement combined with activity.
**Satellite**
→ position inside a secondary observation range.
**Structure Distance**
→ distance between current price and observed structural extremes.
These terms form one consistent analytical language while the underlng calculations remain based on chart data.
The indicator transrms these values into normazed measurements and desiptive states.
The percentages displayed by the indicator repsent **normazed analytical values**. They are not probality estates and should not be intereted as guateed forecasts.
# 📊 Dashboard Design
The MOON Cycle dashboard presents several indepdent obseations in one compact structure.
The dashboard includes:
* Test Depth
* Resonance Rotation
* Black Hole Trap
* Price Action Resonance
* Smooth Velocity
* Price Burst
* Session Radar
Each row reprents a different charactertic of the current market environment.
The purpose of the dashboard is to make the relationship between different market properties eaier to observe without reding the ente chart to a single numeral value.
# 🔬 Analytical Philosophy
ATK/DEF MOON Cycle is based on a simple principle:
**Observe the market from multiple dimensns instead of descring it through only one contional concept.**
Price is treated not only as a seqnce of candles, but as a changing system of:
* position
* movement
* velocity
* range
* activity
* expansion
* contraction
* structural distance
* cyclical progression
* session environment
The physics-inspired terminology provides a separate conceptual language for organizing these observations.
It is not preseed as a claim that finl markets are goverd by lital astroal or phycal mechanms.
The undeying measements remain derived from market data available on the chart.
# ⚠️ Important Information
ATK/DEF MOON Cycle is an analytical and visualization framework for stu market behavior.
The ter used by the indicator is concal. References to Moon, Satellite, Black Hole, Resonance, Rotation, Water Depth and similar terms describe calcul market conditions and are not claims about leral physical forces affting fin mars.
The indicator does not provide fin advice Its purpose is to provide an altetive framework for obsing and analyzing the changing chararistics of market da.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
