Introducing SwamiCharts

Similar documents
Stochastic Oscillator.

Chapter 2.3. Technical Analysis: Technical Indicators

MATHEMATICAL TRADING INDICATORS

Retracements With TMV

Disclaimer: The authors of the articles in this guide are simply offering their interpretation of the concepts. Information, charts or examples

Chapter 2.3. Technical Indicators

atching Currency Moves with The Schaff Trend Cycle Indicator

Professional Trader Series: Moving Average Formula & Strategy Guide. by John Person

8 Day Intensive Course Lesson 5 Stochastics & Bollinger Bands

VBM-ADX40 Method. (Wilder, J. Welles from Technical Analysis of Stocks and Commodities, February 1986.)

The Intraday Bias Indicator

6.14. Oscillators and Indicators.

Channel Lines. Charts of futures price

THE CYCLE TRADING PATTERN MANUAL

Understanding the market

Trend Determination - a Quick, Accurate, & Effective Methodology

Predictive Indicators for Effective Trading Strategies By John Ehlers

FUTURES STRATEGY: Short-term CCI p. 10. ADJUSTING TO stock index futures shift p. 14. STRADDLES, STRANGLES, and volatility p. 16

The Trend-Checker has been designed to inform you at a glance how major currencies are behaving against one another.

Using Order Book Data

ADX breakout scanning ADX breakouts can signal momentum setups as well as exit conditions for intraday and swing traders. FIGURE 1: AFTER ADX > 40

Alerts & Filters in Power E*TRADE Pro Strategy Scanner

Timing the Trade How to Buy Right before a Huge Price Advance

I Day. article. In. you but. I just. Entry. Trend. I risk. 2.5% per. equity. a "runner" trading

Thinking Man s Trader

How Well Do Traditional Momentum Indicators Work? Cynthia A. Kase, CMT President, Kase and Company, Inc., CTA October 10, 2006

TRADING GAPS TAIL STRATEGY SPECIAL REPORT #37

Elliott-Wave Fibonacci Spread Trading

CYCLE TIMING CAN IMPROVE YOUR TIMING PERFORMANCE by Walter Bressert, CTA

6. Get Top Trading Signals with the RSI

Ehlers Filters by John Ehlers

INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS

How to find the big winners in the stock market.

This library is included for Platinum Club members, and may be purchased separately for the Gold version of Trade Navigator.

High Probability Trading Triggers for Gold & Silver

THE MACD: A COMBO OF INDICATORS FOR THE BEST OF BOTH WORLDS

TRADING SECRET NO. 3 How to combine two simple tools to capture big trending moves, especially in currencies

The Jim Berg Entry and Exit System. 1.

Technical Indicators Tutorial - Forex Trading, Currency Forecast, FX Trading Signal, Forex Training Cour...

Charting Glossary Version 1 September 2008

CHART TRADING GUIDE 1

Secrets for profiting in bull and bear markets Sam Weinstein

Chapter 1.4 Trends 0

ID ING WHEN TO BUY AND SELL USING THE STOCHASTIC OSCILLATOR

Trade Stocks Like A Pro

Trading Medium-Term Divergences

FX Trading Guide: 4 Simple Ways to Spot a Trend JON MCFARLANE AND VERNON LEES

How to use Hamzei Analytics CI and DCI Indicators By Fari Hamzei

Definitions to Basic Technical Analysis Terms.

The Logic Of Pivot Trading

TRADING WITH THE GUPPY MULTIPLE MOVING AVERAGE

My Favorite Futures Setups. By John F. Carter

Stop Investing and Start Trading. How I Trade Technical Strategies Over Fundamental Strategies

A GUIDE TO WL INDICATORS

Technical Analysis. Technical Analysis. Schools of Thought. Discussion Points. Discussion Points. Schools of thought. Schools of thought

USING CANDLESTICK CHARTS TO TRADE FOREX

Trading with the Intraday Multi-View Indicator Suite

How To Know When A Market Is In A Strong Trending Phase

