1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Planetary Retrograde Periods calculates geocentric planetary speeds for celestial bodies ranging from Mercury to Pluto. The indicator highlights two-phase retrograde periods, marks stationary turn points and midpoints, and projects future retrograde windows ahead of current price action with optional date labels. Settings allow users to select the active planet, set future lookahead bar counts, adjust label timezones, and customize colors and transparency.
Geocentric planetary retrograde motion detection
Two-phase retrograde visualization with midpoint markers
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Select Planet
string
☿ Mercury
pselect
Show Retrograde Halves
bool
true
show_half
Bars to Look Ahead
int
250
look_ahead
Show Future Retrograde Lines
bool
true
show_future
Show Future Date Labels
bool
false
show_future_datetime
Timezone for Future Dates
string
UTC
tz_input
Label Size
string
Normal
iTxtSize
Mercury
color
color.rgb(255, 140, 0)
mercury_color
Venus
color
color.rgb(0, 255, 0)
venus_color
Mars
color
color.rgb(255, 0, 0)
mars_color
Jupiter
color
color.rgb(255, 255, 0)
jupiter_color
Saturn
color
color.rgb(192, 192, 192)
saturn_color
Show all 19 settings
Setting
Type
Default
Variable
Uranus
color
color.rgb(0, 191, 255)
uranus_color
Neptune
color
color.rgb(255, 0, 255)
neptune_color
Pluto
color
color.rgb(255, 255, 255)
pluto_color
Stationary Point Marker
color
color.yellow
station_color
Label Text Color
color
#000000
text_col
First Half Transparency
int
55
transp_first
Second Half Transparency
int
20
transp_second
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
Calculates swing highs and swing lows on the price chart using pivot high and pivot low detection over a specified length. It places labels above pivot highs and below pivot lows to highlight key structural swing points. The indicator measures and displays the