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)
Thanks decs0057! I’ve finally got the numbers to print! Not exactly the way I want it to yet but I think it’s moving in the right direction.
I was wondering whether you could guide me through a scenario wrt to these counts.
From the beginning,
1) There must be a completed setup consisting of 9 consecutive counts, each bar close being lower than the close 4 bars earlier.
2) Upon each completed setup, a countdown of 13 counts is initiated where each close is lower than or equal to the low of 2 bars earlier. These counts however do not need to be consecutive.
3) Following on from (1) and (2), there will be occasions, especially in trending markets where a second setup is completed while a countdown is still in progress. And according to the rules, a countdown is initiated upon the completion of a setup. How would I be able to address the second countdown and possibly a third countdown?
The idea is there though still buggy. Some comments if you like:- Setup
1) Setups are always a 9 consecutive bar count. Countdown always a 13 count, not necessarily consecutive. Recycling has since March 6, 2009 a 22 consecutive bar count (Tom Demark advised the change on Bloomberg).
2) Intersection is no longer used.
3) Your setup for some reason works similar to some I've seen in the public domain which misses a few setups completely...not sure why.
Countdown
1) Your countdown counts to 12...
2) You don't have cancellation rules implemented. ( neither do i!)
This is what I have done with my code. Please take a look. Perhaps we can work on this together if you like but I have to tell you my programming skills suck!
A few things still not sorted out though.
1) Can't get countdown 13 to compare with countdown 8.
2) can't get countdown 8 to compare with countdown 5.
3) Can't include both the buy and sell together as one indicator...some counts don't display after the first days of data and will only appear after a refresh.
4) Can't get a second countdown to commence while the first is incomplete. Every completed setup initiates a countdown regardless of whether there is a countdown in progress or not.
5) TDST line won't extend beyond its setup. Need to find a way to get it to extend as every bar is formed and to stop when certain conditions are fulfilled. (i've removed mine)
I have the rules which are from 1) his books 2)Jason Perl's book on Demark indicators 3) Bloomberg's TDRS<GO> which would be the latest.
I think both of us have gotten the setup portion done. Shall we proceed with the countdown or you would like to have the whole set of rules given to you first. If you prefer the latter, I can only give it to you on Monday. I will have to tye it up for you.
You could work on the TDST Line first if you like. This horizontal line is drawn upon the completion of a setup count.
For a TD Buy Setup, The TDST Line is drawn from the higher of the Highest High of the previous 9 bar and the close of the 10th bar. You need to get this line to extend as new bars are formed. The extension of the TDST Line only stops when 1) a new TD Buy Setup is completed or when ((Close[2]<Close[3]) && (Close[1] > TDST Line) && (Open[0] > Close[1]) && (High[0] > Open[0])).
I can't get the TDST Line to extend beyond the bar where the setup was completed...
For the TD Sell Setup, just do the reverse of the buysetup.
Will pass you the instructions for the perfection test tomorrow. It's 4.15 am now.