What’s New

Trade Zones

Posted by on Jun 30, 2009 in Indicator, Support and Resistance | 16 comments

Trade Zones

One of our forum members asked today for a means to programatically draw vertical lines in TOS. Unfortunately, yet another monthly build has gone by and still no means to draw vertical lines from within thinkScript. Yes there is a new handy drawing tool but I have no desire to spend time redrawing the same lines/boxes on a chart day after day. I decided to take matters into my own hands and coax a workable solution out of thinkScript. Trade Zones just puts up either a red or green box around any time you designate in the study properties....

read more

ThinkScripter AutoFibLines Explained – Conclusion

Posted by on Jun 7, 2009 in Tutorial | 0 comments

In part one I discussed the use of the ZigZag function as the engine behind ThinkScripter AutoFibLines.* In part two, the methodology for saving the resulting swing highs and lows using the rec variable was added. At this point, every bar now “knows” the most recent swing high and low and can do the simple math required to calculate Fibonacci ratios: def deltaHL = prevHigh - prevLow; def ret1 = deltaHL * fib1; def ret2 = deltaHL * fib2; ... First we find the difference between the swing high and low and then calculate the various...

read more

ThinkScripter AutoFibLines Code Explained – Part 2

Posted by on Jun 2, 2009 in Tutorial | 1 comment

Recall from part one that the core engine driving the ThinkScripter AutoFibLines script is TOS’ built in ZigZagSign() function. I chose to harness the power of this function rather than re-invent the wheel to capture the swing highs and lows needed to draw Fibonacci lines. With this piece of the code complete, the script enables any bar to determine if it is a swing high or swing low and set an appropriate flag if so. At this point I should explain an important nuance here. If you have ever watched the TOS ZigZag in action you will have...

read more

ThinkScripter AutoFibLines Code Explained – Part 1

Posted by on May 29, 2009 in Tutorial | 0 comments

UPDATE : This script has been rendered inoperable as of 12 Dec 09 due to changes in the TOS ZigZag function. I will leave it posted as a reference for coders to examine the script methodology. I’ve recently had quite a few email exchanges with forum members about the AutoFibLines code and what is going on behind the curtains. The easiest way to explain the machinery is to use the code itself so I am releasing it in the public area of the ThinkScripter Forum today. If you haven’t had a chance to stop by the forum please head on...

read more

To Fallen Comrades

Posted by on May 22, 2009 in Uncategorized | 0 comments

What does Memorial Day mean to you? Another three day weekend? A car race? A chance to catch up on some much needed scripting? I’ll be the first to admit that I have taken this holiday for granted more often than not. As I unpacked the mementos and photos today that I accumulated over the last twenty years, I became became keenly aware of the number of friends and fellow aviators who have died in the service of our country. Military aviation is dangerous; Naval Aviation particularly so. Not a year has gone by during my time on active...

read more