Tom Demark Range Expansion Index (TD-REI)

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Tom Demark Range Expansion Index (TD-REI)

Postby Nikolay.Gekht » Mon Jul 26, 2010 12:32 pm

The Tome Demark Range Expansion Index was described in, "DeMark on Day Trading Options" by T.R. DeMark and T.R. DeMark, Jr.

The indicator is a market-timing oscillator that attempts to overcome problems with exponentially calculated oscillators, such as the MACD, by being arithmetically calculated.

The indicator usually produces values in range of -100/+100. A value +45 or higher indicates overbought conditions and a value -45 or lower indicates oversold conditions. DeMark recommends trading in extreme overbought or oversold conditions indicated by six or more bars above/below the OB/OS level.

Note: As for many other indicators the Internet is filled by dozen variations of the indicator formula. I chosen the VTTrader's implementation of the indicator as a basis for our indicator. The VTTrader formula is:

Code: Select all
HighMom:= H - Ref(H,-2);
LowMom:= L - Ref(L,-2);
TD1:= (H>=Ref(L,-5) OR H>=Ref(L,-6));
TD2:= (Ref(H,-2)>=Ref(C,-7) OR Ref(H,-2)>=Ref(C,-8));
TD3:= (L<=Ref(H,-5) OR L<=Ref(H,-6));
TD4:= (Ref(L,-2)<=Ref(C,-7) OR Ref(L,-2)<=Ref(C,-8));
TD5:= (TD1 OR TD2) AND (TD3 OR TD4);
TD6:= If(TD5,HighMom + LowMom,0);
TD7:= Abs(HighMom) + Abs(LowMom);
TDREI:= 100 * Sum(TD6,Periods) / Sum(TD7,Periods);


TS-REI.png


Download:
TD_REI.lua
(3.12 KiB) Downloaded 1328 times


The indicator was revised and updated
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Tom Demark Range Expansion Index (TD-REI)

Postby bammbamm » Mon Jul 26, 2010 5:28 pm

Nice work.

Just the D-wave left then! ;)
bammbamm
 
Posts: 13
Joined: Tue May 18, 2010 2:19 pm

Re: Tom Demark Range Expansion Index (TD-REI)

Postby Nikolay.Gekht » Tue Jul 27, 2010 10:39 am

I'm looking for the description. The book I have ("The New Science of Technical Analysis") describes the D-wave method too vague. At the moment the best description I have found is here:
http://short-termcapitalmanagement.blog ... ve_04.html and http://www.mail-archive.com/amibroker@y ... 44063.html and the following thread, but, probably it's good enough to start.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Tom Demark Range Expansion Index (TD-REI)

Postby bammbamm » Tue Jul 27, 2010 1:05 pm

If you have access to ninjatrader 6.5, you can obtain a version of it here (this version doesn't calculate up and down simultaneously so you have to load the indicator twice but select one to downwave and other to up):
http://www.ninjatrader.com/support/foru ... 15&page=14

Otherwise, I could either post the code from it here (it's 2500 lines), send you a pm or post a detailed decription. Could be a big job!

Best wishes.
bammbamm
 
Posts: 13
Joined: Tue May 18, 2010 2:19 pm

Re: Tom Demark Range Expansion Index (TD-REI)

Postby Nikolay.Gekht » Tue Jul 27, 2010 3:29 pm

Got it. Thank you for the link!
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Tom Demark Range Expansion Index (TD-REI)

Postby bammbamm » Tue Jul 27, 2010 4:09 pm

I meant to add earlier - Demark's books are quite difficult to read but Jason Perl's book Demark Indicators published by Bloomberg press is much easier.
bammbamm
 
Posts: 13
Joined: Tue May 18, 2010 2:19 pm

Re: Tom Demark Range Expansion Index (TD-REI)

Postby Nikolay.Gekht » Fri Jul 30, 2010 8:35 am

I also found the book with a pretty good description of D-wave, so I plan to start experimenting on the next week.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Tom Demark Range Expansion Index (TD-REI)

Postby DS0167 » Wed Dec 29, 2010 5:27 pm

Hello guys,

After reading the Jason Perl's book and the part of TD-REI, could you please improve this indicator so that we can identify easier the "prospective reversal"...?

For that we need to add the following formula so the indicator point out (by changing color for instance) :

Weakness: TD ReI stays above +40 (or +45) for fewer than six price bars, and then falls back = Expect near-term gains.

Strength: TD ReI stays below -40 (or -45) for fewer than six price bars, and then recovers =
Expect short-term recovery.

Is it possible ?

Thanks in advance for your answer.
Kind regards.
Danielle
DS0167
 
Posts: 86
Joined: Mon Aug 09, 2010 2:22 pm

Re: Tom Demark Range Expansion Index (TD-REI)

Postby Apprentice » Thu Dec 30, 2010 1:43 am

Danielle,
It is possible, but I would wait for an official announcement of the new platform.
Currently you are one of the few users who can use all its capabilities.

Apprentice
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Tom Demark Range Expansion Index (TD-REI)

Postby Jeffreyvnlk » Mon Sep 15, 2014 12:02 am

It is a good one.However could you change the level of Overbought and oversold to 60 according to The new science of Technical Analysis by Demark

Btw I think his book not difficult to read, just reading slow. Otherwise the book by Jason harder to read

Thanks
Jeffreyvnlk
FXCodeBase: Graduate
 
Posts: 302
Joined: Wed Apr 11, 2012 2:17 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 201 guests