
Here is a Thinkscript indicator that plots a dot if the NYSE TICK for the current chart timeframe breaches a threshold value. Compare the chart below to see what I mean:

I plotted the Tick Fade indicator on both charts, so the bottom chart is comparing the TICK to itself. With this indicator, if you set up a chart for 5 minutes, then you will get a paintbar if the high NYSE tick on a 5 min bar is over the threshold value (default 1000). Similar for a low tick. The timeframes are linked in this study, so the primary timeframe for the chart will dictate the corresponding timeframe for “high”, “low” etc. for the TICK reference.
I call this the Tick Fade indicator because I want to fade an extreme move in the TICK, as an indication that too many stocks are all moving in the same direction. If I’m in a trade, and I get a high TICK reading in my direction, I want to take some profit, as this is likely to be close to the final extreme of the move. In Mastering the Trade, John Carter uses extreme TICK readings that are adverse to his position as a signal to get out, which is not a fade, but an anticipation of more strength to come. Richard at Move the Markets has a lot of good articles about the TICK and its use. Many different strategies, but now you know how to use the TICK info without having to keep a seperate chart of the TICK open on your layout.
Here is the code:
# Tick Fade Indicator
# By Prospectus @ http://readtheprospectus.wordpress.com
#
# This indicator paints a dot if the NYSE tick for the
# current chart timeperiod breaches a threshold value.
#
def na=double.nan;
#
# Define how you want the value plotted. I chose 30% of
# bar range, plotted that distance above the high/low:
#
def range = high - low;
def plotter=range*0.3;
#
# Input the threshold values you are watching:
#
Input uThreshold=1000;
Input lThreshold=-1000;
#
# Now reference the high / low of corresponding bar
# for the NYSE tick:
#
def hi = high("$TICK");
def lo = low("$TICK");
#
# Define the plots:
#
plot lowtick=if lo<=lThreshold then low-plotter else na;
plot hightick=if hi>=uThreshold then high+plotter else na;
#
# Formatting:
#
lowtick.setdefaultcolor(color.yellow);
lowtick.setstyle(curve.points);
lowtick.setlineweight(4);
hightick.setdefaultcolor(color.yellow);
hightick.setstyle(curve.points);
hightick.setlineweight(4);
Tags: reference_symbol, Thinkscript, TICK, tick_fade
February 11, 2009 at 4:32 pm
Love what you are doing ovah here.
February 11, 2009 at 11:46 pm
Nice work and thanks for the HT on Twitter.
Just wish ToS had cheaper stock commissions so I could use their software and your scripts!
Still haven’t forgotten about sending you an email on trading ideas, I’ll get to it eventually.
February 12, 2009 at 8:48 am
Nice work! Be sure to post about it when you put up a tip jar for these codes because I owe you a beer for this one.
Cheers,
Jack
February 14, 2009 at 7:49 am
Thanks for the scripts. Have you seen the ThinkScripter site? He’s doing a lot of the same stuff: http://thinkscripter.wordpress.com/
February 14, 2009 at 10:07 am
@RobInMD: Glad you think they are useful. I hadn’t seen Thinkscripter’s site before. I’ll add it to my links.
February 15, 2009 at 12:51 pm
thanks for this, its a great tool! quick question, is there any chance to code the dots on the chart for high tick and low tick (i.e. red/green)?
February 15, 2009 at 5:29 pm
@TK: Yes, it’s very easy to change the colors. Just replace the formatting code with this (changes in bold):
#
# Formatting:
#
lowtick.setdefaultcolor(color.red);
lowtick.setstyle(curve.points);
lowtick.setlineweight(4);
hightick.setdefaultcolor(color.green);
hightick.setstyle(curve.points);
hightick.setlineweight(4);
February 16, 2009 at 9:10 am
Thanks Prospectus,
That worked great!
March 12, 2009 at 2:12 am
I just finished building a similar tick indicator but I designed mine to display the TICK behind price. If you want, check it out at
http://tosindicators.blogspot.com/
March 16, 2009 at 10:04 am
Thanks, Curtis. Always nice to find other Swimmers and Scripters out there!
April 16, 2009 at 10:28 am
Its a great indicator I just wished it worked on tk charts as it only plots on time charts thanks for everything you do.
April 22, 2009 at 4:26 pm
AI,
I wish it worked on tick charts too. Maybe in a future ToS release…
May 17, 2009 at 11:21 pm
Thanks for access to your work. Seems I am getting an error with this line “def range = high – low;” I copied and pasted and made no changes. Range seems to be throwing it off. Any suggestions?
May 18, 2009 at 4:50 am
Freaking WordPress keeps doing that to me. It changed the “-” sign to some fancy hyphen ASCII character, and then Thinkscript pukes on itself when it tries to compile the script. Delete the “-” and retype a minus sign from your keyboard and it should fix it. I also changed the source code, so it should copy and paste fine now.