An indicator that finds swing structure with pivots, draws a Fibonacci cloud and levels, and runs an adaptive trailing line that changes with a trend, range or volatile regime from ADX and ATR.
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
Signals come from a trailing flip or from a cross of the 0.5 level, with strictness and breakout confirmation filters. Optional risk tools add stop loss and three take profit lines, break-even after the first target, a confidence score, adaptive sizing and a backtest tracker. It draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Length
int
13
pivotLenInput
Min Swing Score
float
1.0
minSwingScoreInput
ADX Length
int
14
adxLenInput
Trend Threshold
float
22.0
adxTrendInput
Volatile Threshold (×ATR)
float
1.6
volatilityMultInput
Trailing Mode
string
Adaptive (Auto)
trailModeInput
Signal Mode
string
SIGMODE_CROSS
signalModeInput
0.5 Cross Strictness
string
STRICT_FULL
crossStrictnessInput
Breakout Confirmation (×ATR)
float
0.2
confirmFilterInput
Min Body Ratio
float
0.5
bodyFilterInput
Show Fib Cloud
bool
true
showCloudInput
Cloud Style
string
Gradient
cloudStyleInput
Show all 40 settings
Setting
Type
Default
Variable
Show Confluence Markers
bool
false
showConfluenceInput
Show Fib Levels
bool
true
showFibLevelsInput
Enable Risk Management
bool
true
enableRMInput
Risk Preset
string
Balanced
riskPresetInput
ATR Length (RM)
int
14
atrLenRiskInput
SL ×ATR (Custom)
float
1.5
slMultInput
TP1 ×Risk (Custom)
float
1.0
tp1MultInput
TP2 ×Risk (Custom)
float
2.0
tp2MultInput
TP3 ×Risk (Custom)
float
3.0
tp3MultInput
Show SL/TP Lines
bool
true
showSlTpInput
Show SL/TP Labels
bool
true
showSlTpLabelsInput
Break-Even After TP1
bool
true
useBreakEvenInput
Enable Confidence Score
bool
true
useConfidenceInput
Min Confidence %
float
50.0
minConfidenceInput
Adaptive Position Sizing
bool
true
useAdaptiveSizingInput
Base Risk per Trade %
float
1.0
baseRiskPctInput
Enable Backtest Tracker
bool
true
useBacktestInput
Show Per-Grade Stats
bool
true
showPerGradeInput
Reset Backtest
bool
false
resetBacktestInput
Theme
string
Auto
themeInput
Show Buy/Sell Signals
bool
true
showSignalsInput
Show Trailing Line
bool
true
showTrailLineInput
Highlight Regime Changes
bool
false
showRegimeBgInput
Show Swing Labels
bool
false
showSwingLabelsInput
Show Watermark
bool
true
showWatermarkInput
Label Font Size
string
Small
labelFontSizeInput
Show Dashboard
bool
true
showDashInput
Position
string
Top Right
dashPosStr
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.
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
This overlay indicator plots a SuperTrend line on the price chart using a fixed ATR length of 10 and a factor of 3. When the trend direction is up it draws a green line and a light green fill toward the candle midpoint; when down it draws a red line and a ligh