NexusFi: Find Your Edge


Home Menu

 





How can I get this counter to work properly - TD Sequential


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kaywai with 33 posts (1 thanks)
    2. looks_two decs0057 with 21 posts (2 thanks)
    3. looks_3 cory with 2 posts (0 thanks)
    4. looks_4 esam_jir with 1 posts (1 thanks)
    1. trending_up 51,799 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 56 posts
    2. attach_file 37 attachments




 
Search this Thread

How can I get this counter to work properly - TD Sequential

  #41 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

1) for a buy countdown, a count is registered if Close[0] <= Low[2]. There are a total of 13 printed counts in a countdown (this excludes the counts where "+" is used) and they do not have to be consecutive. There are 2 triggers you need to be aware of for a countdown:-
a) for an 8th count to be recorded, the low of that bar must be lower than or equal the 5th count. If this does not happen, the '8' is substituted with a '+' until the condition is true and an 8 can be printed. This is in addition to the criteria of Close[0] <= Low[2].
b) for the 13th count, you can substitute the "close" of that bar with the "open" of that bar when comparing Close[0] <= Low[2]. The Low of the 13th count also needs to be lower than or equal to the close of the 8th count. If this does not happen, the '13' is substituted with a '+' until the condition is true and an 13 can be printed.

2) Every completed setup initiates a countdown. So if you have 1 completed, one countdown is about to or has begun. If you have 2 completed setups, and 1 countdown which is still in progress, this countdown will continue counting until it reaches '13' or until it is cancelled. A 2nd countdown is initiated after the completion of the 2nd setup. So you will have 2 countdowns running together but with different counts. There have been occassions where the later countdown completes before the 1st countdown. The most number of countdowns I have seen running at the same time is 5...

I hope this is clear. Please feel free to ask if you need clarification or if you would like to discuss the indicator.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
 
  #42 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Another suggestion since there are quite a few different type of counts working at the same time...have different colors for setups and countdowns AND for buy setups, place the counts below the bars and for sell setups, place the counts above the bars...

Reply With Quote
  #43 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25


Version with Perfection Test and Risk Level.
I hope Setup and Countdown are now correct

Attached Files
Elite Membership required to download: TDSequential.zip
Reply With Quote
Thanked by:
  #44 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

decs0057, the counts seem correct though you seem to have a display issue with the countdowns and to a lesser extent the setups (please see chart a & b). could you have display look like chart c? (fyi, chart c is only buy setup & buy countdown)

If you noticed from chart a, there were 2 completed setups but only 1 countdown...we need to have a second countdown to go with the second completed setup even though the first countdown is still counting.

Attached Thumbnails
Click image for larger version

Name:	a.jpg
Views:	249
Size:	95.2 KB
ID:	9850   Click image for larger version

Name:	b.jpg
Views:	257
Size:	69.8 KB
ID:	9851   Click image for larger version

Name:	c.jpg
Views:	234
Size:	69.6 KB
ID:	9852  
Reply With Quote
  #45 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

decs0057, here is an example of what we are trying to achieve (attached chart).
The chart starts with a buy setup followed by a buy countdown with a deferred 13 (note the "+").

This is followed by a second buy setup and second buy countdown (nothing deferred here). Note a third buy setup commenced and completed while the second countdown was still in progress. See the red number after the "13" of the second buy countdown? It is a "3". This is because another countdown had commenced, as a result of the new buy setup being completed. So the "1" and "2" were being counted in the background to avoid cluttering up the screen.

The third buy countdown also has a deferred "8". The green arrows on the buy setup "9"s are the perfection arrow.
The green dashed and solid lines are the tdst line - the difference between the 2 is the condition that you had already programmed. Also note that the green dashed lines stopped or were redrawn upon the completion of a setup in the similar direction.

Lastly, the purple lines - dashed and solid - are the td risk level lines. The solid ones are a result of the condition mentioned above. Note the risk level lines extend until 1) the condition is fulfilled or a setup in the opposite direction is completed.

Attached Thumbnails
Click image for larger version

Name:	example.gif
Views:	238
Size:	85.1 KB
ID:	9861  
Reply With Quote
  #46 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25

second countdown for ^NKY was canceled on 06/10/09 (bar below TDSTLine, see log output window) the counts are removed from chart

Reply With Quote
  #47 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

decs0057, take a look. pretty similar. the two charts are using the same data so they should be identical.

what are we missing?

1) the risk level for the 2nd countdown.
2) how do you differentiate your risk level and tdst lines? as you can see, not all of them are solid lines.
3) i think i made a mistake. each setup must be preceded by a price flip...sorry for that mistake. so theoretically your last setup on your chart should not be there.
4) looks like you are pretty much done apart from some final touches for the countdown!

Attached Thumbnails
Click image for larger version

Name:	^DXY  6_10_2009 - 3_17_2010 (Daily).jpg
Views:	223
Size:	112.2 KB
ID:	9869   Click image for larger version

Name:	bloomberg.gif
Views:	182
Size:	53.7 KB
ID:	9870  
Attached Files
Elite Membership required to download: ^dxy.txt
Reply With Quote
  #48 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

recycling next?

used the same data i provided you a short while ago. see the attached charts and compare it with NT chart.

From the Bloomberg charts, there is an "R" on February 21, 2008 and a buy setup "7".
Another thing is that there are actually 25 consecutive setup counts while NT produced only 18 consecutive setup counts. The NT setup count should have begun 5 bars earlier, just after the price flip. Maybe you need to take a look at your code. Could be a result of the wrong advice i gave you...

Attached Thumbnails
Click image for larger version

Name:	fullsetupcount and recycling.gif
Views:	183
Size:	50.0 KB
ID:	9874   Click image for larger version

Name:	normalsetupcountsrecycling.gif
Views:	205
Size:	58.1 KB
ID:	9875   Click image for larger version

Name:	^DXY  10_1_2007 - 3_28_2008 (Daily).jpg
Views:	205
Size:	87.1 KB
ID:	9876  
Reply With Quote
  #49 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25

in bloomberg chart only 1 '+' occurs for countdown at Aug 20. The low of 5th bar on Aug 4 was 77.5

This is your definition for countdown
a) for an 8th count to be recorded, the low of that bar must be lower than or equal the 5th count. If this does not happen, the '8' is substituted with a '+' until the condition is true and an 8 can be printed. This is in addition to the criteria of Close[0] <= Low[2].

In our case the first low < low 5th bar was on Sep 09 therefore we have 4 times '+' for countdown

What is correct ?

Reply With Quote
  #50 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25


On Nov 5, i have '+' after countdown 12 (low is less low 8th countdown bar Oct 14). Bloomberg counts 13

your note:
b) for the 13th count, you can substitute the "close" of that bar with the "open" of that bar when comparing Close[0] <= Low[2]. The Low of the 13th count also needs to be lower than or equal to the close of the 8th count. If this does not happen, the '13' is substituted with a '+' until the condition is true and an 13 can be printed.

Reply With Quote




Last Updated on December 8, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts