// This source code is subject to the terms of the Mozilla Public License 2.
0 at
https://mozilla.org/MPL/2.0/
// © BarefootJoey
// ██████████████████████████████████████████████████████████████████████ _____
__ _ _______ _____ _______ _______ _______
// █▄─▄─▀██▀▄─██▄─▄▄▀█▄─▄▄─█▄─▄▄─█─▄▄─█─▄▄─█─▄─▄─███▄─▄█─▄▄─█▄─▄▄─█▄─█─▄█ | |
\ | |______ |_____] |_____| | |______
// ██─▄─▀██─▀─███─▄─▄██─▄█▀██─▄███─██─█─██─███─███─▄█─██─██─██─▄█▀██▄─▄██ __|__ |
\_| ______| | | | |_____ |______
// █▄▄▄▄██▄▄█▄▄█▄▄█▄▄█▄▄▄▄▄█▄▄▄███▄▄▄▄█▄▄▄▄██▄▄▄██▄▄▄███▄▄▄▄█▄▄▄▄▄██▄▄▄██
//@version=5
indicator("Astro: Planetary Aspect Table", overlay=true)
import BarefootJoey/AstroLib/1 as AL
grtm = "🕜 Time Machine 🕜"
gsd = input.bool(false, "Activate Time Machine", group=grtm)
sdms = input.time(timestamp("2022-04-20T00:00:00"), "Select Date", group=grtm)
gt = gsd ? sdms : time
grol = "🔭 Observer Location 🔭"
htz = input.float(0, "Hour", step=0.5, inline="2", group=grol)
mtz = input.int(0, "Minute", minval=0, maxval=45, inline="2", group=grol)
tz = htz + math.round(mtz / 60, 4)
latitude = input.float(0, "Latitude", inline="1", group=grol)
longitude = input.float(0, "Longitude", inline="1", group=grol)
geo = input.bool(false, "Geocentric?", tooltip="Leave this box unchecked for
heliocentric.", group=grol)
geoout = geo ? 1 : 0
sym = input.bool(true, "Symbols?", group="Info", tooltip="Leave this box unchecked
for full names.")
iTxtSize=input.string("Small", title="Text Size", options=["Auto", "Tiny", "Small",
"Normal", "Large"], group="Info", inline="1")
vTxtSize=iTxtSize == "Auto" ? size.auto : iTxtSize == "Tiny" ? size.tiny : iTxtSize
== "Small" ? size.small : iTxtSize == "Normal" ? size.normal : iTxtSize ==
"Large" ? size.large : size.small
TP1="▽", TP2="◺", TP3="◿"
TP4="◆", TP5="◁", TP6="▷"
TP7="△", TP8="◸", TP9="◹"
pos1 = position.bottom_center , pos2 = position.bottom_left , pos3 =
position.bottom_right
pos4 = position.middle_center , pos5 = position.middle_left , pos6 =
position.middle_right
pos7 = position.top_center , pos8 = position.top_left, pos9 = position.top_right
show_event=input.bool(true, title="Show", group="Info", inline="2")
iTPos1=input.string(TP9, title="Table",
options=[TP1,TP2,TP3,TP4,TP5,TP6,TP7,TP8,TP9], group="Info", inline="2")
bull_col = input.color(color.green, "Bullish", group="Info", inline="3")
bear_col = input.color(color.red, "Bearish", group="Info", inline="3")
bg_col = input.color(color.black, "Background", group="Info", inline="4")
txt_col = input.color(color.white, "Text", group="Info", inline="4")
vTPos1=iTPos1 == TP1 ? pos1 : iTPos1 == TP2 ? pos2 : iTPos1 == TP3 ? pos3 :
iTPos1 == TP4 ? pos4 : iTPos1 == TP5 ? pos5 : iTPos1 == TP6 ? pos6 :
iTPos1 == TP7 ? pos7 : iTPos1 == TP8 ? pos8 : iTPos1 == TP9 ? pos9 : pos3