NexusFi: Find Your Edge


Home Menu

 





Recreate "Precision Divergence Finder Indicator"?


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one tdaman with 5 posts (0 thanks)
    2. looks_two gordo with 4 posts (9 thanks)
    3. looks_3 wccktrader with 4 posts (3 thanks)
    4. looks_4 Fat Tails with 2 posts (10 thanks)
      Best Posters
    1. looks_one Fat Tails with 5 thanks per post
    2. looks_two TheWizard with 3 thanks per post
    3. looks_3 gordo with 2.3 thanks per post
    4. looks_4 wccktrader with 0.8 thanks per post
    1. trending_up 24,993 views
    2. thumb_up 32 thanks given
    3. group 11 followers
    1. forum 28 posts
    2. attach_file 3 attachments




 
Search this Thread

Recreate "Precision Divergence Finder Indicator"?

  #21 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


gordo View Post
I looked at these sites and did a Google search on James Sibbet and Demand Index. The best I could do was find some code developed by eSignal and some in Trader's Laboratory.

I was unable to find any in Ninja. More interesting, I could not find any of James' original work. I did, however, find this same quote in several places:



The Demand Index, developed by James Sibbet, combines price and volume in such a way that it is often a leading indicator of price change. The Demand Index calculations are too complex, however, for this text. The calculations require 21-column accounting paper to calculate manually.
  • There are six "rules" to the Demand Index:
  • A divergence between the Demand Index and the price trend suggests an approaching weakness in price.
  • One more rally to new highs usually follows an extreme peak in the Demand Index (the Index is performing as a leading indicator).
  • Higher prices with a lower Demand Index peak usually coincides with an important top (the Index is performing as a coincidental indicator).
  • The Demand Index penetrates the level of zero indicating a change in trend (the Index is performing as a lagging indicator).
  • When the Demand Index stays near the level of zero for any period of time, a weak price movement that will not last long is indicated.
  • A large long-term divergence between prices and the Demand Index indicates a major top or bottom.
The reason I think everyone is quoting each other is they use the same line:

The Demand Index calculations are too complex, however, for this text. The calculations require 21-column accounting paper to calculate manually.

I'm not sure, but can you even buy 21-column accounting paper anymore?

So although I have this code in Language 'X', I am not sure when I get done moving it to Ninja if I have the right logic. Code isn't worth much if the logic is wrong from the get go.

Anybody have any thoughts on where to find James Sibbet's original logic?

Gordo

Hi Gordo,

As you mentioned all infos concerning DI are replicating the same words, nevertheless I found this one on the Encyclopedia of Technical Analisys of the financial markets. I don't know if it can help I just extracted the interested pages.

Attached Thumbnails
Recreate "Precision Divergence Finder Indicator"?-di.pdf  
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #22 (permalink)
 
gordo's Avatar
 gordo 
Tonganoxie, Kansas
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: CL,6E
Posts: 160 since Nov 2009
Thanks Given: 129
Thanks Received: 401

Thanks @redratsal. Not much on those four pages, but if I include the other codes I picked up, maybe I can make this into something. Something about mixing price and volume together into an indicator rattles in the back of my brain as good. If nothing else, I sent time learning things and learning is NEVER a waste of time. I included all the code snipets I could find below. I am not sure about some of them, but having the base idea from this article by Aspry should help. I did track this back to a book by Perry Kaufman, New Trading Systems and Methods, page 503. Now I need to buy the book...looks like a nice thing to have on the shelf. The mail is slow out here and I don't have a Kindle **[sigh]**.

Anyway, I will post my code when I get the bugs worked out. Right now, all I get is a green line running across the bottom of the panel!
On a side note, some guy even tried to get ahold of Sibbet and call all the numbers they could find. That is pretty cool. I wonder if some will call me 20 years from now for piece of code I wrote here on futures.io (formerly BMT)! HA HA HA HA HAHAHAHAHAHAHAHAHAHAHA I just kill myself sometimes!
Gordo

