What’s New

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

Cycle Point Moving Average

Posted by on May 19, 2009 in Indicator, Oscillator, Support and Resistance | 13 comments

Cycle Point Moving Average

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. This very basic script plots a close approximation of the cycle point moving average. You enter in the required price reversal for a cycle turn, a moving average period, and it does the rest courtesy of the TOS zigZag function. I had coded this script some time ago and found nothing particularly compelling about it but decided to use it to illustrate...

read more