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.