1 P a g e Questions or comments? Contact us at TSLabs@TradeStation.com

Day Trade System EZ Trade FOREX

Emini Trading Strategy

What You Don t Know About Candlesticks

How to see the market context using CCI Written by Buzz

Chapter 6 - Rahul Mohindar Oscillator System

BROKER SERVICES AND PLATFORM

Pivot Point Trading. If you would rather work the pivot points out by yourself, the formula I use is below:

Why the E.A.S.Y. Method?

TOMORROW'S TRADING TECHNOLOGY. 100% automated Fibonacci support and resistance levels that you can count on every single trading day in an instant.

Advanced Trading Systems Collection FOREX TREND BREAK OUT SYSTEM

Larry Williams Indicators

How I Trade Profitably Every Single Month without Fail

Technical analysis. Course 11


JUST SIT BACK AND LET THE GIRTH MODEL MAKE MONEY FOR YOU. Elham Negahdary

New Trendlens Indicators & Functions

Chapter 3.4. Forex Options

THE TRADE-OR-FADE METHOD:

A Quick Tutorial in MACD: Basic Concepts. By Gerald Appel and Marvin Appel

Chapter 18 STAYING WITH A TREND

A Practical Guide to Technical Indicators; (Part 1) Moving Averages

Technical Indicators Explained

Table of Contents. Preface. Chapter 1: TRADING BASICS. Chapter 2: BASIC TOOLS. Chapter 3: ADX. Chapter 4: ACCUMULATION LINE

Leon Wilson Trading Success

Trendline Tips And Tricks

The Use of Trend Lines and Charting Patterns in Trading the Forex Markets

Methods to Trade Forex Successfully for Quick Profits

A Candlestick Primer. By Tom Bierovic

FOREX analysing made easy

Swing Trading Tactics

Swing Trading Tactics

SP500 September 2011 Outlook

NEURAL networks [5] are universal approximators [6]. It

Candlesticks. Bar Charts CANDLESTICK CORNER. When you look at your charts, do you understand everything they re telling you? by Rudy Teseo BEARISH

Prediction of Closing Stock Prices

MarketGauge The Complete Swing Trading System

I Really Trade. Trading Patterns for Stocks & Commodities. Introducing The False Break Buy and Sell Pattern

The information contained herein is derived from sources we believe to be reliable, but of which we have not independently verified. Forexyard.

BULLS ON WALL ST. 60 DAY TRADING BOOTCAMP

Picking a Trading Timeframe Before You Make a Trade Identifying the Trend Randomness of Financial Markets The Thought Demons of Traders

Contrarian investing and why it works

Transcription:

Stocks & Commodities V. 30:3 (14-22): Introducing SwamiCharts by John Ehlers and Ric Way A Modern Approach To Technical Indicator Visualization Introducing SwamiCharts Traditional technical indicators tend to provide a adaptive to measured market conditions. Alternanarrow view of the market. This technique can give tive techniques have been suggested, but each has you a broader one and help you select an indicator inherent limitations: lookback period. 1 The visualization may be narrow in scope. You re not seeing the big-picture view of the indicator s response to a range of periods. H BRUCE WALDMAN ere s to technology in the 21st century! Computer hardware is fast and plentiful, with GPU graphics processors in our tablets and smartphones, and now, we can catch up with visualization improvements in our technical indicators. The SwamiCharts data visualization technique is a mosaic of technical indicator readings at multiple lookback periods, with each reading pieced together into a heatmap chart. This technique retains the core functionality of the technical indicators you are already familiar with while condensing more information into an easy-to-interpret heatmap. In this, the first of several articles, we introduce SwamiCharts as a better way to visualize technical indicators in a big-picture context. We illustrate why the narrow scope offered by traditional indicators can result in a myopic view and how SwamiCharts solves this issue. 2 The process of dynamically adjusting the lookback period introduces noise. 3 Adaptive techniques introduce lag. Traditional indicators give you details, but what does it mean? For example, a chart of the RSI shows you precisely when the indicator crosses over 80, but does this occurrence always indicate the same thing? SwamiCharts offer a tradeoff for a better visualization a wider view of the indicator s true meaning. In addition, SwamiCharts provide a solution in the choice of lookback period. And of course, you can always continue to plot your old favorite classic indicator alongside a SwamiCharts version if you so choose. In this article you will see several classic technical indicators rendered as SwamiCharts and be given tips on how to write your own indicators that way as well. What s a good lookback period? When J. Welles Wilder introduced the relative SwamiCharts basics strength index (RSI) in the late 1970s, a number of SwamiCharts are created as technical indicator readearly technicians questioned why he used a 14-day ings at multiple lookback periods, with a resulting lookback period. This led one of these authors of this article, John Ehlers, to a decades-long quest for the SwamiCharts is a mosaic of correct lookback period and spawned the idea for technical indicator readings at his MESA cycles-measuring program. multiple lookback periods, with MESA enables indicator lookback periods to be each reading pieced together into a heatmap chart. by John Ehlers and Ric Way

