OPEN-SOURCE SCRIPT
Buy Sell Magic Rework

A version of the legendary Forex indicator Buy Sell Magic for TradingView, with optional additional filtering in the settings.
A simple yet very effective trend-following tool — I personally used it for trading gold 14 years ago, and it still works great today!
How it works:
This script combines the classic Parabolic SAR trend indicator with an optional ZigZag filter for additional signal confirmation.
Parabolic SAR:
The indicator plots the Parabolic SAR on the chart to help identify trend direction and potential reversals. A buy signal is generated when the SAR flips from above the price to below it, signaling a possible uptrend. A sell signal appears when the SAR moves from below to above the price, indicating a potential downtrend.
ZigZag Filter (optional):
The ZigZag filter uses pivot highs and lows to reduce market noise and confirm significant swings. When enabled, a signal is shown only after a clear pivot forms in the chosen period.
Inputs:
ZigZag Period: Controls pivot sensitivity.
SAR Start, Increment, Max: Adjust how responsive the SAR is.
Use ZigZag Filter: Enable or disable additional filtering.
Plots:
Gray crosses = Parabolic SAR points
Green arrows = Buy signals
Red arrows = Sell signals
Best Use:
This tool works well on various markets: Forex, crypto, stocks. It is best suited for trend-following or swing trading strategies. Adjust the settings for your preferred asset and timeframe, and always backtest before live trading.
⚠️ Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always test any strategy thoroughly and trade at your own risk.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。