Welcome to the Traders Laboratory Forums.
Market Internals Discussion forum on market internals, pit noise/action, and price action to determine the overall strength/weakness of the markets.

Reply
Old 02-01-2009, 02:53 PM   #1

Join Date: Jan 2009
Location: New York
Posts: 6
Ignore this user

Thanks: 2
Thanked 0 Times in 0 Posts

Steenbarger Indicators

Has anyone been able to successfully recreate the indicators used on Brett Steenbarger's site? Indicators include NYSE cumulative TICKS, Money Flow, and other market internals. Here is an example of one I am currently working on:

http://traderfeed.blogspot.com/2009/...-at-muted.html

Despite using the logic written I was unable to recreate the indicator in the timeframe shown in the examples. Thanks for any assistance!
knocks420 is offline  
Reply With Quote
Old 02-01-2009, 06:24 PM   #2

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Steenbarger Indicators

Attached is "my" version of cumulative tick. I say my version since I have changed it somewhat for my specific chart setup and it is specific to minute based bars. I am pretty sure this is not the most optimized way of coding it, but it works for me. Or rather it did, as I am not using it anymore.

From what I understood from is blog, the money flow indicator is virtually the same, but also multiply the cumulative tick values with the volume for each bar, so this should easy to adapt the code. You most likely will have to adjust it for your setups, but hopefully this give you a starting point.

In the attached picture, the middle frame is the cumulative TICK and the bottom one the ROC of it.
Code:
Inputs:	AvgDays(20),
		BarResolution(1),
		UpColor(Green),
		DownColor(Red),
		TrendBars(5),
		MALen(60),
		ShowMA(1),
		ShowDiff(0); 

Vars:	AvgLen(0),
	TodayAvg(0),
	TickMA(0),
	CumuAvg(0),
	TodayTotal(0),
	TICK(0),
	Counter(0),
	Color(Yellow);

AvgLen = AvgDays * (390/BarResolution);
TICK = (High + Low + Close)/3;

If date <> Date[1] then TodayAvg = Average(TICK, AvgLen)[1];

TodayTotal = TodayTotal + (High + Low + Close)/3 - TodayAvg;
TickMA = Average(TodayTotal,MALen);

If ShowMA = 1 then Color = Iff(TodayTotal >= TickMA, UpColor, DownColor);
if ShowMA = 0 then begin
	IF TodayTotal > TodayTotal[TrendBars] then Color = UpColor;
	IF TodayTotal < TodayTotal[TrendBars] then Color = DownColor;
	End;

If ShowDiff = 1 then Plot1(TodayTotal - TodayTotal[TrendBars],"Diff",Color);
if ShowDiff = 0 then Plot2(TodayTotal,"Adjusted TICK", Color);
If ShowMA = 1 then Plot3(TickMA, "TickMA", Yellow);
Attached Thumbnails
Steenbarger Indicators-cumulative-tick.png  
sevensa is offline  
Reply With Quote
The Following 7 Users Say Thank You to sevensa For This Useful Post:
caglebagle (02-02-2009), dandxg (06-12-2009), keithb (03-07-2009), knocks420 (02-02-2009), Soultrader (02-01-2009), thrunner (02-02-2009)
Old 03-16-2009, 04:27 PM   #3

Join Date: Nov 2008
Location: San Jose
Posts: 8
Ignore this user

Thanks: 6
Thanked 10 Times in 3 Posts

Re: Steenbarger Indicators

hi,
I copied and pasted this code into TS 8.3 and compiled it fine.
But when I applied to the chart and it is not showed up.

Any ideas how ?

TF?, symbols?

Thanks
phim9hi3n is offline  
Reply With Quote
Old 04-18-2009, 02:03 AM   #4

Join Date: Dec 2008
Location: San Diego
Posts: 5
Ignore this user

Thanks: 0
Thanked 1 Time in 1 Post

Re: Steenbarger Indicators

All he means by culmative is its current value. Its the same as On Balance Volume or Accumulation/Distribution. It's just a running total of the net.
jficquette is offline  
Reply With Quote
Old 04-18-2009, 02:15 AM   #5

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Steenbarger Indicators

Quote:
Originally Posted by jficquette »
All he means by culmative is its current value. Its the same as On Balance Volume or Accumulation/Distribution. It's just a running total of the net.
Actually, it is not. It is the cummulative value of the differences from the average of the last 20 days and not just the cummulative value of adding current values together.
sevensa is offline  
Reply With Quote
Old 04-18-2009, 11:33 AM   #6

Join Date: Dec 2008
Location: San Diego
Posts: 5
Ignore this user

Thanks: 0
Thanked 1 Time in 1 Post

Re: Steenbarger Indicators

Quote:
Originally Posted by sevensa »
Actually, it is not. It is the cummulative value of the differences from the average of the last 20 days and not just the cummulative value of adding current values together.


Any series can be made to contain only the last N day's. Whether you use just the last N days or let it run continously its the same thing.
jficquette is offline  
Reply With Quote
Old 04-18-2009, 02:20 PM   #7

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Steenbarger Indicators

Quote:
Originally Posted by jficquette »
Any series can be made to contain only the last N day's. Whether you use just the last N days or let it run continously its the same thing.
I didn't say it is the cummulative value over the last 20 days. Please read my post again.

Please also read the explanation again from Steenbarger's blog on how this is calculated. In some of the comments to his blog posts, he explains it in more detail. This is not a simple cumulative value of the current values as you think as with On Balance Volume. It's a cummulative value of the difference from the average.
sevensa is offline  
Reply With Quote
Old 06-12-2009, 04:40 PM   #8

Join Date: Sep 2007
Location: Denver
Posts: 165
Ignore this user

Thanks: 114
Thanked 46 Times in 36 Posts

Re: Steenbarger Indicators

Sevensa,

Upon closer look it appears this works for divergences as well. Did I read that right?
dandxg is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
TTM Indicators for CQG? bathrobe Coding Forum 3 01-03-2011 06:01 AM
Steenbarger, Shull, & Hirschhorn Discuss Peak Performance Electronic Trading MrPaul Trading Psychology 7 12-21-2008 06:14 AM
DayTrader Trade Setups by Brett Steenbarger minoo Technical Analysis 2 10-27-2008 03:09 PM
Review of TraderFeed with Brett Steenbarger brownsfan019 Trading Products and Services 11 04-17-2008 09:24 AM
Enhancing Trader Performance by Brett N. Steenbarger darthtrader Books 15 04-15-2008 08:04 AM

All times are GMT -4. The time now is 11:38 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.