Attached Files
Elite Membership required to download: James Sibbet - Demand Index.docx
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #23 (permalink)
 
gordo's Avatar
 gordo 
Tonganoxie, Kansas
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: CL,6E
Posts: 160 since Nov 2009
Thanks Given: 129
Thanks Received: 401


Thanks to some help from my futures.io (formerly BMT) buddy, @redatsal, we now have the definative formulas:

James Sibbett's Demand Index:
@sum(upside volume, 10)
Demand Index = --------------------------------------
@sum(downside volume, 10)
Aspray's Demand Oscillator:

For rising prices:
Buying Pressure = volume
volume
Selling Pressure = ----------------------------------------------------
(close(today) - close(previous))
K X ------------------------------------------------------
close(previous)
For declining prices:
volume
Buying Pressure = ----------------------------------------------------
(close(today) - close(previous))
K X ------------------------------------------
close(previous)
Selling Pressure = volume
Where:
3 X close
K = -----------------------------------------------------------
average(highest(high, 2) - lowest(low, 2), 10)
And:
Demand Oscillator = BP - SP
Whew!! Now only the easy part is left, coding!

Gordo

Visit my NexusFi Trade Journal Reply With Quote
  #24 (permalink)
 fluxsmith 
Santa Maria
 
Experience: Advanced
Platform: NinjaTrader, ThinkOrSwim
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 290 since May 2010
Thanks Given: 97
Thanks Received: 322

I too could not find original sources on this formula. I've posted an indicator which was adapted from thinkorswim's implementation:


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #25 (permalink)
Javed1972
New Delhi India
 
Posts: 1 since Aug 2013
Thanks Given: 0
Thanks Received: 0


gordo View Post
Thanks to some help from my futures.io (formerly BMT) buddy, @redatsal, we now have the definative formulas:

James Sibbett's Demand Index:
@sum(upside volume, 10)
Demand Index = --------------------------------------
@sum(downside volume, 10)
Aspray's Demand Oscillator:

For rising prices:
Buying Pressure = volume
volume
Selling Pressure = ----------------------------------------------------
(close(today) - close(previous))
K X ------------------------------------------------------
close(previous)
For declining prices:
volume
Buying Pressure = ----------------------------------------------------
(close(today) - close(previous))
K X ------------------------------------------
close(previous)
Selling Pressure = volume
Where:
3 X close
K = -----------------------------------------------------------
average(highest(high, 2) - lowest(low, 2), 10)
And:
Demand Oscillator = BP - SP
Whew!! Now only the easy part is left, coding!

Gordo


Gordo,

Please tell me the formula for Demand Index as laid down by James Sibbet. The one you mentioned is not what the MS and AB implement. Please

Mohammed Javed Akhtar

Reply With Quote
  #26 (permalink)
 
gordo's Avatar
 gordo 
Tonganoxie, Kansas
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: CL,6E
Posts: 160 since Nov 2009
Thanks Given: 129
Thanks Received: 401

All I have @Javed1972 was what I posted in Word Document above (Post #22). There is not much literature out there on this subject, and certainly not much advice on how to use it. Sorry I couldn't be much more help.

Visit my NexusFi Trade Journal Reply With Quote
  #27 (permalink)
DaveWave
New york, NY/USA
 
Posts: 4 since Sep 2014
Thanks Given: 0
Thanks Received: 0

Does anyone have a script that will help me scan for negative and positive divergences on RSI (5) (14)?

Reply With Quote
  #28 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


DaveWave View Post
Does anyone have a script that will help me scan for negative and positive divergences on RSI (5) (14)?

Maybe this?


After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
Thanked by:
  #29 (permalink)
DaveWave
New york, NY/USA
 
Posts: 4 since Sep 2014
Thanks Given: 0
Thanks Received: 0

trying to use this indicator but the code is on the very bottom and hard to see, anyone that can clean it up and make it look like the picture shown? much appreciated

Reply With Quote




Last Updated on December 16, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts