V14:1 (50-52): Traders' Tips

V14:1 (50-52): Traders' Tips
Item# \V14\C01\TRADERS.PDF
Availability: In Stock

Product Description



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); ...

*Note: $2.95-$5.95 Articles are in PDF format only. No hard copy of the article(s) will be delivered. During checkout, click the "Download Now" button to immediately receive your article(s) purchase. STOCKS & COMMODITIES magazine is delivered via mail. After paying for your subscription at store.traders.com users can view the S&C Digital Edition in the subscriber's section on Traders.com.

Take Control of Your Trading.
Professional Traders' Starter Kit
All these items shown below only $299.99!
  • 5-year subscription to Technical Analysis of STOCKS & COMMODITIES, The Traders' magazine. (Shipping outside the US is extra. Washington state addresses require sales tax based on your locale.)
  • 5 year access to S&C Archive
  • 5 year access to S&C Digital Edition
  • 5-year subscription to Traders.com Advantage.
  • 5-year subscription to Working Money.
  • Free book selection.
  • Click Here to Order