mesa9 FIGURE 1: VOLUME LEADING PRICE. Here you see the 15-minute chart of the emini S&P 500 contract with the Swami Predict and Swami Volume indicators. The changes in color make it easy to understand the price/volume relationship. heatmap chart. Instead of showing numeric values, indicator readings are converted to colors where red indicates bearish and green indicates bullish, or blue indicates cold and white indicates hot, and so forth. The vertical y-axis represents the lookback period from lowest to highest. At each lookback, the indicator is plotted as a horizontal slice. As you move up the y-axis, each subsequent y-axis position shows the indicator reading at the next longer lookback period. At any given time or time range, scanning the bottom portion of a SwamiChart shows the indicator readings at shorter lookback periods and the top portion shows the longer readings. With traditional technical indicators you have to set the lookback period at a middle-ground level to avoid whipsaws. With SwamiCharts, the shorter readings give you an earlier indication of change, and at the same time, the longer readings provide confirmation and continuation. SwamiCharts provide a better big-picture view of the indicator s true meaning in context. Let s begin with an example. Figure 1 shows the emini Standard & Poor s 500 contract using 15-minute bars with the Swami Predict and Swami Volume indicators. At 11:30 am on October 23, 2011, prices began to move up on low (deep blue) volume. At noon, Swami Predict turned bullish at the shorter lookback periods. Prices gapped up slightly at the open on October 24 as volume remained relatively low. At 8:30 on October 24, prices were continuing to rise on increasing volume (blue becoming white) as more and more traders took note and began to accumulate. Then at 10:00, Swami Predict gave early warning that the uptrend could fade as the indicator turned bearish, again at shorter lookback periods. Volume was heavy but did not reach the white-hot stage. By 11:30 the volume dried up and prices peaked, an indication of an impending reversal. The reversal occurred on a volatile gapdown and volume picked up as the selling intensified. Selling reached a white-hot peak at 8:30 on October 25. By 9:30 the volume began to taper off, a possible indication that most sellers who wanted to get out had done so. Swami Predict then began to show a possible new early bullish indication, a green patch at the far bottom right of the chart. However, at that point we had to wait for prices to begin to rise before initiating a long position. This was necessary in case the previous selloff had merely paused. In conclusion, volume leads price but the relationship is complex, depending on whether price moves are in an early or late stage, whether they occur at peaks or valleys, and whether they occur after a significant runup or selloff. SwamiCharts show the complex price/volume relationship more clearly than a traditional volume bar chart. Expanding visibility Next, we show how certain classic technical indicators appear almost the same when seen as SwamiChart renderings, even though they may look very different in their traditional technical indicator views. Figure 2 is a daily chart of SPY for about one year from the time this article was written. The traditional RSI is in the first subgraph and the traditional stochastics indicator is in the second subgraph. These indicators seem to be telling you different things about the price movement. We won t go into details but suffice it to say that they are clearly providing different information regarding when to buy and when to sell. Let s see how the RSI and stochastics indicators look in SwamiCharts format in Figure 3. At a glance you can see they are telling you pretty much the same information about the market activity. The green areas show when the market is moving up, the red areas show when the market is moving down, and yellow denotes the transition region between the two. In other words, yellow is a warning that price reversals may be imminent. As you would expect, the signals at the bottom of the charts occur before those same signals appear at the elevation midpoint and the top of the chart. Since shorter lookback periods use less data in the computation of the indicator than longer lookback periods, the resultant indicator lag is less at shorter periods.

