Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Instantaneous TrendLine Details »»
Instantaneous TrendLine
Platform: EasyLanguage, by Tams Tams is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: Tradestation Rating: (1 votes - 5.00 average)
Released: 11-19-2009 Last Update: Never Installs: 11
 
No support by the author.

Instantaneous TrendLine
by John Ehlers


Quote:
Originally Posted by John Ehlers
Van: John Ehlers <john@xxxxxxxxxxxxxxxx>
Aan: john@xxxxxxxxxxxxxxxx <john@xxxxxxxxxxxxxxxx>
Onderwerp: Instantaneous Trendline
Datum: zondag 25 oktober 1998 23:19

To MESA Users Group:

Here is a set of new indicators that you can program yourselves. The
first of these indicators I call an INSTANTANEOUS TRENDLINE. It works
because it completely removes the dominant cycle from a smoothing average.
For the mathematically inclined, the Fourier Transform of a rectangular
window (formed by a simiple average) is a Sin(X)/X distribution. The
objective is to place the first null of this distribution exactly at the
dominant cycle. For the intuitively inclined, what we are doing is taking
a simple average over the full dominant cycle period. In such an average,
there are as many sample points above the midpoint as below the midpoint
with the result that the sum of all these sample points is zero.

OK, so all we have to do to get an Instantaneous Trendline is to take a
simple average whose length is exactly the period of the dominant cycle.
For those of you who have tradestation and MESA96, you just insert the dc
variable for the length of the simple moving average. For those of you who
have MetaStock or other toolbox packages, you just have to estimate the
length of the dominant cycle and insert that estimate as your moving
average period. Of course, this estimate is fixed across your entire
screen, but the dominant cycle length can be varying. So watch out for
that problem.

The next indicator is created by taking a moving average over half the
period of a dominant cycle. In this case, the amplitude of the dominant
cycle is attenuated by exactly 2/PI. Our objective is to restore the full
amplitude of the cyclic portion. So we take this latest moving average,
subtract the "Instantaneous Trendline", multiple the difference by PI/2
(1.57 approximately), and then add the Instantaneous trendline back. Since
the lag of a moving average is about half the moving average window length,
this modified half dominant cycle moving average will still lag the realy
cyclic swing by a quarter cycle.

Now, when we look at these two moving averages, we can make two
assessments. First, we now solve the age-old problem of what is the
trendline. We have create an adaptive trendline. Secondly, we can see the
cyclic swing relative to this trendline so that we can assess the amplitude
of the cyclic movement. If this cyclic amplitude is not several times that
average daily bar range, then getting an entry and exit for a profitable
cyclic move becomes a crapshoot. In other words, the signal to noise ratio
is so low that even though we have identified a good cycle, it is not large
enough to trade profitably without relying on an intraday fill.

Good Trading!!!

John





Note:
This indicator was written in EasyLanguage.
Please refer to your users manual for importation instructions.



Your comments and rating of this indicator is appreciated.

Download Now

File Type: txt Instantaneous TrendLine.txt (5.2 KB, 307 views)

Screenshots

Instantaneous TrendLine-instantaneous-trendline.png  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
Adaptive CCI Tams Trading Indicators 8 10:26 AM 03-19-2010
Fourier Transform Tams Trading Indicators 3 08:11 AM 07-22-2009
Fisher Transform Tams Trading Indicators 3 11:17 PM 07-27-2009
Corona Charts vegas_trader Trading Indicators 7 08:06 PM 01-28-2010
The Following 11 Users Say Thank You to Tams For This Useful Post:
aaa (11-21-2009), addvalue (12-26-2009), devtrend (12-28-2009), Gulam (11-24-2009), hegh (08-06-2010), niknik (12-17-2009), r4bb1t (09-06-2011), shrike (11-20-2009), TIKITRADER (11-19-2009), Wallan1 (12-14-2009)

Comments
Old 08-06-2010, 02:41 PM   #42

hegh's Avatar

Join Date: Nov 2008
Location: paris
Posts: 14
Ignore this user

Thanks: 1
Thanked 2 Times in 1 Post

Re: Instantaneous TrendLine

Here YM (Future Emin) in 5 minutes.
Can you compare the values?

thank you
Attached Thumbnails
Instantaneous TrendLine-ym-09-10-06_08_2010-5-min  
hegh is offline  
Reply With Quote
Old 08-06-2010, 02:43 PM   #43

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Instantaneous TrendLine

.......... looks pretty close. ;-)
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 08-06-2010, 03:54 PM   #44

hegh's Avatar

Join Date: Nov 2008
Location: paris
Posts: 14
Ignore this user

Thanks: 1
Thanked 2 Times in 1 Post

Re: Instantaneous TrendLine

here is InstantaneousTrendLine for Ninja Trader.

Thanks Tams.

have fun.

adrien
Attached Files
File Type: zip InstantaneousTrendLine.zip (2.6 KB, 31 views)

Last edited by hegh; 08-06-2010 at 04:41 PM.
hegh is offline  
Reply With Quote
The Following 2 Users Say Thank You to hegh For This Useful Post:
primoto (08-08-2010), Tams (08-06-2010)
Old 09-06-2011, 11:21 PM   #45

Join Date: Mar 2009
Posts: 27
Ignore this user

Thanks: 8
Thanked 5 Times in 5 Posts

Re: Instantaneous TrendLine

i've noticed that there are two versions of Instantaneous TrendLine. both are came from John Ehlers.
another one can adjust alpha factor as you see below blog.

trading notes: The deep relationship between Instantaneous Trendline and Cyber Cycle

is this version self-adjusting the alpha factor depend on market cycle?
r4bb1t is offline  
Reply With Quote

Reply

Tags
ehlers, moving average, stochastic, trend, zero lag

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trendline (EasyLanguage) Tams Coding Forum 43 07-09-2011 12:36 AM
GBP/USD Trendline Breakout DannyBly Forex Trading Laboratory 3 07-06-2008 09:13 AM
Trendline methods waveslider Technical Analysis 0 06-26-2007 09:13 PM
Russell 2000 (IWM) Trendline Test MrPaul Technical Analysis 0 03-25-2007 12:53 PM
The Downsloping Trendline On The YM Bfbusa Technical Analysis 0 02-06-2007 11:54 PM

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