Skip to content

Astro Scripting Functions

By Optuma Team · Updated 2023-04-06

For clients with the advanced astrological module it’s possible to create scripts on a number of astro tools and planetary values, such as GPLs, Planetary Aspects, and Planetary Signs. These can then be used in scans, custom tools, and backtests.

Clients with the astro module can sign in here to see the astro scripting forum to post questions and see examples:

https://forum.optuma.com/forum/astro-scripting/

See below for examples of the following functions:

Planet Value Properties

One of the most versatile astro functions is the Planetary Value PVAL(). Click on the Value field to select one of the following measures, from either a Geocentric, Heliocentric, Sidereal, or Topocentric perspective:

  • Longitude
  • Latitide
  • Longitude Speed
  • Latitude Speed
  • Right Ascension
  • Declination
  • Right Ascension Speed
  • Declination Speed
  • Distance
  • Distance Speed

To show the distance of Mars from Earth in a Show View:

PVAL(VALUE=Distance, PLANET=[Mars], GEO=GeoCentric)

To show when Mars starts to move closer to Earth using Show Bar vertical lines:

PVAL(VALUE=Distance, PLANET=[Mars], GEO=GeoCentric) TurnsDown

Planetary Values

To show when Mercury is conjunct the Sun:

PA(PLANETS1=[Sun], PLANETS2=[Mercury], ASPECTS=[Conjunction])

Used to convert planetary degrees to price. The following will scan for when price is within 3° of Venus GPL:

//Select Planet(s)
p1=PVAL(PLANET=[Venus]);
//Calculate Gann Planetary Angle
g1=GPA();
//Choose required aspects and orb
ASPECTS(g1, p1, ORB=3.0, ASPECTS=[Conjunction])

Venus at 144°:

PAG(PLANETS1=[Venus], DEGREES=144)

To signal when Venus is at maximum declination:

V1=PDC(GEO=HelioCentric, PLANETS=[Venus]) TurnsDown;
V1[-1]

When Mars and Jupiter are in retrograde at the same time:

RL(PLANET1=[Mars]) and RL(PLANET1=[Jupiter])

To show when Mars is in Aries:

PLS(PLANETS1=[Mars], SIGNS=[Aries]) == 1

To show when Venus moves in to Leo:

PLSC(PLANETS=[Venus], SIGNS=[Leo]) == 1

When Mars (Heliocentric) starts to speed up:

V1=PSP(GEO=HelioCentric, PLANETS=[Mars]) TurnsUp;
V1[-1]

To signal every new moon in a Show Bar or Backtest:

MOON(ASPECTS=[New Moon])

For solar eclipses when the sun is conjunct or square Mercury:

ECL(ECLIPSE=Solar) and
PA(PLANETS1=[Sun], PLANETS2=[Mercury], ASPECTS=[Conjunction,Square])

For when Jupiter and Saturn are 120° apart:

PDIFF(PLANET1=[Jupiter], PLANET2=[Saturn]) Crosses 120

To use a Show Bar to highlight each 90° movement in Mars prior to the last bar (heliocentric basis).

$V = BARDATE(LAST());
V1 = PDI(LEVELS=[90], PLANETS=[Mars], DIRECTION=Reverse, STARTDATE=$V, GEO=HelioCentric);
V1 == 1

Time by Planetary Degrees

Choose which categories of cookies you allow. Strictly-necessary cookies are always on. You can change this any time via the "Cookie Settings" link in the footer.

  • Functional

    Remember preferences like dismissed banners and your dark-mode choice.

  • Analytics

    Help us understand how the site is used so we can improve it.

  • Marketing

    Measure our advertising and help us reach people who may be interested in Optuma.