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)
發布通知: 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.
發布通知: Cleaned up a few things
發布通知: 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
發布通知: 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%!
發布通知: 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
發布通知: 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
發布通知: Cleanup on input numbers and SMA start point as well as exit conditionals
發布通知: Fix default input values and strategy defaults, SAR exit order on strategy, etc.
發布通知: Default change
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

Great code!
回覆
Would you please post an instruction on how to interpret and use your indicator? That would be awesome and help us a lot in trading. Hope you're safe during the epidemic.
回覆