FIGURE 2: CONVENTIONAL INDICATORS. On this daily chart of the SPY it is clear that the traditional RSI and stochastics show different information. Therefore, the proper use of SwamiCharts indicators is to first scan the bottom of the chart for the first flash that there is a change of indicator status. Then, viewing the chart as a whole, you should put that flash in context of all lookback periods to establish your trading position. Roll your o w n Swa m i Charts The code for the SwamiCharts stochastics can be seen in the sidebar, SwamiCharts Stochastics EasyLanguage Code. The computation is fundamentally identical to the computation of the traditional indicator. The biggest difference is that instead of variables, the stochastic (Stoc), numerator (Num), and denominator (Denom) must be arrays. These arrays are in the loop for the lookback period (N) so the indicator is computed across time for each lookback period. Instead of being scaled from zero to 100, the indicators are scaled from zero to 1. If the indicator value is much below 0.5, the resultant display will be red. If the indicator value is much above 0.5, the display will be green. The indicator display will be yellow if its value is in the vicinity of 0.5. You can write your own SwamiCharts custom indicator if you create the arrays for all lookback periods, scale the indicator values to fall between zero and 1, and use the heatmap display code without any additional changes. FIGURE 3: SWAMICHARTS RSI AND SWAMI STOCHASTIC. From these charts you can see that they show similar information. The green areas show when the market is moving up, the red areas show when the market is moving down, and yellow denotes the transition region between the two. As you would expect, the signals at the bottom of the charts occur before those same signals appear at the elevation midpoint and top of the chart. Swa m i classic indicators The Aroon indicator was introduced by Tushar Chande. Chande designed the Aroon to distinguish between periods of trending versus trading ranges. Green indicates uptrends, while red indicates downtrends. As with SwamiCharts stochastics, the lower portion of the chart shows shorter lookback periods and gives you an early view, while the middle portion provides confirmation and the upper portion (longest lookback periods) provides continuation. SwamiCharts Aroon gives you additional insight into the confirmation and continuation of the trend because you are visualizing a composite of lookback range from 12 to 48 bars. An early emergence of an uptrend (downtrend) is identified by a transition from red to green (green to red) at the

