stelaraX - PSAR Trend Strategy

stelaraX – PSAR Trend Strategy is a rule-based trend-following strategy built around the Parabolic SAR indicator. The strategy automatically evaluates trend direction by tracking the position of the PSAR relative to price and enters positions when a confirmed trend flip occurs.
The logic is intentionally minimal and transparent, making the strategy suitable for backtesting, parameter studies, and trend behavior analysis across different markets and timeframes.
Core logic
The strategy calculates the Parabolic SAR using three user-defined parameters:
* start value
* increment
* maximum acceleration factor
A trend flip is defined as:
* bullish when PSAR switches from above price to below price
* bearish when PSAR switches from below price to above price
When a bullish flip is detected, the strategy opens a long position.
When a bearish flip is detected, the strategy opens a short position.
Position sizing is based on a percentage of account equity and is set to 100 percent by default.
Visualization
The script plots the Parabolic SAR directly on the chart using circular markers:
* green when PSAR is below price
* red when PSAR is above price
Buy and sell labels are placed on the chart at the moment a trend flip occurs to clearly mark entry points.
Note: To hide strategy order arrows, disable “Show Orders on Chart” in the script settings under Properties.
Alerts
Alert conditions are included for:
* buy signals when PSAR flips bullish
* sell signals when PSAR flips bearish
Alerts use the active ticker symbol and trigger only on confirmed flip conditions.
Use case
This strategy is intended for:
* trend-following backtests
* studying Parabolic SAR trend behavior
* evaluating PSAR parameter sensitivity
Disclaimer
This strategy is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TMB_Invest.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TMB_Invest.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.