SwiggitySwerve

TD SAR-Quential

First version of using the TD Sequential system in tandem with the Lucid SAR developed by Casey Bowman & Co. and used by many (Credits in the indicator code)
Catatan Pelepasan: Upgraded with options to have enter/exit maximum points on candle closes
Sadly the "Take Profit" points are not working, either there's some Pine Script syntax that I'm not aware of that lets you close percentages of your position (I'm using qty_percent in strategy.exit()) or it's just broken and I can't exactly prove it.
Catatan Pelepasan: Cleaned up a few things
Catatan Pelepasan: Fixed all the Take Profit points to work as expected, this is designed to be offset by a minimal amount for placing limit orders to avoid taker fees

There are some conditions that have exits and entries on the same candle and I'm still working to figure out if those are correct according to the system itself.

For now it's 95% polished for the base functionality
Catatan Pelepasan: Small fix on the SAR Exit conditions, combined them because if they aren't used this way then the SAR can flip but the exit point can be missed
It's a small detail of calculation but it improved some of my results up to +50%!
Catatan Pelepasan: Features Added:
  • Ability to enable/disable longs or shorts
  • SMA Threshold to plot if the current trend is above or below to signal a trend towards longs or shorts
Catatan Pelepasan: Fix some weird issue when only enabling just short or long that would stop the order chain from continuing past the first dozen or so which was throwing off results
Catatan Pelepasan: Cleanup on input numbers and SMA start point as well as exit conditionals
Catatan Pelepasan: Fix default input values and strategy defaults, SAR exit order on strategy, etc.
Catatan Pelepasan: Default change
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Rumah. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?