STOCKS & COMMODITIES magazine. The Traders' Magazine

Register or Log In — Traders.com and STOCKS & COMMODITIES magazine

  |  JUL 1988

Loops: static and dynamic Part 7 by Jim Summers, Ph.D.

Loops: static and dynamic Part 7 by Jim Summers, Ph.D. This month, we develop a loop to manage the calculation of the trading range (TR 1) used in J. Welles Wilder's Directional Movement Index (DMI) system. The previous columns developed the formula for line-by-line processing of this indicator using {Put} and @ Index(...) commands. Loops are an important topic; knowing how to use them with {Put} and @ Index(...) make up one of the strongest Lotus 1-2-3 tools for managing la rge amounts of data in technical anal ysis. We'll be using the data i n Figure 1, taken from Wilder's book , New Concepts in Technical Trading Systems. For those of you who have been on board awhile, you will remember that the values in our spreadsheet's TR1 column were first calculated in the April 1988 column b y using range names. That method for processing a loop created several range names (High0, TR1, etc.) This rudimentar y loop accomplished the calculations in terms of the range names, then moved them all down and recreated them for each row. My machine took two minutes to process a mere 14 rows using this method. Phenomenal speed improvement occurs using {Put} and @ Index(...), which avoid cursor movement and changes in range names. For purposes of continuit y, Figure 2 is the formula as developed through the last column. Recall that the function @ Index( Data,3,0) refers to a cell address in the rang e Data. The first number is the column and the second is the ro w. In both cases, the o ffset starts counting with zero. Thus, @Index(Data,3,0) refers to the number 272.75, the close on 6/1/77. The o ffsets in the {Put} use the same conventions.

by Jim Summers, Ph.D.

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

NOT A SUBSCRIBER?

To continue reading, sign-up for trial access to Traders.com and the S&C Archive37,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.



DEPARTMENTS: Advertising | Editorial | Circulation | Contact Us | BY PHONE: (206) 938-0570

PTSK — The Professional Traders' Starter Kit
Home — S&C Magazine | Working Money Magazine | Traders.com Advantage | Online Store | Traders’ Resource
Add a Product to Traders’ Resource | Message Boards | Subscribe/Renew | Free Trial Issue | Article Code | Search

Copyright © 1982–2024 Technical Analysis, Inc. All rights reserved. Read our disclaimer & privacy statement.