Paul,
Struggling with TDST code, still. I started a download of 3.0, and gave up, because I couldnot figure out how to navigate, they have changed the terminologies. So tried 2.0, forgot how to get the MainSymbol to link to the diagram. Hopefully I can work thru these issues in the weekend.
I have a few questions. 1) Is the TDST code is for 2.0 or 3.0 2) There are other labels in your charts TDSetup B, TDsetup S, TD Buy Count and TD Sell Cnt ,and also TD seq buy in bottom pane - in your CISCO chart. How are they done.
I ordered DeMark’s book, hopefully read thru the details, I have read only short snippets and have an intuitive belief in his research of price exhaustion. So can you brief on what Stop loss is calculated. Also, I don’t understand the programming logic behind TDST lines, Even though I used to be a programmer about 15 years ago, I cannot figure out the looping logic on what it is trying to do “If inputlast(i) > Inputlast(i-4) And InputLast(i-1) > InputLast(i-5) _” and it the parameters passed to ( what is parameter passed on ? what is its label/name - is it price).. May be, if you don’t ming and could spend a few mintues when you are free, we can schedule a data and time when I could call you or you could call me at 562/865 2399. Regards, Jay
The code goes into the code block, which is detailed in many of the posts. You can also go to the Blocks website and find many posts about creating your own code blocks. They are a standard feature for 2.0 and 3.0.
You need to know how DeMark’s indicators are generated to understand the simple “if” statements. “If inputlast(i) > Inputlast(i-4)” means that if the close of i is greater than the close of i-4. No parameter is passed. If the statement is true, then it goes on to the next line. Remember the if statement is inside a For loop, where i is the index.
4042008
Kevin (23:52:35) :
Can you clarify the TDST green code. The final line “addtoouput” seems to have an error besides the missing close bracket. I don’t get the same value as your screenshots.
Dim j,k As Integer
Dim m As Integer = 0
Dim n As Integer = 0
Dim p As Integer = 0
Dim ar1(50000), ar2(50000) As Integer
Dim Period As Integer = Me.CodeBlock.ParameterValue
For i As Integer = 4 To InputCount-1
Dim CurDate As Date = InputDate(i)
If Inputlast(i) < Inputlast(i-4) And Inputlast(i-1)<inputlast(i-5) And Inputlast(i-2)<inputlast(i-6)And Inputlast(i-3)<inputlast(i-7) And _
Inputlast(i-4)<inputlast(i- And Inputlast(i-5)<inputlast(i-9)And Inputlast(i-6)<inputlast(i-10)And Inputlast(i-7)<inputlast(i-11)And _
Inputlast(i- >inputlast(i-13)
m = m+1
ar1(i) = m
End If
Next
For j = 4 To InputCount-1
If ar1(j) > 0 And ar1(j) > ar1(j-1)
n = n + 1
ar2(n) = j
End If
Next
Thanks for the update. Incidentally, the final line “addtooutput” does not show the -8)) in the Firefox web browser but it does display correctly in Internet Explorer. Neither browser displays the long “If Inputlast(i)” line correctly. The underscores should not be there.
I did get it working though. Thanks for sharing you hard work. I really do appreciate it.
Kevin
14042008
Bob McCormick (10:27:27) :
Hi Paul
Could you say a few words about the Blocks Code Member part of your site
Thanks
Bob Mc
I’m thinking about adding a members area where I’ll be able to provide code and also give direct help with using Blocks.
It won’t cost much, just enough to justify a small home business.
Paul
18042008
Brian (19:27:13) :
So what’s the password to the blocks code member area? Just downloaded it and signed up for a month after watching the video’s. Way nicer that what I’ve been using even if I have to run it in VMW.
tia/
18042008
Kevin (23:07:51) :
Paul,
I am interested in signing up for help with blocks. The Ask-A-Trainer is okay on Worden but I am interested in what you are doing with your VB programming and learning more about that and RealCode programming. I am trying now to program the DeMark StopLoss as you have done and I have posted to Worden Forum but I would like to be more self sufficient as you are so that I really understand the programming and thus the indicator. Let me know when you launch your service.
I will. I have just set up a web server and will be launching a completely new site in the near future.
I’ll keep you updated.
Paul
22042008
Bdelance (12:25:52) :
Paul,
I stumbled upon your website searching for more information on Demarks Sequence indicators. Let me start by saying I enjoy reading your site daily and want to thank you for your willingness to share your experience and knowledge with the rest of the trading world.
I am a new member to the blocks 3.0 community and I am not very knowledgeable when it comes to the programming language, but I am making some progress. I have been trying to set-up a TD Seq Scan chart like the one posted above for Progress Energy. I have read the dialogue above in regards to the “if” statements. I dont quite understand how to correctly input the looping logic. I know this may read redundant when comparing it to Jay’s inquiry…any more input would be welcome..
I’m trying to fill a nitch in the Block 3.0 world. I can’t wait until they release the backtester because that is my real passion. As for TD Seq, I spent many months trying to figure out the best way to add DeMark’s complicated indicators to Blocks. Unfortunately, Blocks hasn’t implemented a way to quickly share code blocks so I can’t just send it too you.
The good news is that I will be launching a website in the near future that will focus on helping people add many of these indicators to Blocks 3.0. I’m sure a part of it will include helping people, like you, add the very powerful TD Sequential and TD Combo indicators. It will take work on both of our parts, but the payoff will be worth it.
If you’re looking for help with Blocks RealCode or VB.net in general, you can always feel free to drop a post in the Blocks 3.0 General discussion on Worden.Com. While I don’t always have time to answer every question, I try to get as many as I can.
I wrote the RealCode engine and the RealCode Programmers reference as well as many of the systems in the Blocks Trader software. Love the site Paul, looking forward to more posts.
29052008
John Schott (18:11:47) :
I noted a 04/07/08 comment from Kevin about the underscores being incorrect in the code just preceeding.
Blocks has a long line convention where placing an {space}{underscore} at the end of a ling allows the line to continue on the next line in order to accomodate extra long lines of code.
From the code on the preceding entry, only half of the long lines about have the space/underscore convention. Also the final line is never completed, even in the correction that follows.
Could the whole thing be completed with the convention so that it’s all correct?
I need to update the simple code I have posted here. I have been neglecting this page for a while. Thanks for the comment.
Paul
8072008
GerryV (05:33:55) :
Paul,
I joined your MarketTurbulence website. i was wondering when would the TD indicators be available for purchase? I have been reading Demarks books and would really like to paper trade his indicators before I do real trading. Please send me an email and let me know.
This website may include stock and market analysis. Any opinions, ideas, views and statements expressed here are opinion only and are subject to change without notice. Posts on this weblog are for information and entertainment purposes only.
Paul,
Struggling with TDST code, still. I started a download of 3.0, and gave up, because I couldnot figure out how to navigate, they have changed the terminologies. So tried 2.0, forgot how to get the MainSymbol to link to the diagram. Hopefully I can work thru these issues in the weekend.
I have a few questions. 1) Is the TDST code is for 2.0 or 3.0 2) There are other labels in your charts TDSetup B, TDsetup S, TD Buy Count and TD Sell Cnt ,and also TD seq buy in bottom pane - in your CISCO chart. How are they done.
I ordered DeMark’s book, hopefully read thru the details, I have read only short snippets and have an intuitive belief in his research of price exhaustion. So can you brief on what Stop loss is calculated. Also, I don’t understand the programming logic behind TDST lines, Even though I used to be a programmer about 15 years ago, I cannot figure out the looping logic on what it is trying to do “If inputlast(i) > Inputlast(i-4) And InputLast(i-1) > InputLast(i-5) _” and it the parameters passed to ( what is parameter passed on ? what is its label/name - is it price).. May be, if you don’t ming and could spend a few mintues when you are free, we can schedule a data and time when I could call you or you could call me at 562/865 2399. Regards, Jay
The code goes into the code block, which is detailed in many of the posts. You can also go to the Blocks website and find many posts about creating your own code blocks. They are a standard feature for 2.0 and 3.0.
You need to know how DeMark’s indicators are generated to understand the simple “if” statements. “If inputlast(i) > Inputlast(i-4)” means that if the close of i is greater than the close of i-4. No parameter is passed. If the statement is true, then it goes on to the next line. Remember the if statement is inside a For loop, where i is the index.
Can you clarify the TDST green code. The final line “addtoouput” seems to have an error besides the missing close bracket. I don’t get the same value as your screenshots.
Thanks,
Kevin
There was an error in the final line. It should be:
addtooutput(inputdate(ar2(n-(Period-1))-8),inputhigh(ar2(n-(Period-1))-8))
Let me know if you have any other problems.
Here is the whole code.
Dim j,k As Integer
Dim m As Integer = 0
Dim n As Integer = 0
Dim p As Integer = 0
Dim ar1(50000), ar2(50000) As Integer
Dim Period As Integer = Me.CodeBlock.ParameterValue
For i As Integer = 4 To InputCount-1
And Inputlast(i-5)<inputlast(i-9)And Inputlast(i-6)<inputlast(i-10)And Inputlast(i-7)<inputlast(i-11)And _
>inputlast(i-13)
Dim CurDate As Date = InputDate(i)
If Inputlast(i) < Inputlast(i-4) And Inputlast(i-1)<inputlast(i-5) And Inputlast(i-2)<inputlast(i-6)And Inputlast(i-3)<inputlast(i-7) And _
Inputlast(i-4)<inputlast(i-
Inputlast(i-
m = m+1
ar1(i) = m
End If
Next
For j = 4 To InputCount-1
If ar1(j) > 0 And ar1(j) > ar1(j-1)
n = n + 1
ar2(n) = j
End If
Next
addtooutput(inputdate(ar2(n-(Period-1))-8),inputhigh(ar2(n-(Period-1))-8))
Thanks for the update. Incidentally, the final line “addtooutput” does not show the -8)) in the Firefox web browser but it does display correctly in Internet Explorer. Neither browser displays the long “If Inputlast(i)” line correctly. The underscores should not be there.
I did get it working though. Thanks for sharing you hard work. I really do appreciate it.
Kevin
Hi Paul
Could you say a few words about the Blocks Code Member part of your site
Thanks
Bob Mc
Hey Bob,
I’m thinking about adding a members area where I’ll be able to provide code and also give direct help with using Blocks.
It won’t cost much, just enough to justify a small home business.
Paul
So what’s the password to the blocks code member area? Just downloaded it and signed up for a month after watching the video’s. Way nicer that what I’ve been using even if I have to run it in VMW.
tia/
Paul,
I am interested in signing up for help with blocks. The Ask-A-Trainer is okay on Worden but I am interested in what you are doing with your VB programming and learning more about that and RealCode programming. I am trying now to program the DeMark StopLoss as you have done and I have posted to Worden Forum but I would like to be more self sufficient as you are so that I really understand the programming and thus the indicator. Let me know when you launch your service.
Thanks,
Kevin
Kevin,
I will. I have just set up a web server and will be launching a completely new site in the near future.
I’ll keep you updated.
Paul
Paul,
I stumbled upon your website searching for more information on Demarks Sequence indicators. Let me start by saying I enjoy reading your site daily and want to thank you for your willingness to share your experience and knowledge with the rest of the trading world.
I am a new member to the blocks 3.0 community and I am not very knowledgeable when it comes to the programming language, but I am making some progress. I have been trying to set-up a TD Seq Scan chart like the one posted above for Progress Energy. I have read the dialogue above in regards to the “if” statements. I dont quite understand how to correctly input the looping logic. I know this may read redundant when comparing it to Jay’s inquiry…any more input would be welcome..
Thanks for your time…
Bryan
Hey Bryan,
I’m trying to fill a nitch in the Block 3.0 world. I can’t wait until they release the backtester because that is my real passion. As for TD Seq, I spent many months trying to figure out the best way to add DeMark’s complicated indicators to Blocks. Unfortunately, Blocks hasn’t implemented a way to quickly share code blocks so I can’t just send it too you.
The good news is that I will be launching a website in the near future that will focus on helping people add many of these indicators to Blocks 3.0. I’m sure a part of it will include helping people, like you, add the very powerful TD Sequential and TD Combo indicators. It will take work on both of our parts, but the payoff will be worth it.
Keep reading,
Paul
If you’re looking for help with Blocks RealCode or VB.net in general, you can always feel free to drop a post in the Blocks 3.0 General discussion on Worden.Com. While I don’t always have time to answer every question, I try to get as many as I can.
I wrote the RealCode engine and the RealCode Programmers reference as well as many of the systems in the Blocks Trader software. Love the site Paul, looking forward to more posts.
I noted a 04/07/08 comment from Kevin about the underscores being incorrect in the code just preceeding.
Blocks has a long line convention where placing an {space}{underscore} at the end of a ling allows the line to continue on the next line in order to accomodate extra long lines of code.
From the code on the preceding entry, only half of the long lines about have the space/underscore convention. Also the final line is never completed, even in the correction that follows.
Could the whole thing be completed with the convention so that it’s all correct?
Hi John,
I need to update the simple code I have posted here. I have been neglecting this page for a while. Thanks for the comment.
Paul
Paul,
I joined your MarketTurbulence website. i was wondering when would the TD indicators be available for purchase? I have been reading Demarks books and would really like to paper trade his indicators before I do real trading. Please send me an email and let me know.
Thanks,
GerryV