| JAN 1996
Traders' Tips
TRADERS' TIPS TRADESTATION To create the divergence index in Matt Storz's ""Quantifying Divergence with the Divergence Index,"" you must first create two User-Functions, PeakDivergence and TroughDivergence. The code for both is listed below. Be sure you create and verify these before you build the indicator. Since I have built them as User-Functions, you can now call these functions from any other study or system without having to recreate the code. Type: User-Function Name: PeakDivergence Inputs: Strength(NumericSimple), OSC(NumericSeries); Vars: Hc(0), Hp(0), Hh(0), HL(0), Ic(0), Ih(0), Ip(0), IL(0); Value1=SwingHigh(1,High,Strength,Strength+1); If Value1<>-1 then begin Hp=Hc; Hc=Value1; Ip=Ic; Ic=OSC[Strength]; Hh=Value2; HL=Value3; Value2=Highest(High,Strength+1); Value3=Lowest(High,Strength+1); Ih=Value4; IL=Value5; Value4=Highest(OSC,Strength+1); Value5=Lowest(OSC,Strength+1); ...
by Technical Analysis, Inc.
Technical Analysis of STOCKS & COMMODITIES
The Traders’ Magazine since 1982
has had over 1,226,237 subscribers from 174 different countries.
37,000 Page Traders’ Archive for $89.99
To continue reading, sign-up for trial access to Traders.com and the S&C Archive — 37,000 pages of trading ideas!
After verifying your email address, you will have limited access to the S&C Archive, as well as access to a Digital Edition of S&C, and access to Traders.com Advantage and Working Money for 30 days.
Not a subscriber to Technical Analysis of
STOCKS & COMMODITIES magazine?
Click
here to subscribe, or request
a trial subscription.
Log-in now to view articles from the S&C Archive.
Your Subscriber ID is located at the top of your magazine label, highlighted here in red.
Your last name can be found on the second line, highlighted here in blue.
*If you have a company name on the label, that can also be used. It will appear below your name on the label.
If you do not have a Subscriber ID on your label, you can find it on your statement or renewal form.
For help locating your Subscriber ID number, please call us at 1-800-832-4642 or send an email to Survey@Traders.com. If sending an email, please include your name and mailing address.