SwamiCharts stochastics easylanguage code Vars: N(0), J(0), HH(0), LL(0), Color1(0), Color2(0), Color3(0); Arrays: Stoc[48, 2](0), Num[48, 2](0), Denom[48, 2](0); For N = 6 to 48 Begin Num[N, 2] = Num[N, 1]; Denom[N, 2] = Denom[N, 1]; Stoc[N, 2] = Stoc[N, 1]; HH = 0; LL = 1000000; For J = 0 to N - 1 Begin If Close[J] > HH Then HH = Close[J]; If Close[J] < LL Then LL = Close[J]; Num[N, 1] =.5*(Close - LL) +.5*Num[N, 2]; Denom[N, 1] =.5*(HH - LL) +.5*Denom[N, 2]; If Denom[N, 1] <> 0 Then Stoc[N, 1] =.2*(Num[N, 1] / Denom[N, 1]) +.8*Stoc[N, 2]; //Plot as a Heatmap For N = 6 to 48 Begin // StopLight Colors If Stoc[N, 1] >=.5 Then Begin Color1 = 255*(2-2*Stoc[N, 1]); Color2 = 255; Color3 = 0; End Else If Stoc[N, 1] <.5 Then Begin Color1 = 255; Color2 = 255*2*Stoc[N, 1]; Color3 = 0; If N = 4 Then Plot4(4, S4, RGB(Color1, Color2, Color3),0,4); If N = 5 Then Plot5(5, S5, RGB(Color1, Color2, Color3),0,4); If N = 6 Then Plot6(6, S6, RGB(Color1, Color2, Color3),0,4); If N = 7 Then Plot7(7, S7, RGB(Color1, Color2, Color3),0,4); If N = 8 Then Plot8(8, S8, RGB(Color1, Color2, Color3),0,4); If N = 9 Then Plot9(9, S9, RGB(Color1, Color2, Color3),0,4); If N = 10 Then Plot10(10, S10, RGB(Color1, Color2, Color3),0,4); If N = 11 Then Plot11(11, S11, RGB(Color1, Color2, Color3),0,4); If N = 12 Then Plot12(12, S12, RGB(Color1, Color2, Color3),0,4); If N = 13 Then Plot13(13, S13, RGB(Color1, Color2, Color3),0,4); If N = 14 Then Plot14(14, S14, RGB(Color1, Color2, Color3),0,4); If N = 15 Then Plot15(15, S15, RGB(Color1, Color2, Color3),0,4); If N = 16 Then Plot16(16, S16, RGB(Color1, Color2, Color3),0,4); If N = 17 Then Plot17(17, S17, RGB(Color1, Color2, Color3),0,4); If N = 18 Then Plot18(18, S18, RGB(Color1, Color2, Color3),0,4); If N = 19 Then Plot19(19, S19, RGB(Color1, Color2, Color3),0,4); If N = 20 Then Plot20(20, S20, RGB(Color1, Color2, Color3),0,4); If N = 21 Then Plot21(21, S21, RGB(Color1, Color2, Color3),0,4); If N = 22 Then Plot22(22, S22, RGB(Color1, Color2, Color3),0,4); If N = 23 Then Plot23(23, S23, RGB(Color1, Color2, Color3),0,4); If N = 24 Then Plot24(24, S24, RGB(Color1, Color2, Color3),0,4); If N = 25 Then Plot25(25, S25, RGB(Color1, Color2, Color3),0,4); If N = 26 Then Plot26(26, S26, RGB(Color1, Color2, Color3),0,4); If N = 27 Then Plot27(27, S27, RGB(Color1, Color2, Color3),0,4); If N = 28 Then Plot28(28, S28, RGB(Color1, Color2, Color3),0,4); If N = 29 Then Plot29(29, S29, RGB(Color1, Color2, Color3),0,4); If N = 30 Then Plot30(30, S30, RGB(Color1, Color2, Color3),0,4); If N = 31 Then Plot31(31, S31, RGB(Color1, Color2, Color3),0,4); If N = 32 Then Plot32(32, S32, RGB(Color1, Color2, Color3),0,4); If N = 33 Then Plot33(33, S33, RGB(Color1, Color2, Color3),0,4); If N = 34 Then Plot34(34, S34, RGB(Color1, Color2, Color3),0,4); If N = 35 Then Plot35(35, S35, RGB(Color1, Color2, Color3),0,4); If N = 36 Then Plot36(36, S36, RGB(Color1, Color2, Color3),0,4); If N = 37 Then Plot37(37, S37, RGB(Color1, Color2, Color3),0,4); If N = 38 Then Plot38(38, S38, RGB(Color1, Color2, Color3),0,4); If N = 39 Then Plot39(39, S39, RGB(Color1, Color2, Color3),0,4); If N = 40 Then Plot40(40, S40, RGB(Color1, Color2, Color3),0,4); If N = 41 Then Plot41(41, S41, RGB(Color1, Color2, Color3),0,4); If N = 42 Then Plot42(42, S42, RGB(Color1, Color2, Color3),0,4); If N = 43 Then Plot43(43, S43, RGB(Color1, Color2, Color3),0,4); If N = 44 Then Plot44(44, S44, RGB(Color1, Color2, Color3),0,4); If N = 45 Then Plot45(45, S45, RGB(Color1, Color2, Color3),0,4); If N = 46 Then Plot46(46, S46, RGB(Color1, Color2, Color3),0,4); If N = 47 Then Plot47(47, S47, RGB(Color1, Color2, Color3),0,4); If N = 48 Then Plot48(48, S48, RGB(Color1, Color2, Color3),0,4);

