C - D
Last updated
Last updated
Disclaimer: The information provided on this page is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security. Please see our Risk Disclosure and Performance Disclaimer Statement.
How to access the studies in MotiveWave:
Go to the top menu, choose Study>Study Group>Study Name
or Go to the top menu, choose Study>All Studies> Start typing in the study name until you see it appear in the list> Click on the study name> Click OK.
The Calmar Ratio was authored by Terry W. Young in 1991. The higher the Calmar Ratio the better the instrument’s performance. The Calmar Ratio is the annual return divided by the maximum peak-to-trough negative return. The user must select linear bars but may change the input (close) and period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
The Calmar Ratio may be used to evaluate an instrument’s performance. No trading signals are calculated.
//input = price, user defined, default is close //period = p1, user defined, default is 30 //abs = absolute value, pow = power //index = current bar number
The Center Of Gravity (COG) is calculated from the sum of prices over a user-defined period. A signal line which is a moving average of the COG is also plotted. Adjustable guides are shown to fine-tune the signals. The user may change the input (close), method (EMA), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Adjust the top and bottom guides to control the quantity and quality of the trading signals. If the COG is above the top guide and crosses below the signal line a sell signal is generated. Conversely, if the COG is below the bottom guide and crosses above the signal line a buy signal will be given.
//input = price, user defined, default is closing price //method = moving average, user defined, default is EMA //cogPeriod = user defined default is 10 //sigPeriod = user defined default is 5 //sumNum = sumNumerator //sumDen = sumDenomator //MT = moreThan, LT = lessThan //index = current bar number
The Chaikin Oscillator is formed by subtracting X-day exponential moving average from a Y-day exponential moving average of the accumulation/distribution line. Typical values of X and Y are (10, 3). The user may change the periods lengths. This indicator’s definition is further expressed in the condensed code given in the calculation below.
No trading signals are calculated for this indicator
//period1 = user defined, default = 3 //period2 = user defined, default = 10 //index = current bar number
The Chaikin Money Flow Index (CMF) was authored by Marc Chaikin. The CMF is an oscillator derived from the Accumulation/Distribution Line. CMF values are calculated by adding all of the A/D line values for the period and dividing this by the total volume for the period. The user may change only the period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
No trading signals are calculated for this indicator.
//period = user defined, default is 20 //LT = less than, LOR= = less or equal //index = current bar number
Chaikin Volatility Indicator by Marc Chaikin is a volatility indicator that includes high-low differences and Rate of Change in its construction. The user may change the method (EMA) and period lengths. This indicator’s definition is further expressed in the condensed code given in the calculation below.
The Chaikin Volatility Indicator is meant to be used in conjunction with other indicators. No trading signals are given.
//method = moving average (ma) (user defined, default is EMA) //maPeriod = user defined, default is 10 //rocPeriod = user defined, default is 12 //roc = rate of change
The Chande Momentum Oscillator (CMO) was authored, not surprisingly, by Tushar Chande. The CMO is the difference between, the sum of all recent gains and the sum of all recent losses, and dividing the result by the sum of all price movements of the given period. It is bounded between the range +100 and -100. The user may change the input (close) and period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Adjust the top and bottom guides to control the quantity and quality of the trading signals. CMO values above 50 are considered to be overbought and therefore offer an opportunity to sell. CMO values below minus 50 are considered oversold and present an opportunity to buy. If the CMO crosses above the top guide a sell signal will be generated. Conversely, if the CMO crosses below the bottom guide a buy signal will be given. The 0 line divides the bulls above from the bears below.
//input = price, user defined, default is closing price //period = user defined, default is 14 //MT = more than //LT = less than //prev = previous, diff = difference //index = current bar number
Chandelier Exits (CE) was authored, by Chuck LeBeau. CE identifies stop-loss exit points for long or short positions. Optional entry points are also displayed. CE uses an exponential moving average to determine the current trend; then the average true range times a user-defined factor is either, depending upon the trend, added or subtracted from the highest high or lowest low. The user may change the position (long), input (close), method (EMA), period lengths, look back, factor and show entry option. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Chandelier Exits are designed to aid in stop-loss exit decisions. However, entry points are optionally provided. These are based on five consecutive increases in an uptrend (buy) or five consecutive decreases in a downtrend (sell).
//position = pos, user defined, default is long //input = price, user defined, default is close //method = moving average (ma), user defined, default is EMA //period1 = maP, user defined, default is 63 //period2 = upP, user defined, default is 22 //period3 = dnP, user defined, default is 22 //look back = lb, user defined, default is 5 //factor = fac, user defined, default is 3 //show entry = showE, user defined boolean, default is false //index = current bar number, prev = previous //shortP = short position, longP = long position //index = current bar number
The Chartmill Value Indicator (CMVI) was authored by Dirk Vandycke in the Stocks and Commodities Magazine, January 2013. The CMVI uses Moving Averages of True Range and the Midpoint price to calculate adjusted open, high, low and closing prices. These adjusted values are displayed as price bars on a separate graph. The user may change the method (SMA), period length and price bar type. This indicator’s definition is further expressed in the condensed code given in the calculation below.
No trading signals are calculated for this indicator.
//method = moving average, user defined, default is SMA //x = period, user defined, default is 5 //type = price bar type, default is Candlesticks //index = current bar number
The Choppiness Index (CI) was authored by Australian commodity trader E.W. Dreiss. The CI may be used to determine if the market is consolidating or trending. The user may change the period length and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
The Choppiness Index is a directionless indicator. Values above the top guide (61.8) indicate that the market is moving sideways in a ranging or choppy manner. Values below the bottom guide (38.2) indicate the market is trending. The Choppiness Index is best used in conjunction with other studies. No trading signals are calculated for this indicator.
//period = user defined, default is 14 //top guide = user defined, default is (fibonacci number) 61.8 //bottom guide = user defined, default is (fibonacci number) 38.2 //index = current bar number
The CMO Abs was authored by Chande and Kroll for Omega Research 1997. The CMO Abs is a momentum indicator somewhat similar to the Relative Strength Index (RSI). It uses the sum of the absolute difference between the current price and the last price, and also a prior price, to create an oscillator with a range of 0 to 100. Adjustable guides are given to fine-tune the trading signals. The user may change the input (close), period and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using CMO Abs
Adjust the top and bottom guides to control the quantity and quality of the trading signals. CMOF values above 70 to 80 are considered to be overbought and therefore offer an opportunity to sell. CMOF values below 30 to 20 are considered oversold and present an opportunity to buy. If the CMOF peaks above the top guide a sell signal will be generated. Conversely, if the CMOF troughs below the bottom guide a buy signal will be given. The 50 line divides the bulls (above) from the bears (below).
Calculation
//input = price, user defined, default is closing price //period = user defined, default is 9 //num = numerator, den = denomator //abs = absolute value, prev = previous //index = current bar number
The CMO ABS Average, by Chande and Kroll for Omega Research 1997, uses the average of the absolute difference between the current price and the last price over 3 periods to create an oscillator with a range of 0 to 100. Adjustable guides are given to fine-tune the trading signals. The user may also change the input (close) and period values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Adjust the top and bottom guides to control the quantity and quality of the trading signals. CMOABSAV values above 70 to 80 are considered to be overbought and therefore offer an opportunity to sell. CMOABSAV values below 30 to 20 are considered oversold and present an opportunity to buy. If the CMOABSAV peaks above the top guide, a sell signal will be generated. Conversely, if the CMOABSAV troughs below the bottom guide, a buy signal will be given. The 50 line divides the bulls (above) from the bears (below).
//input = price (user defined, default is closing price) //period1 = user defined, default is 5 //period2 = user defined, default is 10 //period3 = user defined, default is 20 //abs = absolute value, diff = difference //index = current bar number
CMO And WMA was authored by Chande and Kroll for Omega Research 1997. The CMO uses the absolute difference between price and previous price with sums and averages to arrive at its value. A signal line which is a Weighted Moving Average (WMA) of the CMO is also plotted. Adjustable guides are given to fine tune the trading signals. The user may change the input (close), method (WMA), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using CMO And WMA
Adjust the top and bottom guides to control the quantity and quality of the trading signals. CMO values above 50 are considered to be overbought and therefore offer an opportunity to sell. CMO values below minus 50 are considered oversold and present an opportunity to buy. If the CMO is above the top guide and crosses below the CMOWMA a sell signal will be generated. Conversely, if the CMO is below the bottom guide and crosses above the CMOWMA a buy signal will be given. The 0 line divides the bulls above from the bears below.
//input = price, user defined, default is closing price //period1 = user defined, default is 9 //period2 = user defined, default is 9 //method = moving average (ma), user defined, default is WMA //abs = absolute value, prev = previous //index = current bar number
CMO Average (cmoAv) by Chande and Kroll for Omega Research 1997 is a momentum indicator. It uses data from up and down days, averages 3 summation periods and has a range of 100 to -100. Adjustable guides are given to fine-tune the signals. The user may change the input (close), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using cmoAv
Adjust the top and bottom guides to control the quantity and quality of the trading signals. CmoAv values above 50 are considered to be overbought and therefore offer an opportunity to sell. CmoAv values below -50 are considered oversold and present an opportunity to buy. If the cmoAv peaks above the top guide a sell signal will be generated. Conversely, if the cmoAv troughs below the bottom guide a buy signal will be given. The 0 line divides the bulls (above) from the bears (below).
//input = price (user defined, default is closing price) //period1 = user defined, default is 5 //period2 = user defined, default is 10 //period3 = user defined, default is 20 //prev = previous, index = current bar number //abs = absolute value //MT = more than, LT = less than
The CMO Filter was authored by Chande and Kroll for Omega Research 1997. A user-defined filter is applied to the real and absolute sum of the difference between the current price and last price. The quotient is oversized to create an oscillator with a range of 100 to -100. Adjustable guides are given to fine-tune the trading signals. The user may change the input (close), period, filter and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using CMO Filter
Fine-tune the top and bottom guides to control the quantity and quality of the trading signals. CMOF values above 70 are considered to be overbought and therefore offer an opportunity to sell. CMOF values below -70 are considered oversold and present an opportunity to buy. If the CMOF peaks above the top guide a sell signal will be generated. Conversely, if the CMOF troughs below the bottom guide a buy signal will be given. The 0 line divides the bulls (above) from the bears (below).
Calculation
//input = price (user defined, default is closing price) //period = user defined, default is 9 //filter = user defined, default is 3 //prev = previous, index = current bar number //abs = absolute value, diff = difference //MT = more than, LT = less than
Donald Lambert introduced the Commodity Channel Index (CCI) in 1980. It is designed to identify cyclical turns in commodities. The assumption is that commodities move in cycles, with highs and lows at periodic intervals. It is recommended to use 1/3 of a complete cycle as a time frame (IE: for a 60-day cycle, use a 20-day CCI). The user may change only the period length. The CCI is a momentum oscillator that measures the deviation of the current price from its historical mean, which helps gauge the distance of the price from its average. The CCI line oscillates around the zero line with thresholds of +100 and -100. This indicator signals overbought/oversold conditions, trend direction and potential reversals. Click here for more information.
How To Trade Using Commodity Channel Index
If the CCI value is above +100, it indicates an overbought condition, and therefore, a potential reversal might happen from up to a downtrend. The condition when the CCI value reaches above +100 also shows a strong price movement and might be an uptrend. In contrast, if the CCI value falls below the -100 level, it implies the price is relatively low and the market is in an oversold condition. This means a potential reversal to an uptrend might occur.
Adjust the top and bottom guides to control the quantity and quality of the trading signals. If the CCI crosses above the top guide (+100) from below, this might be a sign for buying. Conversely, if the CCI crosses below the bottom guide (-100) from above, it might signal selling opportunities.
When the price makes higher highs but the CCI line makes lower highs, it suggests a potential downward reversal and the momentum is weakening. When the price makes lower lows but the CCI line makes higher lows, it signals a potential uptrend reversal.
Calculation
This indicator’s definition is further expressed in the condensed code given in the calculation below:
//period = user defined, default is 20 //LT = less than, LOR= = less or equal //index = current bar number
Conditional Accumulator, by Omega Research 1996, accumulates a valve based on a condition. The user may change the condition, increment and start value. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using Conditional Accumulator
No trading signals are given.
//condition = default is (low moreThan prevHigh) //increment = user defined, default is 1 //startValue = user defined, default is 0 //index = current bar number, LOE = less or equal
Contract Hi Low was authored by Omega Research 1995. It displays the highest high and the lowest low. No user input is required. This indicator’s definition is further expressed in the condensed code given in the calculation below.
No trading signals are given for this indicator.
//con = contract //index = current bar number
The Coppock Curve (originally named Trendex Model) was authored by E.S.C. Coppock. It is a trend following indicator tallied from the smoothed sum of 2 rates of change periods. The original purpose was for market entries and sell signals were not considered. Both buy and sell signals are generated in this version. Adjustable guides are also given to fine-tune the signals. The user may change the input (close), method (WMA), and period lengths. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using The Coppock Curve
Coppock is not well suited for commodity markets and was originally designed for the S&P 500. It was also designed for monthly trading with periods of 14 (roc1), 11 (roc2) and 10 (wma). If using daily trading change periods to 294, 231 and 210. Adjust the top and bottom guides to control the quantity and quality of the trading signals. Buy signals are given after the coppock troughs below the bottom guide. Conversely, sell signals are given after it peaks above the top guide.
Calculation
//input = price user defined, default is close //period1 = user defined, default is 14 //period2 = user defined, default is 11 //period3 = user defined, default is 10 //method = ma, default is WMA //roc = rate of change //ma = moving average, index = current bar number //MT = more than //LT = less than
Correlation Coefficient in the trading world is a useful measure to identify the strength of relationships between two instruments in price.
where: Covar=avgV1V2 − (avgV1 x avgV2) ;
avgV1 = average price of instrument 1 for the period;
avgV2 = average price of instrument 2 for the period;
avgV1V2 = Average of prices of instrument 1 multiplied by prices of instrument 2 for the period'
Var1 = avgV1Sq − (avgV1 × avgV1);
avgV1Sq = Average of the square of prices of instrument 1 (V1 x V1) for the period.
Var2=avgV2Sq−(avgV2×avgV2)
avgV2Sq = Average of the square of prices of instrument 2 (V2 x V2) for the period.
How to trade using Correlation Coefficient
The range of CC is from -1 to +1. If the value of CC is positive, it indicates that the two instruments have the same direction in terms of price. Meanwhile, if CC is negative, it suggests opposite directions of the two instruments. In case the CC is close or equal to 0, the two instruments have little to no relation. Understanding the relationship between two instruments can help traders identify the trend of one instrument based on the other.
Some examples of positive and negative CCs are between Google and Microsoft, and eBay and Amazon.
In the case of Google and Microsoft, the CC value is positive, as demonstrated by the predominantly green area on the chart. This indicates a strong positive relationship between Google and Microsoft, therefore, traders may expect similar price movements for both companies.
On the other hand, eBay and Amazon exhibits an inverse relationship, as illustrated by the largely red area on the second chart below. This suggests that the price actions of this pair often move in opposite directions.
Displays a running total of the delta volume as price bars in a separate plot. The running total is reset daily (using the trading hours).
For details on how to use this study, see our Volume and Order Flow Analysis Guide
The Daily Volume Profile displays a vertical representation of the volume distribution over the price range for the visible bars. Select intraday bars only. The user may change the number of bars, width, align, range percent and show range option. This indicator’s default values are given in the calculation below.
No trading signals are calculated for this indicator.
//Bars = user defined, default is 20 //Width = user defined, default is 100 //Align = user defined, default is right //Range Percent = user defined, default is 70 //Show Range = user defined, default is true
The Darvas Box (DB) was authored by Nicholas Darvas. The DB system uses highs, lows and a series of logical states to draw boxes around specific groups of price bars. Signals are given when the price breaks through the box. State 1 can start with any bar, and establish the high. State 2 is when the period high is lower than the State 1 period, otherwise it remains in State 1 and forms a new box top. State 3 when the period high is lower than the State 2 period, otherwise it returns to State 1 and forms a new box top. In State 3 a box bottom is formed. This may or may not be the same bar that formed the box top. State 4 is when the period low is higher than the State 3 period, otherwise it remains in State 3 and forms a new box bottom. (If the period high is higher than the box top, form a new box top and return to State 1.) State 5 when the period low is higher than the State 4 period, otherwise it returns to State 3 and forms a new box bottom. (If the period high is higher than the box top, form a new box top and return to State 1.) Only after State 5 is reached is a complete box formed on the chart.
Experiment with different time scales, some say weekly charts are best. Once a box is completed, if a high moves above the box top a sell signal will be generated. Conversely, if a low goes below the box bottom a buy signal will be given.
Calculation
//period = user defined, default is 4 //LOE = less or equal, MOE = more or equal
DecisionPoint Momentum Oscillator (PMO) was authored by Carl and Erin Swenlin, based on Rate of Change (ROC) study. PMO measures the momentum of the price actions, similar to other momentum oscillators, such as RSI or MACD. The difference between PMO and the other momentum indicators is that PMO employs a dual-smoothing process with a custom exponential moving average (EMA) method. Therefore, PMO provides smoother, more consistent signals and is more responsive to price changes.
There are two lines in a PMO chart: the PMO path and the Signal path. The PMO path illustrates the price momentum. Meanwhile, the Signal path is a 10-period MA of the PMO path that provides signals when it crosses the PMO path.
The following is the PMO's formula: PMO = shortPeriod MA of (10xlongPeriod MA of (((Today's Price/Yesterday's Price) x 100) - 100))
Signal = signalPeriod MA of PMO
Click here for more information.
How to trade using PMO
There are several ways to trade with PMO. Users can look at buy/sell signals on the chart or the overbought/oversold conditions to make decisions.
In terms of buy/sell signals, a buy signal will be generated if the PMO path crosses above the Signal path. This condition indicates a bullish crossover where the price might start to rise. In case the PMO is also below the 0 line, it is even more reliable to buy. Conversely, a sell signal will be given when the PMO path crosses below the Signal path. This condition indicates a bearish crossover where the price might start to fall. In case the PMO is also above the 0 line, it is even more reliable to sell.
In terms of overbought/oversold conditions, consider selling when the PMO path reaches abnormally high levels as it might present an overbought situation. In contrast, if the PMO path approaches abnormally low levels, traders should consider buying since it indicates an oversold situation.
The Delta MA Displays a moving average of the difference between the two given inputs over a given range of bars (Delta Range). The formula for this is as follows: Moving Average(input1 – input2[d], n) where input[d] is the input value of a bar d bars ago. The user may change the inputs, method (WMA), period and delta range length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using Delta MA
No trading signals are calculated for this indicator.
Calculation
//input1 = price, user defined, default is close //input2 = price, user defined, default is open //method = moving average (ma), user defined, default is SMA //period = user defined, default is 10 //deltaRange = user defined, default is 5 //index = current bar number
Displays the Delta Volume (Ask Volume - Bid Volume) on a separate plot.
For details on how to use this study, see our Volume and Order Flow Analysis Guide
DEMA 2Lines by Bill Mars displays two doubly smoothed, exponential moving averages. When the two averages cross trading signals are triggered. The user may change the method (EMA) and period lengths. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Trading signals are generated when the DEMA1 and the DEMA2 cross. If the DEMA1 crosses above (upward movement) a buy signal is generated. Conversely, if the DEMA1 crosses below (downward movement) a sell signal is given.
//method = moving average(ma), user defined, default is EMA //period1 = user defined, default = 10 //period2 = user defined, default = 40 //ema = expotential moving average
The DeMarker (DM) compares the most recent price action to the previous period’s price in an attempt to measure the demand of the underlying asset. DM is generally used to identify price exhaustion and market tops/bottoms. The user may change only the period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using DeMarker
Adjust the top and bottom guides to control the quantity and quality of the trading signals. If the DM crosses above the top guide a sell signal will be generated, Conversely, if the DM crosses below the bottom guide a buy signal will be given.
Calculation
//period = user defined, default is 20 //LT = less than, MT= = more than //index = current bar number
The Detrended Ehlers Leading Indicator(DELI) was authored by Jon Ehlers (See “MESA and Trading Market Cycles” by John Ehlers). The DELI uses highs, previous highs, lows, previous lows and feedback to create two exponential moving averages. First, Detrended Synthetic Price (DSP) is plotted as their difference. Then a third exponential moving average is created from the DSP and the DELI is plotted as their difference. The period length is used but in a non-traditional way. The user may change only this period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Detrended Ehlers Leading Indicator may be used in conjunction with other indicators. No trading signals are given.
//period = user defined, default is 14 //prev = previous, index = current bar number
Detrended Synthetic Price (DSP) was authored by Bill Mars. The DSP uses highs, previous highs, lows, previous lows and feedback to create two exponential moving averages. The DSP is plotted as their difference. The period length is used but in a non-traditional way. The user may change only this period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using The Detrended Synthetic Price
Detrended Synthetic Price may be used in conjunction with other indicators. No trading signals are given.
//period = user defined, default is 14 //prev = previous, index = current bar number
The Detrended Price Oscillator (DP0) was created by William Blau in 1991. DPO is a lagging oscillating cycle indicator. This means the oscillator generates signals based on historical price data, and might not react timely to the current price actions. Long-term price fluctuations are filtered out by applying a displaced moving average which will shift the latest price movements away. So instead of following the overall trend, the DPO emphasizes smaller cyclical movements, making it easier to identify short-term buy and sell points.
How to trade using DPO
The DPO calculates the cycles by comparing a previous price to a displaced moving average. The result is an oscillator that moves above and below the 0 line. A buy signal is generated when the DPO crosses above the 0 line. Conversely, a sell signal is given when the DPO crosses below the 0 line.
Traders can also use the DPO to identify the short-term overbought/oversold conditions. If the DPO rises from a negative area, it indicates an opportunity to buy. Meanwhile, if the DPO falls from a positive area, it presents an opportunity to sell.
The Directional Movement Indicator/Index (DMI) was authored by J. Welles Wilder in 1978. DMI is a valuable tool for assessing price direction and strength. It is composed of two indicators, the positive directional indicator (+DMI) and the negative directional indicator (-DMI). The user may change only the period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using Directional Movement Indicator (DMI)
The Directional Movement Indicator (DMI) may be used in conjunction with other studies. No signals are calculated for this indicator.
//period = user defined, default is 14 //index = current bar number //smma = smoothed moving average //abs = absolute value
Divergent Bars by Bill Williams, is an overlay displaying up and down arrows on certain price bars. Divergent Bars (Bullish-green; the current bar must have a lower low than the previous bar AND the current bar must close in the upper half) (Bearish-red; The current bar must have a higher high than the previous bar AND current bar must close in the lower half). This indicator’s definition is further expressed in the condensed code given in the calculation below.
Buy signals are generated if the current low is less than the previous low and the close is more than the midpoint price. Sell signals are generated if the current high is more than the previous high and the close is less than the midpoint price.
//currentAverage = midpoint = (high+low)/2previous //prev = previous //LT = lessThan, index = current bar number //MT = moreThan
The Divergent Bars Alligator Filter is a combination of the Divergent Bars and Alligator studies, authored by Bill Williams. The user may change the input (midpoint), method (SMMA), period lengths, shift lengths and percent factor. This indicator’s definition is further expressed in the condensed code given in the calculation below.
See Divergent Bars. See Alligator.
How To Trade Using Divergent Bars Alligator Filter
If the current low is less than the previous low and the close is more than the current average and the current low is less than the minimum low a buy signal will be generated. Conversely, if the current high is more than the previous high and the current close is less than the current average and the current high is more than the maximum high a sell signal will be given.
//input = price, user defined, default is midpoint //method = moving average (ma), user defined, default is SMMA //jaw period = jawP = user defined, default is 13 //jaw shift = jawS = user defined, default is 8 //teeth period = teethP = user defined, default is 8 //teeth shift = teethS = user defined, default is 5 //lips period = lipsP = user defined, default is 5 //lips shift = lipsS = user defined, default is 3 //percent factor = fac = user defined, default is 1 //index = current bar number
The Directional Trend Index by William Blau may be used to determine if a stock is trending and also identifies overbought and undersold conditions. Adjustable guides are given to fine-tune the signals. The user may change the method (EMA), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using Directional Trend Index
Adjust the top and bottom guides to control the quantity and quality of the trading signals. DTI values above 25 are considered to be overbought and therefore offer an opportunity to sell. DTI values below -25 are considered oversold and present an opportunity to buy. If the DTI peaks above the top guide a sell signal will be generated. Conversely, if the DTI troughs below the bottom guide a buy signal will be given. The 0 line divides the bulls (above) from the bears (below).
//method = moving average (ma) user defined, default is EMA //rPeriod = user defined, default is 14 //sPeriod = user defined, default is 10 //uPeriod = user defined, default is 5 //prev = previous //LT = less than, MT = more than //abs = absolute value, index = current bar number
Displaced Moving Average (DMA) displays the previous Moving Average (MA) on the current bar. The MA is also plotted as a signal line for the DMA. The user may change the input (close), method (SMA), period and displace length. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using Displaced Moving Averages
Trading signals are generated when the DMA and the MA cross. If the DMA crosses above (upward movement) a buy signal is generated. Conversely, if the DMA crosses below (downward movement) a sell signal is given.
Calculation
//input = price (user defined, default is midpoint price) //method = user defined, default is SMA //period = user defined, default = 13 //displace = user defined, default = 8 //index = current bar number
DMI Stochastic was authored by Barbara Star in the Stocks and Commodities Magazine, January 2013. The J. Welles Wilder Directional Movement Plus and Minus Indexes are combined to create an oscillator. These oscillator values are used as input to the familiar Stochastic Oscillator. A moving average of the price is also plotted. The user may change the input (close), methods, period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Click here for more information on the Stochastic Oscillator
Click here for more information on the Directional Movement Index
No trading signals are calculated for this indicator
//input = price, user defined, default is closing price //dmiPeriod = user defined, default is 10 //fastKPeriod = user defined, default is 10 //slowKPeriod = user defined, default is 3 //smoothPeriod = user defined, default is 3 //stochasticMethod = moving average, user defined, default is SMA //maPeriod = user defined, default is 50 //maMethod = moving average, user defined, default is SMA //index = current bar number
Donchian Channels were developed by Richard Donchian. They are displayed as two bands (upper and lower) which are calculated using the highest and lowest prices. These bands are often used as a volatility indicator. The user may change only the period length. This indicator’s definition is further expressed in the condensed code given in the calculation below. Click here for more information.
No trading signals are calculated for this indicator.
//period = user defined, default is 20 //index = current bar number
The Double Exponential Moving Average (DEMA) combines a smoothed EMA with a single EMA to provide a diminished amount of delays (than if the two moving averages had been used apart). This is calculated as follows DEMA = 2*EMA – EMA(EMA). The user may change the input (close), period length and shift number. This indicator’s definition is further expressed in the condensed code given in the calculation below.
The Double Exponential Moving Average is a lagging trend indicator and may be used in conjuction with other studies. No trading signals are calculated.
//input = price, user defined, default is close //period = user defined, default is 20 //shift = user defined, default is 0 //dema = double exponential moving average //index = current bar number
The Double Smooth Stochastic by William Blau is a version of a stochastic oscillator first promoted by Dr. George Lane in the 1950′s. In this version of stochastics, the numerator (close – period low) and the denominator (period high - period low) are separately, doubly smoothed, with EMA’s and the quotient multiplied by 100. A signal line (SDSS), which is an EMA of the DSS, is plotted to help trigger buy and sell signals. Using EMAs instead of SMAs is the main difference of DSS from Dr.Lane's indicator. The advantage of this approach is that EMAs are more responsive to price movements than SMAs, but also maintain smoothness and reduce noise.
Adjustable guides are also given to fine-tune the signals. The user may change the input (close), method (EMA), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Click here for more information on the Stochastic Oscillator
How to trade using Double Smooth Stochastic
Adjust the top and bottom guides to control the quantity and quality of the trading signals. DSS values above 70 to 80 are considered to be overbought and therefore offer an opportunity to sell. DSS values below 30 to 20 are considered oversold and present an opportunity to buy. In addition to the guides, if the DSS crosses the signal line a change in trend is predicted. If the DSS is above the top guide and crosses below the signal line a sell signal will be generated. Conversely, if the DSS is below the bottom guide and crosses above the signal line a buy signal will be given. The 50 line divides the bulls above from the bears below.
//input = price, user defined, default is closing price //method = moving average, user defined, default is EMA //kPeriod = user defined, default is 2 //ssPeriod = user defined, default is 3 //dsPeriod = user defined, default is 15 //sdsPeriod = user defined, default is 3 //num = numerator //den = denomator //ss = single smoothed //ds = double smoothed //dss = double smoothed stochastic //sdss = signal for double smoothed stochastic //index = current bar number
The Double Smooth Stochastic Bressert (DSS Bressert) was developed by Walter Bressert. It is a slightly different version of the DSS by William Blau. Similar to the traditional version (which is Dr. Geogre Lane's work), Bressert calculates the K-line using the raw Stochastic first, but this value is not modified at this stage like other versions. Next, an EMA is applied to smooth the K-line. Then the K-line is calculated again using the Stochastic method. Finally, the result is refined the second time with EMA. To summarize, the K-line is computed with the raw Stochastic and the results get double-smoothed by EMA.
How to trade using DSS Bressert
Adjust the top and bottom guides to control the quantity and quality of the trading signals. When the DSS Bressert line crosses the trigger line, a change in trend is predicted. If the DSS line (%K line) crosses below the trigger line, and both lines are above 80 (overbought zone), it indicates a selling opportunity. Conversely, if the DSS line crosses above the trigger line, and both lines are below 20 (oversold zone), it might be a good signal to buy. The 50 line divides the bulls above from the bears below.
DSS Bressert might be used in conjunction with other indicators, especially with long-term trend filters and volume analysis for confirmation.
The Drunkard’s Walk was authored by Ron Davis in the Stocks And Commodities Mag, December 2011. It is also referred to as a random walk and is an attempt to generate a cycle-free trend identification. Two histograms are given one called an Up Walk, the other a Down Walk. Bollinger Band ranges of the Up and Down Walks determine the color scheme of the histograms. A PercentB path is also shown. The user may change the input (close), Standard Deviation factor, and period lengths. This indicator’s definition is further expressed in the condensed code given in the calculation below.
The Drunkard’s Walk may be used with other indicators such as Stochastic Oscillator, Bollinger Bands® and the Commodity Channel Index (CCI). No signals are given for this indicator.
//input = price, user defined, default is closing price //period = user defined, default is 80 //pbPeriod = user defined, default is 14 //std = Standard Deviation user defined, default is 2 //index = current bar number
The Dynamic Momentum Index by Tushar Chande and Stanley Kroll, Stocks and Commodities Mag. 05/1993, is similar to the Relative Strength Index (RSI) except with a variable length period. The user-defined RSI period may be modified (within limits) with the average Standard Deviation value. Signals and adjustable guides are given. The user may change the input (close), period lengths, limits and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
Adjust the top and bottom guides to control the quantity and quality of the trading signals. If the dmi peaks above the top guide a sell signal will be generated. Conversely, if the dmi troughs below the bottom guide a buy signal will be given. The 50 line divides the bulls (above) from the bears (below).
//input = price, user defined, default is close //sdPeriod = user defined, default is 5 //avSdPeriod = user defined, default is 10 //rsiPeriod = user defined, default is 14 //upLimit = user defined, default is 30 //loLimit = user defined, default is 5 //stdDev = std = standard deviation //av = average, prev = previous //rsi = Relative Strength Index //sma = simple moving average, index = current bar number
D Three Ten Oscillator was authored by Bill Mars. The difference in magnitude of a three and ten period moving average maps this oscillator’s path. A signal line, which is an EMA of the D Three Ten, is also plotted to help trigger trading signals. Adjustable guides are added to fine-tune these signals. The user may change the input (close), method (EMA), period lengths and guide values. This indicator’s definition is further expressed in the condensed code given in the calculation below.
How To Trade Using D Three Ten Oscillator
Fine tune the top and bottom guides to control the number and quality of the trading signals. If the D Three Ten (V1) is above the top guide and crosses below the signal line (V2) a sell signal will be generated. Conversely, if the V1 is below the bottom guide and crosses above the signal line (V2) a buy signal will be given. The 0 line divides the bulls (above) from the bears (below).
//input = price, user defined, default is midpoint //method = moving average, user defined, default is EMA //period1 = user defined, default is 3 //period2 = user defined, default is 10 //period3 = user defined, default is 16 //ma = moving average, index = current bar number
The formula for the Correlation Coefficient is as follows: