The Instantaneous Trendline was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pg 24) and this is an updated version of his original Instantaneous Trendline that works much better in my opinion. Buy when the indicator line turns green and sell when it turns red.
Let me know what other scripts you would like to see me publish or if you want something custom done!