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 11-21-2009, 04:47 AM   #2
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Instantaneous TrendLine

Xcellent TAMS !

I've noticed that the blue line and the red line
acts as the price position with a avg W/O divergences

So what more can it brings than reading a chart with price + avg ?

No replies Xpected of course, only observation

aaa
aaa is offline  
Reply With Quote
Old 11-21-2009, 09:36 AM   #3

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

I was hoping someone can give me some clue...
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 11-22-2009, 05:33 AM   #4

shrike's Avatar

Join Date: Jun 2009
Location: fantasy
Posts: 85
Ignore this user

Thanks: 44
Thanked 24 Times in 22 Posts

Re: Instantaneous TrendLine

Hi Tams


maybe you should draw a trendile from points where difference between two lines is high
,i haven't find a right measure of difference but seems me at least two point , i'm searching and making some test
shrike is offline  
Reply With Quote
The Following User Says Thank You to shrike For This Useful Post:
Tams (11-22-2009)
Old 11-22-2009, 06:47 AM   #5

Join Date: May 2008
Location: London
Posts: 44
Ignore this user

Thanks: 26
Thanked 21 Times in 15 Posts

Re: Instantaneous TrendLine

Look at the Afta 2003 powerpoint - pass all the mathematical bits and there are suggestiions on how to trade it
Home

Also look either at his orgiinal book (excerpt here)

Rocket science for traders: digital ... - Google Books

Or his book"Cybernetic analysis for stocks and futures", where he explains the crossover strategy and gives profitability and drawdown analysis. Basically the strategy is to buy at next bar if the trigger line crosses over the trendline, sell short at next bar if trigger crosses under trend line. He tested the strategy on currency futures because of the tendency to trend.

He also describes it in chap 9 of his book Mesa and Trading Market cycles.

An interesting mathematical exercise perhaps - has the advantage of using crossovers, which are easy to trade - BUT whether it provides any substantial benefits compare to other tools e.g. MA is for you to decide for yourselves.

Charlton

Last edited by Charlton; 11-22-2009 at 06:52 AM.
Charlton is offline  
Reply With Quote
The Following 3 Users Say Thank You to Charlton For This Useful Post:
aaa (11-28-2009), devtrend (12-28-2009), Tams (11-22-2009)
Old 11-22-2009, 08:14 AM   #6

shrike's Avatar

Join Date: Jun 2009
Location: fantasy
Posts: 85
Ignore this user

Thanks: 44
Thanked 24 Times in 22 Posts

Re: Instantaneous TrendLine

Hi Charlton

thanks for the links
shrike is offline  
Reply With Quote
Old 11-22-2009, 12:43 PM   #7

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

Quote:
Originally Posted by shrike »
Hi Tams
maybe you should draw a trendile from points where difference between two lines is high
,i haven't find a right measure of difference but seems me at least two point , i'm searching and making some test

that sounds like an idea worthy of further examination.

if you can draw a mock up to illustrate your idea,
I can whip up some test codes for you.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 11-22-2009, 03:35 PM   #8

shrike's Avatar

Join Date: Jun 2009
Location: fantasy
Posts: 85
Ignore this user

Thanks: 44
Thanked 24 Times in 22 Posts

Re: Instantaneous TrendLine

Hi Tams

i've only gave a quick look and first impression how to use it ,considering we are speaking about a trendline , is to wait when there are two cross , maybe better with a big difference , wait if trendline is broken and take position ,only, when price come back on trendline
Attached Thumbnails
Instantaneous TrendLine-immagine.png  
shrike 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 08:14 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.