PROTECTED SOURCE SCRIPT

UTT NEW MOON

501
The script first calculates the day of the year and then uses astronomical formulas to approximate the Moon’s phase at the given time. From these calculations it determines the last Moon phase event and classifies it as either a New Moon (phase +1) or a Full Moon (phase −1).
It adjusts the result so the phase only changes when a new lunar event occurs, then returns two values: the current phase state and a “moonType” that signals when a new event (New or Full Moon) appears.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。