Lucid SARI wrote this script after having listened to Hyperwave with Sawcruhteez and Tyler Jenks of Lucid Investments Strategies LLC on July 3, 2019. They felt that the existing built-in Parabolic SAR indicator was not doing its calculations properly, and they hoped that someone might help them correct this. So I tried my hand at it, learning Pine Script as I went. I worked on it through the early morning hours and finished it by 4 am on July 4, 2019. I've added a few bits of code since, adding the rule regarding the SAR not advancing beyond the high (low) of the prior two candles during an uptrend (downtrend), but the core script is as it was.
This code is open source under the MIT license. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
For more details on the initial script, see
Sawcruhteez from Lucid Investment Strategies wrote the following description of the Parabolic SAR, where the quotes are from Section II of J. Welles Wilder, Jr.'s book New Concepts in Technical Trading Systems (1978)
--------------------------------------------------------------------------------------------------------------------------
Parabolic SAR
"The Parabolic Time / Price System derives its name from the fact that when charted, the
pattern formed by the stops resembles a parabola, or if you will, a French Curve. The system
allows room for the market to react for the first few days after a trade is initiated and then the
stop begins to move up more rapidly. The stop is not only a function of price but also a function
of time .
"The stop never backs up. It moves an incremental amount each day, only in the direction which
the trade has been initiated."
"The stop is also a function of price because the distance the stop moves up is relative to the
favorable distance the price has moved... specifically, the most favorable price reached since the
trade was initiated."
A. The calculation for a bullish Parabolic SAR is:
Tomorrow’s SAR = Today’s SAR + AF(EP - Today’s SAR)
"Acceleration Factor (AF) is one of a progression of numbers beginning at 0.02 and ending at
0.20. The AF is increased by 0.02 each period that a new high is made" (if long) or new low is
made (if short).
EP is the "Extreme Price Point for the trade made so far. If Long , EP is the extreme high price for
the trade; if Short , EP is the extreme low price for the trade.”
Most websites will provide the above calculation for the Parabolic SAR but almost all of them
leave out this crucial detail:
B. "Never move the SAR into the previous day’s range or today’s range
"1. If Long , never move the SAR for tomorrow above the previous day’s low or
today’s low . If the SAR is calculated to be above the previous day’s low or
today’s low, then use the lower low between today and the previous day as
the new SAR. Make the next days calculations based upon this SAR.
"2. If Short , never move the SAR for tomorrow below the previous day’s high or
today’s high . If the SAR is calculated to be below the previous days’ high or
today’s high, then use the higher high between today and the previous day
as the new SAR. Make the next days calculations based upon this SAR."
When a Bullish SAR is broken then it gets placed at the SIP (significant point) of the prior trend.
In otherwords it is placed above the current candle and at the price that was the SIP.
The inverse is true for the first Bullish SAR.
"This system is a true reversal system; that is, every stop point is also a reverse point." If breaking
through a bearish SAR (one above price) that simultaneously signals to close a short and go
long.
Parada y retroceso parabólicos (PSAR)
Parabolic SAR [Jwammo12]This is a different (dare I say, corrected?) version of the Parabolic SAR that doesn't use the current active close in its calculation. This changes the current SAR to only change when the extrema (high or low) changes.
the chart shows the difference between the built in SAR and the one I have modified.
Bitmex Altcoin buy/sell free (part1) by CryptoAdrianThis script has two parts Bitmex Altcoin buy/sell free (part1) by CryptoAdrian and Bitmex Altcoin buy/sell free (part2) by CryptoAdrian
Combination of two will give you better results with clarification.
(soon will be published as one script)
For better results observe it for some time. If you didn't get how to use it PM me I will brief you :)
Hope you will like this. For any detail or doubts you can PM me on TV. I will try to reach you out ASAP .
Part 1
Part 2
Part 1 + Part 2
Please add this script to your fav so incase you find it difficult to find it can be seen in your fav and you will get it.
Thank You and happy trading :)
Buy & Sell XRPBTC:BINANCE 1D Trading BotWith this indicator you can create Buy and Sell alerts to automate your trading.
Optimised for BINANCE:XRPBTC in a 1D timeframe.
> > > READ HOW IT WORKS < < <
The goal of trading XRP against BTC is to increase your amount of BTC. XRP is in the top 5 Coins of all time.
Built upon my generic indicator Cyatophilum Altcoins Trader , this Strategy creates buy and sell signals to can be used for manual or automated trading.
This strategy using a combination of Parabolic SAR and Tilson T3 Line , which is a strong tool to buy at the right time . An integrated 10% trailing stop loss will reduce the risk!
Sell and save your founds instead of simply holding over time.
Results below are calculated using 100% equity from a 10 000$ capital and a 0.05% commission fee on each trade.
> > > READ HOW TO USE < < <
> Get access to the Cyatophilum Indicators <
Buy & Sell - ETHBTC:BINANCE 4H Trading BotWith this indicator you can create Buy and Sell alerts to automate your trading.
Optimised for BINANCE:ETHBTC in a 4H timeframe.
> > > READ HOW IT WORKS < < <
The goal of trading ETH against BTC is to increase your amount of BTC. ETH is in the top 5 Coins of all time and its bull rallies are really fast and volatile so it's very important not to miss them!
Built upon my generic indicator Cyatophilum Altcoins Trader , this Strategy creates buy and sell signals to can be used for manual or automated trading.
The year 2019 started with the end of a bull run, and the script was able to catch 29% of profits. Then in Februrary, we saw another rally, but this one dropped fast and the script caught 4% of profits. Until then, two opportunities of trade triggered but ended up as a loss, as the bear market continued. In total, it made 33% of profit and 9.5% of loss . The fact that a bear market has be going on for +3 months is a good thing for what will happen next.
I think we all remember how 2018 was for ETH. It had the most insane rally of all time, another one in April-May then 6 months of bear market. Oh! by the way, did I say the script has an integrated trailing stop loss starting at 4%? Those are the green dots below the price.
I used TradingView's Strategy Tester with historical data starting from 2017-08. Results are calculted using 100% equity from a 10 000$ capital and a 0.05% commission fee on each trade.
See the results below.
> > > READ HOW TO USE < < <
> Get access to the Cyatophilum Indicators <
Buy & Sell - TRXBTC:BINANCE 4H Automated StrategyWith this indicator you can create Buy and Sell alerts to automate your trading.
Optimised for BINANCE:TRXBTC in a 4H timeframe.
> > > READ HOW IT WORKS < < <
> > > HOW TO USE < < <
> Get access to the Cyatophilum Indicators <
Cyatophilum Altcoins Trader [ALERTSETUP]A generic Indicator built on Parabolic Stop And Reverse
Optimised for trading altcoins. Up to 8 automated alerts.
> > > READ HOW TO USE < < <
Get access to the Cyatophilum Indicators !
Bollinger + sarProblem with change in bollingerbands when adding psar short condition - and i dont know why.
Anyone - any ideas?
Cyatophilum PSAR Bot Trader V2 [BACKTEST]A strategy built upon Parabolic Stop And Reverse.
This new version includes my whole Trend Detector / Stop Loss / Takeprofit / Trailing System.
SupRes EntriesFinal component of our private modular strategy, including multiple entry TFs, fixed SL with dedicated TF, progressive SL (TSL) with dedicated TF, and BE criteria with dedicated TF.
V19: Release
PSAR Support FilterSimilar to our private High/Low Support Filter, replacing highs/lows with SAR values.
V10: Release
Multiple Timeframe Parabolic SARCombines the parabolic SAR (Stop And Reverse) strategy over multiple time scales for the given ticker; showing each as a unique color. The time scales are also averaged together.
Profitable Parabolic SARHello friends,
This script is a powerful, non-repainting optimizer for the classic Parabolic Stop and Reverse (PSAR) — one of J. Welles Wilder's most respected trend-following systems. It automatically finds and applies the most profitable PSAR settings for each instrument and timeframe, eliminating the need for manual parameter tuning.
🛠 How It Works
The indicator evaluates over 500 combinations of PSAR parameters using a decision tree–based algorithm under the hood .
Each configuration is backtested across the instrument's full price history, and when a more profitable setup is identified, the indicator seamlessly switches to those values in real time — while maintaining the original PSAR logic.
The Maximum parameter remains fixed since its impact on overall profitability is minimal compared to Start and Increment.
This self-adjusting approach removes the guesswork of parameter optimization and keeps the PSAR dynamically tuned to changing market regimes.
💡 Integrated Versions Explained
This all-in-one tool merges 3 complementary indicators:
• Profitable PSAR — A parameter optimizer that runs in a separate window below your main chart. It doesn't generate buy/sell signals directly but analyzes your specific asset and timeframe to find optimal settings. These are displayed as two lines (purple and orange), with optional labels showing the actual parameter values. Once identified, you can apply these optimal values manually to the standard PSAR.
• Self-Adjusting PSAR — A real-time overlay version that looks and behaves like the standard PSAR but automatically adjusts its parameters on the fly. It requires no manual configuration and can be paired with the Profitable PSAR to monitor which settings are currently active.
• Compact Self-Adjusting PSAR — A minimalist oscillator version that reflects the same adaptive logic through simple binary outputs: -1 for Sell and 1 for Buy. This variant is ideal for filtering or signal integration into other systems.
Together, they form a unified adaptive system that gives users both automation and interpretability — the best of both worlds.
🔥 Key Features
Adaptive optimization powered by a decision tree–based algorithm
Real-time switching to more profitable parameter configurations
Direction filter (Longs | Shorts | Longs & Shorts)
Optional analysis start date for focused historical testing
Commission customization for realistic performance modeling
Visual highlighting of parameter changes
Optional buy/sell labels and compact trend signal display
If you'd like access or have any questions, feel free to reach out to me directly via DM.
👋 Good luck and happy trading!
Script de pago
Crypto market PSAR (cPSAR)This indicator calculates the PSARs of the most liquid cryptocurrencies (as percent differences from the prices) and sums them together.
The PSARs under the closes, which act as support, are summed separately and shown in green. The PSARs over the closes (acting as resistance) are summed separately and shown in red.
The result is an indicator which can be interpreted somewhat like the RSI (but keep in mind that PSAR is a lagging indicator unlike the RSI which is a leading indicator). By interpreting this correctly you can - SOMETIMES - predict the short-term turns of the entire crypto market.
Many traders use the prices shown by PSAR (Parabolic Stop And Reverse) to set stop loss prices and/or to take profit and reverse their positions. This is why, on reversal of the PSARs (= when one of the red or green values becomes visibly larger than the other), a strong turning of the market can, sometimes, occur.
SARSI Reversal StrategySimple reversal strategy based on 'Parabolic Stop and Reverse' and 'Relative Stength Index' indicators.
Cyatophilum SAR-MA Strategy [ALERT SETUP]An Automated Strategy based on Parabolic SAR and EMAs, also called the SARMA Strategy. Works on any timeframe and market.
Read More
This indicator will trigger long/short signals entries and exits. Excellent for manual or bot trading!
It has a stop loss system that you can activate to reduce risk.
Note: If a stop loss is reached, an exit alert is triggered.
This is the Alert Setup version. That means it is used to create automatic email or SMS alerts.
It has a Backtest version that you can use to find the best configuration. I will also be there to help you on my Discord channel .
Sample Use cases
Get the indicator today!
Teknik Advance Saham (TAS)Derived from strategy "Teknik Advance Saham" or TAS by Nazarry Rosli. This indicator shows 2 buy signals, plotted as yellow and green triangle below the bar. Best used with Heiken Ashi candlestick chart.
Often times, Buy Signal 1 (yellow triangle) is used to detect a price reversal after a strong downward movement of price. Buy Signal 1 appeared when met the following conditions:
-SMA 2 cross above SMA 5
-Stochastic Slow (%K) crossed over Stochastic Slow (%D)
-Stochastic Slow (%D) below 20
Buy Signal 2 (green triangle) signify confirmation signal of Buy Signal 1 and continuation of trend. Buy Signal 2 appeared when met the following conditions:
-MACD line (12) cross over signal line (26)
-SMA 2 above SMA 5
-Parabolic SAR below bar
-Stochastic Slow (%D) below 80
You can customize the shape and color of the buy signal. Also the ability to turn On/Off indicator SMA 2, SMA 5, SMA 2 cross over SMA 5 plot, SMA 50, SMA 200 and Parabolic SAR.
Average True Range Stop and Reverse(ATRSAR)This indicator is base on Stop and Reverse strategy that can be used as a reference for whether or not the trend is reversed.
This indicator is mainly for the situation that the cryptocurrency usually has a triangular convergence before the trend, and the ATR will fall to a low value. After the break out, a large-scale movement will occur and the ATR will rise rapidly.
In response to this situation, this indicator takes the maximum/minimum value of the past period as the initial value of Stop and Reverse, and uses the rate of change of ATR as the parameter of the approximation.
It is theoretically most of the trending markets can use this indicator as a reference, but must find the parameters that suit the market rhythm.
This indicator mainly refers to the ATRTSS indicator and the MASAR indicator by cI8DH.
Parabolic SAR Strategy with Bactesting RangeStandard Parabolic SAR Strategy with SAR level plotted and backtesting range option.
Trend Lines and MoreMulti-Indicator consisting of several useful indicators in a single package.
TREND LINES
-By default the 20 SMA and 50 SMA are shown.
-Use "MOVING AVERAGE TYPE" to select SMA, EMA, Double-EMA, Triple-EMA, or Hull.
-Use "50 MA TREND COLOR" to have the 50 turn green/red for uptrend/downtrend.
-Use "DAILY SOURCE ONLY" to always show daily averages regardless of timeframe.
-Use "SHOW LONG MA" to also include 100, 150, and 200 moving averages.
-Use "SHOW MARKERS" to show a small colored marker identifying which line is which.
OTHER INDICATORS
-You can show Bollinger Bands and Parabolic SAR.
-You can highlight key reversal times (9:50-10:10 and 14:40-15:00).
-You can show price offset markers, where was the price "n" periods ago.
That last one is useful to show the level of prices which are about to "fall off" the moving average
and be replaced with current price. So for example, if current price is significantly below the
200-days-ago price, you can gauge the difficulty for the 200 MA to start climbing again.






















