Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
yes you do but only for the first setup. if a second successive setup starts, there is no need for the price flip. another thing is this is only for the "buy". the sell is the reverse.
1) I made an error on line 94: Close[0] should read Open[0] in your code. Likewise line 99. same thing.
2) the calculation of the tdst line should take into account the close of the 10 bar too (i.e. the close of the bar before the buy setup 1st count).
3) can you increase the width of the tdst line to 2?
4) your tdst line is not redrawn after 18 consecutive setup counts...needs to be redrawn after every completed setup ( i.e. after every setup 9 count).
5) if you would like to make the tdst line more dynamic, you could have the line drawn as a dashed line tp begin with upon completion of a setup and when the "cancelDraw" condition becomes true, the line changes from a dashed line to a solid line.
If a setup is not completed, it is removed and you will need a price flip to commence a new setup...you already have it because the setup is not completed...
I've attached 2 charts for your comparison. You can see for my tdst line uses the close of the 10th bar as the tdst reference where as your uses the high of the 1st setup count as the reference.
Small matter but I'll let you decide.
do you think you could re-code to have the tdstline from the bar its value was derived? It wouldn't look so awkward like it was arbitrarily drawn. At the same time, to resize the length of the old tdst line to just before the new completed setup commenced.
This is what the tdst lines look like on the chart. Technically the "old" tdst line should be part of the new setup...
re: your latest td sequential code,
1) countdown is not working. at best, it can do one sell countdown and one buy countdown - at the start of the data. so if i had 15 days of data, the is only one countdown on either side at 15 days ago and nothing else after that.
2) intersection is definitely not used anymore. Mr Demark doesnot even refer to it anymore.
3) i recommend you change the setups to a 9 count and use another counter in the background for recycling.
4) sell tdst line stops extending when a buy setup is complete. should not happen. should continue until a new sell setup is completed or canceldraw conditions are met.
5) tdst sameside lines overlapping is not a good idea if you plan to automate your trading. may need to code a redraw if a same side setup is completed
6) canceldraw is stopping one bar earlier for both the tdstbuy and tdstsell lines. you can decide whether you want to adjust it or not. take a look at the attached chart.
7) just want to show you that your code is missing some setups. a is setups i am getting with my code and b is what you are getting.