PROTECTED SOURCE SCRIPT

AstroTrading_GezegenselDestek-Direnç-Dip-Tepe[BugraComez]

74
Overview
The “AstroTrading_GezegenselDestek-Direnç-Dip-Tepe” indicator is designed for astro-trading. It uses the external library (imported from BarefootJoey/AstroLib/1) to calculate the positions of celestial bodies (planets, the Sun, and the Moon) at a given time. Based on user-selected options, it plots a series of horizontal lines—both “normal” and “mirror”—which represent multiples of the planet’s position when scaled and offset. In addition, it creates a table overlay that shows key information (including the planet’s name and its computed aspect with a specified precision) and uses background colors to indicate retrograde motion.

Key Components
1. User Inputs and Table Settings
Table Position & Font Size:
The script starts by allowing the user to choose where the information table should be placed (e.g., Top Right) and what font size to use (Tiny, Small, Normal, Large, or Auto). These inputs ensure the indicator’s display fits the user’s chart layout preferences.

Additional Inputs:
Inputs include a “Base Multiplier” (vertical offset), a scaling factor (to convert degrees into a monetary or numerical equivalent), and a transparency level for the plotted lines.
Furthermore, the user can select two celestial bodies (for example, “☿ Mercury” for both planet1 and planet2, with an option for “None” for the second) that will be used in the calculations.

2. Astronomical Calculations via AstroLib
Geocentric vs. Heliocentric:
The indicator offers a toggle to choose between geocentric (Earth-centered) and heliocentric (Sun-centered) calculations. Additionally, the user provides geographic coordinates (latitude and longitude) and time zone adjustments.

Time and Date Settings:
The script computes the Julian Day Number (JDN) for the current time (and the next day) based on user input. These values, along with a defined time zone offset, are passed into the AstroLib functions.

Planetary Position Calculation:
Depending on the selected options, the script calls functions such as AL.getsun, AL.getmoon, or AL.getplanet (with the appropriate planet index) to retrieve the current degree value of the chosen celestial body.
It then assigns a specific color to each planet (for example, yellow for the Sun, silver for the Moon, gray for Mercury, green for Venus, blue for Earth, red for Mars, etc.), which is used in the plots.

3. Plotting Planetary Lines
Normal and Mirror Lines:
For each selected planet, the script plots multiple horizontal lines. The formula used involves:

Multiplying the planet’s degree value by the user-defined scaler.
Adding multiples of 360° (also scaled) plus an optional base offset.
This results in a series of lines labeled as “Normal 0”, “Mirror 0”, “Normal 1”, “Mirror 1”, and so on. These lines form a grid-like structure on the chart that traders may interpret as potential support or resistance levels.

Plot Style:
The plots use a circle style (plot.style_circles) with a set transparency level (controlled by the input lontransp) and display only a specified number of historical bars to help maintain chart performance.

4. Retrograde Background Coloring
Dynamic Backgrounds:
Two helper functions, retro_bg1(deg) and retro_bg2(deg), determine the background color based on whether the current planetary value is higher than its previous value. This comparison serves as an indicator of retrograde motion.
The script applies these background colors using the bgcolor() function, though they are set to display.none (so they may be used only as a reference or for optional debugging).
5. Information Table
Table Creation and Data Display:
A separate table is created at the user-specified position to display concise information about the selected planets.

Columns: The table has columns for the indicator’s name, and for key values such as the computed angle (with the precision level shown in the tooltip) for each planet.
Tooltips: The tooltip for each planet cell is generated by calling a function from AstroLib (e.g. AL.aspectsignprecisionV2ext), which returns the planetary aspect rounded to the specified precision (with an “orb” value).
Formatting:
The table uses custom font sizes (as defined by the user input) and colors that match the corresponding planetary color scheme, providing an intuitive reference for traders.

Trading Strategy Implications
This indicator is intended for traders who incorporate astro-trading techniques into their analysis. By plotting multiple horizontal lines derived from planetary positions, the indicator suggests potential support, resistance, dip, and peak levels based on celestial influences. These levels can be used as:

Reference Zones:
The multiple “normal” and “mirror” lines help identify price zones where the market might react, potentially acting as dynamic support or resistance.

Market Timing:
With the inclusion of geocentric or heliocentric calculations, traders who follow astro-trading methodologies can compare these levels with traditional technical indicators to confirm trade entries or exits.

Quick Insights:
The information table provides a snapshot of the current planetary positions (and their aspects), which can be a supplementary factor in a trader’s overall analysis.

Compliance with TradingView Guidelines
This explanation is structured to meet TradingView’s script publication rules by:

Clearly describing each component and its purpose.
Providing a logical breakdown of the script’s functionality without promoting any specific broker or trading system.
Using objective language and detailed comments that allow other traders to understand and potentially modify the script for their own purposes.
This detailed explanation should help users understand how the “AstroTrading_GezegenselDestek-Direnç-Dip-Tepe[BugraComez]” indicator works, what each section of the code does, and how it may be used as part of an astro-trading strategy.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.