Best Parabolic SAR Study and Strategy

Dilihat 2181 kali
Custom built Parabolic Stop and Reversal ( SAR )
Produces more responsive results.
Also included is an ATR based SAR which better indicates trend.
Long and short stops are marked on the chart and can be found in the style tab.
PSAR source is variable and is shown on the chart.
Trading source is variable, this is what is used to determine a change in direction against the calculate PSAR and for stops/reversals.
Access is open for now so long as I am getting constructive feedback. Thanks for trying it out!
Catatan Pelepasan: A few bug fixes and improved Settings interface.
ATR based SAR is a separate strategy than PSAR.
They are not combined buy/sell. It's one or the other but both are visible.
Catatan Pelepasan: Few more fixes.
Allow to remove date limitation. A date limit was placed so as not to exceed order limit. This is going to cause a problem as the calendar moves forward, so added the option to remove it.
In a future version I will eliminate date restrictions entirely.
Catatan Pelepasan: Updated
- eliminating time bound and replacing with max_bars_back
- enhanced the psar equation

I encourage you to compare this with the built in PSAR Strategy.
Trading % is hurt by low volume chop but overall profitable with the right settings.
I shared in the settings dialog where you should begin the tuning (the default is set to my liking and time frame).
My recommendations on how to tune. Set the Start to the lowest level. Set the Maximum to a reasonably high level (where it won't be reached).
Tune the increment, then loop back and tune the Maximum and then finally the Start. So the steps are.
1. Start to minimum
2. Maximum to 1.0 or some level not likely reached.
3. Tune increment.
4. Tune Maximum
5. Tune Start.
6. A final pass on increment.

Catatan Pelepasan: With some feedback
- added visuals on the chart to help understand the various markers
- added buy/sell labels
If you set trading on you will get the TV trade execution. TV executes 1 candle after the trigger in history, going forward it will also wait for 1 bar after trigger unless "recalc on tick" in properties is turned on.
Catatan Pelepasan: Significant update.
This is a self tuning PSAR .
The PSAR is best used in small time frame.
The Price Tracker is the line that is used to determine cross over, and if using visually, should be used for setting reversal stops.
A little bit about how it works.
It is set to use the ATR to determine the increments (increment being the traditional PSAR setting), and to determine the maximum increment.
The one adjustment left open is what tunes the maximum increment. The higher the value the sooner the maximum is reached.
In traditional PSAR once the maxium increment is reached it becomes constant, not so in this model. Once the maximum is reached it will continue to vary but on it's own and at the maximum possible.

If you used the one I am replacing here - sorry, it's not coming back. I published the original as a strategy. In order to replace it, this too is a strategy but it will not back test or simulate orders, there are simple markers on the chart for Buy and Sell.

I hope you find it profitable, my personal experience is that price action is king for day trading. Feedback is always welcome.
Catatan Pelepasan: Made one update. I coded this to WTI, there was a scaling issue with other instruments.
+ With ES index use multiples of 10 (example shown is at 50)
+ With WTI, the default of 1 is used, use multiples of 1 to adjust sensitivity
+ With Currency use multiples of 0.01

I will look to make this easier, but this should address the problems reported.
Catatan Pelepasan: Updated to automate the scaling problem with different instruments.
Sensitivity is simpler and can be set to suit your trading style.

For those looking for the older PSAR, I will refresh it and post it as well, later.
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan


This is tuned for 2min only, I suggest tuning ATR then tuning PSAR settings for different time frames.
+2 Balas
JohnBaron JohnBaron
@JohnBaron, i showed an overlay of standard SAR so the difference is visible
+1 Balas
Is the source code of the script available for review?
+1 Balas
JohnBaron xuinkrbin
@xuinkrbin, i have not looked at it in a while - but not right now.
xuinkrbin JohnBaron
@JohnBaron, what needs to be done to change its availability?
I also recommend going into properties and setting update at tick level to get real time effect.
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Rujuk rakan Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar