OPEN-SOURCE SCRIPT
已更新

SAR Pullback By TradingConToto

479
Name & Version

SAR Pullback UX Improved (Pine Script v5)

Core Logic

Calculates two EMAs (fast and slow) to identify overall trend direction.

Uses the Parabolic SAR to detect “flip” points (when SAR crosses price), marking micro-trend reversals.

Micro-Trend Extremes

Tracks the highest high after a bullish flip (SAR below price) and the lowest low after a bearish flip (SAR above price).

These extremes feed into the stop-loss approximation.

Approximate Stop-Loss (“SL aprox”)

If SAR is below price (bullish), SL ≔ (micro-trend high − current SAR).

If SAR is above price (bearish), SL ≔ (current SAR − micro-trend low).

Leverage Calculation

User-defined “UR in USD” input.

Computes leverage as UR ÷ SL, giving you an estimate of position sizing potential.

On-Chart Signals

BUY label at each bullish flip, with SL and leverage printed.

SELL label at each bearish flip, likewise showing SL and leverage.

Customizable UI

Inputs to toggle display of SL, leverage, or both.

Choose your UR value, panel background/text colors, and BUY/SELL label colors.

Panel position fixed at top-right by default, showing a 2×3 table:

Header row (“Metric” / “Value”)

“SL aprox” row

“Leverage” row

Visuals

Plots the slow EMA colored by trend.

Draws SAR as crosses.

Bar colors shade green/red according to bullish/bearish conditions.

Semi-transparent, styled panel for quick glance of key metrics.

This indicator combines trend filtering, automated stop-loss sizing, and leverage guidance into a single, fully-configurable Pine Script tool—giving you clear on-chart signals plus a neat metrics panel for streamlined decision-making.
發行說明
Update maths
發行說明
Update bad math

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。