lower lookback periods (bottom of the chart). If the trend is confirmed and continues, the indicator will stairstep to longer lookback periods. An abrupt color change at multiple lookback periods often signals a significant change. The SwamiCharts CCI is an indicator based on the classic commodity channel index (CCI) oscillator. An overbought (bearish) condition is shown in red and an oversold (bullish) condition is shown in green. A yellow color indicates an intermediate condition. SwamiCharts CCI gives a larger overview by using channel lengths that vary from 12 to 48 bars in the vertical scale and by displaying the position relative to the channel using colors. Green represents a position in the upper part of the channel and red represents a position in the lower part of the channel, with yellow being an intermediate position. The RSI is a well-known momentum oscillator that measures the speed and change of price movements. It does so by measuring the sum of the differential closes up to the absolute value of all differential closes, usually over a period of 14 days. Despite being developed before the computer age, RSI remains popular. SwamiCharts RSI gives you an early view of the change of price movements by varying the calculation period over a range of lookback periods. As a result, you see both the early stages of a price movement at the shorter periods (near the bottom of the SwamiChart) and a measure of the persistence of the movement for longer periods at the top of the chart. Stochastics is another popular price oscillator that has withstood the test of time. The Swami stochastics indicator becomes green when entering an expected bullish period and red when entering an expected bearish period. When yellow, the indicator is indeterminate. The stochastics indicator is a momentum oscillator that measures the speed and change of price movements. It does this by measuring the position of the current closing price relative to the highest close and lowest close in recent history. SwamiCharts stochastics gives you an early view of the change of price movements by varying the calculation period over a range from 12 to 48 bars and displaying price movement to the upside as green and price movement to the downside as red. As a result, you see both the early stages of a price movement for the shorter periods and a measure of the persistence of the movement for longer periods at the top of the subgraph. Advanced Swami Charts indicators For those interested in programming, we encourage you to create SwamiCharts versions of your favorites. In the course of developing SwamiCharts, we feel we have developed a deeper understanding of complete market activity, and you may feel the same when you see your own results. If you attempt to program your own traditional indicators as SwamiCharts, you will find some real dogs indicators that don t indicate anything, or worse yet, the wrong thing. We have created some advanced SwamiCharts indicators and will be describing their use in the next article of this series. S&C Contributing Editor John Ehlers is a pioneer in the use of cycles and DSP techniques in technical analysis. He is the author of the MESA9 program, is the chief scientist for stockspotter.com, and is the inventor of SwamiCharts. Ric Way is an independent software developer specializing in programming algorithmic trading systems in C#. He may be reached at ricway@taosgroup.org. TradeStation and NinjaTrader source code for SwamiCharts renditions of several classic technical indicators (Aroon, commodity channel index [CCI], RSI, and stochastics) may be downloaded for free at SwamiCharts.com. In addition, SwamiCharts indicators will be available on the ThinkOr- Swim platform. Suggested reading Chande, Tushar [2001]. Beyond Technical Analysis: How To Develop And Implement A Winning Trading System, 2d ed., John Wiley & Sons., and Stanley Kroll [1994]. The New Technical Trader, John Wiley & Sons. Ehlers, John F. [2001]. Rocket Science For Traders, John Wiley & Sons. EasyLanguage MESA9 See our Traders Tips section beginning on page 62 for implementation and commentary of John Ehlers and Ric Way s technique in various technical analysis programs. Accompanying program code can be found in the Traders Tips area at Traders.com.