Astro: Planetary Aspect Table
// 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

day = AL.J2000(AL.JDN(gt, 0, tz))
dayr = AL.J2000(AL.JDN(gt, 1, tz))

var aspects = table.new(vTPos1, columns=13, rows=12, border_width=1)
if barstate.islast 
    table.cell(aspects, column=0, row=0, text=sym?AL.PlanetSign(3):'Moon', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=1, row=0, text=sym?AL.PlanetSign(1):'Mercury', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=2, row=0, text=sym?AL.PlanetSign(2):'Venus', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=3, row=0, text=sym?AL.PlanetSign(11):'Earth', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=4, row=0, text=sym?AL.PlanetSign(4):'Mars', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=5, row=0, text=sym?AL.PlanetSign(5):'Jupiter', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=0, text=sym?AL.PlanetSign(6):'Saturn', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=0, text=sym?AL.PlanetSign(7):'Uranus', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=0, text=sym?AL.PlanetSign(8):'Neptune', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=0, text=sym?AL.PlanetSign(9):'Pluto', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=0, text=sym?'∡':'Aspects', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)

    table.cell(aspects, column=10, row=1, text=sym?AL.PlanetSign(10):'Sun', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=2, text=sym?AL.PlanetSign(3):'Moon', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=3, text=sym?AL.PlanetSign(1):'Mercury', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=4, text=sym?AL.PlanetSign(2):'Venus', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=5, text=sym?AL.PlanetSign(11):'Earth', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=6, text=sym?AL.PlanetSign(4):'Mars', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=7, text=sym?AL.PlanetSign(5):'Jupiter', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=8, text=sym?AL.PlanetSign(6):'Saturn', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=9, text=sym?AL.PlanetSign(7):'Uranus', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=10, text=sym?AL.PlanetSign(8):'Neptune', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=10, row=11, text=sym?AL.PlanetSign(9):'Pluto', bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)

    table.cell(aspects, column=11, row=1, text=AL.degsign(AL.getsun(geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=2, text=AL.degsign(AL.getmoon(geoout, day, dayr, latitude, longitude)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=3, text=AL.degsign(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=4, text=AL.degsign(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=5, text=AL.degsign(AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=6, text=AL.degsign(AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=7, text=AL.degsign(AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=8, text=AL.degsign(AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=9, text=AL.degsign(AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=10, text=AL.degsign(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=11, row=11, text=AL.degsign(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)), bgcolor=bg_col, text_color=txt_col, text_size=vTxtSize)
    
    moonsun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getmoon(geoout, day, dayr, latitude, longitude)))
    mercsun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz)))
    venusun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz)))
    eartsun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz)))
    marssun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    jupisun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    satusun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    uransun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))
    neptsun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)))
    plutsun=math.abs(AL.degtolowest180(AL.getsun(geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=0, row=1, text=AL.aspectslowsign(AL.degtolowest180(moonsun)), bgcolor=AL.virinchiaspectcol(moonsun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=1, row=1, text=AL.aspectslowsign(AL.degtolowest180(mercsun)), bgcolor=AL.virinchiaspectcol(mercsun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=2, row=1, text=AL.aspectslowsign(AL.degtolowest180(venusun)), bgcolor=AL.virinchiaspectcol(venusun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=3, row=1, text=AL.aspectslowsign(AL.degtolowest180(eartsun)), bgcolor=na, text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=4, row=1, text=AL.aspectslowsign(AL.degtolowest180(marssun)), bgcolor=AL.virinchiaspectcol(marssun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=5, row=1, text=AL.aspectslowsign(AL.degtolowest180(jupisun)), bgcolor=AL.virinchiaspectcol(jupisun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=6, row=1, text=AL.aspectslowsign(AL.degtolowest180(satusun)), bgcolor=AL.virinchiaspectcol(satusun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=7, row=1, text=AL.aspectslowsign(AL.degtolowest180(uransun)), bgcolor=AL.virinchiaspectcol(uransun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=8, row=1, text=AL.aspectslowsign(AL.degtolowest180(neptsun)), bgcolor=AL.virinchiaspectcol(neptsun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 
    table.cell(aspects, column=9, row=1, text=AL.aspectslowsign(AL.degtolowest180(plutsun)), bgcolor=AL.virinchiaspectcol(plutsun, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize) 

    mercmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz)))
    venumoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz)))
    eartmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz)))
    marsmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    jupimoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    satumoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    uranmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))
    neptmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)))
    plutmoon=math.abs(AL.degtolowest180(AL.getmoon(geoout, day, dayr, latitude, longitude) - AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=1, row=2, text=AL.aspectslowsign(AL.degtolowest180(mercmoon)), bgcolor=AL.virinchiaspectcol(mercmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=2, row=2, text=AL.aspectslowsign(AL.degtolowest180(venumoon)), bgcolor=AL.virinchiaspectcol(venumoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=3, row=2, text=AL.aspectslowsign(AL.degtolowest180(eartmoon)), bgcolor=AL.virinchiaspectcol(eartmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=4, row=2, text=AL.aspectslowsign(AL.degtolowest180(marsmoon)), bgcolor=AL.virinchiaspectcol(marsmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=5, row=2, text=AL.aspectslowsign(AL.degtolowest180(jupimoon)), bgcolor=AL.virinchiaspectcol(jupimoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=2, text=AL.aspectslowsign(AL.degtolowest180(satumoon)), bgcolor=AL.virinchiaspectcol(satumoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=2, text=AL.aspectslowsign(AL.degtolowest180(uranmoon)), bgcolor=AL.virinchiaspectcol(uranmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=2, text=AL.aspectslowsign(AL.degtolowest180(neptmoon)), bgcolor=AL.virinchiaspectcol(neptmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=2, text=AL.aspectslowsign(AL.degtolowest180(plutmoon)), bgcolor=AL.virinchiaspectcol(plutmoon, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    venumerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz)))
    eartmerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz)))
    marsmerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    jupimerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    satumerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    uranmerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))
    neptmerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)))
    plutmerc=math.abs(AL.degtolowest180(AL.getplanet(1, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=2, row=3, text=AL.aspectslowsign(AL.degtolowest180(venumerc)), bgcolor=AL.virinchiaspectcol(venumerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=3, row=3, text=AL.aspectslowsign(AL.degtolowest180(eartmerc)), bgcolor=AL.virinchiaspectcol(eartmerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=4, row=3, text=AL.aspectslowsign(AL.degtolowest180(marsmerc)), bgcolor=AL.virinchiaspectcol(marsmerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=5, row=3, text=AL.aspectslowsign(AL.degtolowest180(jupimerc)), bgcolor=AL.virinchiaspectcol(jupimerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=3, text=AL.aspectslowsign(AL.degtolowest180(satumerc)), bgcolor=AL.virinchiaspectcol(satumerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=3, text=AL.aspectslowsign(AL.degtolowest180(uranmerc)), bgcolor=AL.virinchiaspectcol(uranmerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=3, text=AL.aspectslowsign(AL.degtolowest180(neptmerc)), bgcolor=AL.virinchiaspectcol(neptmerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=3, text=AL.aspectslowsign(AL.degtolowest180(plutmerc)), bgcolor=AL.virinchiaspectcol(plutmerc, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    eartvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz)))
    marsvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    jupivenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    satuvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    uranvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))
    neptvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)))
    plutvenu=math.abs(AL.degtolowest180(AL.getplanet(2, geoout, day, dayr, latitude, longitude, tz) - AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz))) 

    table.cell(aspects, column=3, row=4, text=AL.aspectslowsign(AL.degtolowest180(eartvenu)), bgcolor=AL.virinchiaspectcol(eartvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=4, row=4, text=AL.aspectslowsign(AL.degtolowest180(marsvenu)), bgcolor=AL.virinchiaspectcol(marsvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=5, row=4, text=AL.aspectslowsign(AL.degtolowest180(jupivenu)), bgcolor=AL.virinchiaspectcol(jupivenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=4, text=AL.aspectslowsign(AL.degtolowest180(satuvenu)), bgcolor=AL.virinchiaspectcol(satuvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=4, text=AL.aspectslowsign(AL.degtolowest180(uranvenu)), bgcolor=AL.virinchiaspectcol(uranvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=4, text=AL.aspectslowsign(AL.degtolowest180(neptvenu)), bgcolor=AL.virinchiaspectcol(neptvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=4, text=AL.aspectslowsign(AL.degtolowest180(plutvenu)), bgcolor=AL.virinchiaspectcol(plutvenu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    marseart=math.abs(AL.degtolowest180(AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 
    jupieart=math.abs(AL.degtolowest180(AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 
    satueart=math.abs(AL.degtolowest180(AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 
    uraneart=math.abs(AL.degtolowest180(AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 
    nepteart=math.abs(AL.degtolowest180(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 
    pluteart=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(3, geoout, day, dayr, latitude, longitude, tz))) 

    table.cell(aspects, column=4, row=5, text=AL.aspectslowsign(AL.degtolowest180(marseart)), bgcolor=AL.virinchiaspectcol(marseart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=5, row=5, text=AL.aspectslowsign(AL.degtolowest180(jupieart)), bgcolor=AL.virinchiaspectcol(jupieart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=5, text=AL.aspectslowsign(AL.degtolowest180(satueart)), bgcolor=AL.virinchiaspectcol(satueart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=5, text=AL.aspectslowsign(AL.degtolowest180(uraneart)), bgcolor=AL.virinchiaspectcol(uraneart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=5, text=AL.aspectslowsign(AL.degtolowest180(nepteart)), bgcolor=AL.virinchiaspectcol(nepteart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=5, text=AL.aspectslowsign(AL.degtolowest180(pluteart)), bgcolor=AL.virinchiaspectcol(pluteart, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    jupimars=math.abs(AL.degtolowest180(AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    satumars=math.abs(AL.degtolowest180(AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    uranmars=math.abs(AL.degtolowest180(AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    neptmars=math.abs(AL.degtolowest180(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))
    plutmars=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(4, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=5, row=6, text=AL.aspectslowsign(AL.degtolowest180(jupimars)), bgcolor=AL.virinchiaspectcol(jupimars, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=6, row=6, text=AL.aspectslowsign(AL.degtolowest180(satumars)), bgcolor=AL.virinchiaspectcol(satumars, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=6, text=AL.aspectslowsign(AL.degtolowest180(uranmars)), bgcolor=AL.virinchiaspectcol(uranmars, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=6, text=AL.aspectslowsign(AL.degtolowest180(neptmars)), bgcolor=AL.virinchiaspectcol(neptmars, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=6, text=AL.aspectslowsign(AL.degtolowest180(plutmars)), bgcolor=AL.virinchiaspectcol(plutmars, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    satujupi=math.abs(AL.degtolowest180(AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    uranjupi=math.abs(AL.degtolowest180(AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    neptjupi=math.abs(AL.degtolowest180(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))
    plutjupi=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(5, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=6, row=7, text=AL.aspectslowsign(AL.degtolowest180(satujupi)), bgcolor=AL.virinchiaspectcol(satujupi, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=7, row=7, text=AL.aspectslowsign(AL.degtolowest180(uranjupi)), bgcolor=AL.virinchiaspectcol(uranjupi, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=7, text=AL.aspectslowsign(AL.degtolowest180(neptjupi)), bgcolor=AL.virinchiaspectcol(neptjupi, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=7, text=AL.aspectslowsign(AL.degtolowest180(plutjupi)), bgcolor=AL.virinchiaspectcol(plutjupi, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    uransatu=math.abs(AL.degtolowest180(AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    neptsatu=math.abs(AL.degtolowest180(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))
    plutsatu=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(6, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=7, row=8, text=AL.aspectslowsign(AL.degtolowest180(uransatu)), bgcolor=AL.virinchiaspectcol(uransatu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=8, row=8, text=AL.aspectslowsign(AL.degtolowest180(neptsatu)), bgcolor=AL.virinchiaspectcol(neptsatu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=8, text=AL.aspectslowsign(AL.degtolowest180(plutsatu)), bgcolor=AL.virinchiaspectcol(plutsatu, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    nepturan=math.abs(AL.degtolowest180(AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))
    pluturan=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(7, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=8, row=9, text=AL.aspectslowsign(AL.degtolowest180(nepturan)), bgcolor=AL.virinchiaspectcol(nepturan, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)
    table.cell(aspects, column=9, row=9, text=AL.aspectslowsign(AL.degtolowest180(pluturan)), bgcolor=AL.virinchiaspectcol(pluturan, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

    plutnept=math.abs(AL.degtolowest180(AL.getplanet(9, geoout, day, dayr, latitude, longitude, tz)-AL.getplanet(8, geoout, day, dayr, latitude, longitude, tz)))

    table.cell(aspects, column=9, row=10, text=AL.aspectslowsign(AL.degtolowest180(plutnept)), bgcolor=AL.virinchiaspectcol(plutnept, bull_col, bear_col), text_color=txt_col, text_size=vTxtSize)

// EoS made w/ ❤ by @BarefootJoey ✌💗📈