lirre8

TD Sequential Setup and Countdown

17432 lượt xem
1681
Slightly modified version of the Tom Demark Sequential indicator. The setup phase doesn't require a number in the opposite direction to restart the count which means a green 1 can show up on the first candle after a green 9.

The setup phase numbers are shown on top of the candles and the countdown below the candles. An aggressive sell/buy countdown number 13 is displayed as the character 'A' under an arrow.

Phát hành các Ghi chú: Minor code correction
Phát hành các Ghi chú: Added setup trend lines.

Differentiate between imperfect/perfected setup by setting the 9's arrow color to orange/red or lime/green.

Phát hành các Ghi chú: Fix bug when calculating non-perfected buy setup
Phát hành các Ghi chú: Add setting to control the continuous setup count feature. If deselecting it, the script will not start a new setup count if a setup in the opposite direction has not started.
Phát hành các Ghi chú: Implemented countdown cancellation according to the rules:
- A setup appears in the opposite direction.
- Close above the highest high for the current setup (break of TDST)
- Recycle occurs (new setup in the same direction)
Phát hành các Ghi chú: Implement countdown qualifier - the low of countdown bar 13 must be lower (buy) / higher (sell), or equal to the close of countdown bar 8. A postponed countdown bar 13 is marked with a '+'.
Phát hành các Ghi chú: Migrate to version 3 + code cleanup
Phát hành các Ghi chú: Add setting to control the countdown numbers, either "Standard" or "Aggressive". The countdown type that is not chosen will have its 13 countdown marked with either "S" or "A".
Phát hành các Ghi chú: Countdown text color bug fix
Phát hành các Ghi chú: Fix bug when calculating setup perfection ("8 & 9 higher/lower than 6 & 7" should be "8 or 9 higher/lower then 6 & 7")
Phát hành các Ghi chú:
  • Update to version 4
  • Clean up plots for easier use with alerts
Phát hành các Ghi chú: No code changes.

=====================================

If my work gives you value, please consider sending a donation.
BTC: bc1qdm93j99y37qdmzau8m4qrev92wqnywc78jevly
Phát hành các Ghi chú: Donate link: https://donate.lirre.net/
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

Great script for the TD Sequential. Thanks. How would you suggest I modify this back to the original script regarding the setup phase requiring a number in the opposite direction to restart the count?
+9 Phản hồi
mbd1903 mbd1903
Also, is there a way to cancel the countdown if it reverses through the TDST line for that countdown? This rule is per Jason Pearl's book on DeMark indicators
+1 Phản hồi
lirre8 mbd1903
@mbd1903, I have also updated the script to cancel a countdown when the TDST line breaks, a setup appears in the opposite direction and when recycle occurs (new setup in the same direction). I had to make some refactoring of the code for this so please let me know if you notice any bugs.
Phản hồi
lirre8 mbd1903
@mbd1903, Thanks, I'm glad you like it. I just published a new version which adds the possibility to turn off the feature that doesn't require an opposite direction number to start a new setup in the same direction. You'll find it in the settings
+1 Phản hồi
Hello. I'm new to using scripts and would love to try this one out. Could someone explain the steps to use the script in ThinkorSwim? Do I simply copy the code to a .ts file and then upload it? Or do you just copy the code into the script editor? (I tried the latter and it didn't work.) Thanks for any insight.
+3 Phản hồi
jorisw OverLook
@OverLook, This script is written in PineScript, which specifically targets TradingView features. You would have to write a ThinkorSwim script yourself, based on the code here.
+1 Phản hồi
Can you describe the use of having the setup number not requiring a number in the operate number to restart?

I’m only begging to understand TD but feel this is a strong attribute to add onto the method. Cheers!
+2 Phản hồi
lirre8 michaeldouglas1915
@michaeldouglas1915, You can turn this off by deselecting "Continuous setup count" in the input settings
+2 Phản hồi
Good work👌🏼
+1 Phản hồi
Thank you.
+1 Phản hồi