Thursday, October 23, 2008

I don't know how many of you guys follow Brett Steenbarger's blog. But he has been talking about this adjusted cumulative TICK indicator. I finally took the time to attempt to reproduce that. The graphs looks similar, but still off by a tiny bit.

Here's the code:

def previousdaysaverage = Average(((high("$tick") + low("$tick") + close("$tick")) / 3), 395);

plot data = TotalSum(((high("$tick") + low("$tick") + close("$tick")) / 3)) / 100 - previousdaysaverage;











Got this graph from markettells.com

Wednesday, August 20, 2008

Check out PennyStocker's blog for loads of TOS thinkscript indicators

http://hankachilles.spaces.live.com/

I have been using the TTM squeeze indicator myself.

Wednesday, December 12, 2007

Here's a simple script to see the VWAP (Volume weighted average price). To see a good approximation, you need to switch to the one minute chart since TOS doesn't provide tick data.

plot Data = TotalSum(Volume * Close) / TotalSum(Volume);

Thursday, November 29, 2007

Market internals

For those of you who follow Peter Reznicek on Shadowtrader broadcast, you should know how to setup the market internals. In case you don't, here's the video to do that.

Before thinkscript was available on the TOS platform, you can only see the Advance/Decline line seperately and try to guess what the net number is. Now, you can just do a very simple script to get the net A/D line to show up on the graph.

For the NYSE AD line, pull up a graph of $ADVN. Edit the studies and create a new study. In the text area, put this in:

Plot AdvDecLine = Close - Close("$DECN");

For the Nasdaq AD line, pull up a graph of $ADVN/Q. Edit the studies and create a new study. In the text area, put this in:

Plot AdvDecLine = Close - Close("$DECN/Q");