Thursday, August 5, 2021

Candlestick Momentum

Author: Andrey N. Bolkonsky

Candlestick Momentum Indicator (q-period Candlestick Momentum) by William Blau is described in the book “Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis”.

  • WilliamBlau.mqh must be placed in terminal_data_folder\MQL5\Include\
  • Blau_CMtm.mq5 must be placed in terminal_data_folder\MQL5\Indicators\

Momentum is the difference between the current price (for example, closing price of the bar) and the previous price (several bars ago). Momentum can be applied to any timeframe and period.

According to William Blau, the Candlestick Momentum is defined as a change of the price over the fixed interval:

cmtm = close – open


  • close – close price of the bar (candle);
  • open – open price of the bar (candle).

Candlestick momentum can be plus or minus in the sense that an up momentum is positive when the close is greater than the open; the reverse is true when the open is greater than the close giving a negative value to the downward momentum.

The definintion of Candlestick Momentum can be extended:

  1. Candlestick Momentum can be applied to any timeframe;
  2. The applied price (closing price, open price) may vary.
The definition of the q-period Candlestick Momentum
Candlestick Momentum Indicator by William Blau


The formula for calculation of Candlestick Momentum looks as follows:

cmtm(price1,price2,q) = price1 – price2[q-1]


  • q – number of bars, used in calculation of Candlestick Momentum;
  • price1 – close price;
  • price2[q–1] – open price q bars ago.

The smoothed q-period Candlestick Momentum is calculated as follows:

CMtm(price1,price2,q,r,s,u) = EMA(EMA(EMA( cmtm(price1,price2,q) ,r),s),u)


  • q – number of bars, used in calculation of q-period Candlestick Momentum;
  • price1 – close price;
  • price2 – open price q bars ago;
  • cmtm(price1,price2,q)=price1-price2[q-1] – q-period Candlestcik Momentum;
  • EMA(cmtm(price1,price2,q),r) – 1st smoothing – EMA (r), applied to q-period Candlestick Momentum;
  • EMA(EMA(…,r),s) – 2nd smoothing – EMA(s), applied to result of the 1st smoothing;
  • EMA(EMA(EMA(…,r),s),u) – 3rd smoothing – EMA(u), applied to result of the 2nd smoothing.

Input parameters:

  • q – period of Candlestick Momentum Indicator (by default q=1);
  • r – period of the 1st EMA, applied to Candlestick Momentum (by default r=20);
  • s – period of the 2nd EMA, applied to result of the 1st smoothing (by default s=5);
  • u – period of the 3rd EMA, applied to result of the 2nd smoothing (by default u=3);
  • AppliedPrice1 – price type (by default AppliedPrice=PRICE_CLOSE);
  • AppliedPrice2 – price type (by default AppliedPrice=PRICE_OPEN).


  • q>0;
  • r>0, s>0, u>0. If r, s or u are equal to 1, the smoothing is not used;
  • Min. rates =(q-1+r+s+u-3+1).


Installing indicators on MT5 comes down to:

  1. Downloading the files (.ex5 and .mq5 formats)
  2. Placing them in the MT5 “Indicators” Data Folder
  3. Closing and re-starting your MT5 terminal
  4. Dragging you indicator from the Navigator to the Forex Chart

Downloading the indicator.

Download and prepare the MT5 indicator file(s) so they are ready to go on your computer. (Please note that some custom indicators will come in a .rar file, so make sure to extract the .ex5 and .mq5 files).

Go back to your Metatrader 5 platform, click the File Tab and select “Open Data Folder” to get access to the system folders for the MT5 program:

Placing them in the MT5 “Indicators” Data Folder.

Go to the “MQL5” folder and the “Indicator” subfolder and open the folder.

Drag or copy and paste the custom indicators files to the “Indicators” subfolder.

Restart the MT5 program. When MT5 loads again, you should see your custom indicator added to the directory in the navigation window.

Go to the navigation window and scroll down the menu to “Indicators”, pick the one you want to use and drag it to your chart.

For a video on how to install you MT5 indicators please visit our Youtube channel.

Peppperstone is an award winning broker with a No Dealing Desk, Pure ECN model. Their cutting edge technology coupled with pricing from 22 Tier 1 banks ensures that traders will receive the fastest execution at the most competitive pricing available. 


Pepperstone is authorized to do business in many different countries around the world.  The two main regulatory bodies that are responsible for oversight of Pepperstone’s operations is the Australia Securities and Investment Commission (ASIC) and UK’s Financial Conduct Authority (FCA).

Trading Platforms

There are two primary choices of trading platforms that Pepperstone supports. The first is the industry standard Metatrader platform and the second is the ECN based cTrader platform.

Trading Instruments

Pepperstone offers 100+ trading interments, with a primary specialization in Forex and CFDs (Contracts for Difference).  There are over 70 currency pairs available to trade, everything from the majors, to the minors and exotic pairs. With access to the interbank market for razor thin dealing spreads starting at 0 pips, forex traders will find Pepperstone to an excellent choice.

Commissions and Spreads

As an ECN broker, Pepperstone offers extremely tight dealing spreads. The actual trading cost will depend on the type of account chosen. Pepperstone offers two primary account types – Razor Account and the Standard Account. The Razor Account is a true ECN based broker account with Interbank pricing and a commission charged to the trader.

Open your account. Trade within minutes. Full Review here



Risk Disclaimer for Forex Trading. Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. Past performance is not indicative of future results. The high degree of leverage can work against you as well as for you. is a trade signal service.  You understand that none of the strategies or indicators that we make availible constitutes a recommendation that any particular trade is suitable. By downloading an indicator or strategy, you are confirming that you have read and agree to all of the terms and conditions posted on our terms and conditions page. We are not responsible for the content of any sites that may be linked to or from the Site or any message board (referred to on the Site as the “forum”) associated with us or the Site. These links are provided for your convenience only and you access them at your own risk. Unless otherwise noted, any other website accessed from the Site is independent from us, and we have no control over the content of that other website. We do not own the indicators available for download. All indicators are freely available on other websites and forums. If you are the owner of an indicator or strategy that we have made available for download, and you are wanting us to cease promoting it, please sent us an email and we will delete the post. If you would like the description modified, please contact us. In addition, a link to any other web site does not imply that we endorse or accept any responsibility for the content or use of such other website.

Previous articleBlau TStochastic
Next articleSATL
Metatrader Indicators was developed by Forex traders for traders. We wasted hours, probably years, looking for indicators, software and Forex broker reviews. is a hub for technical traders. It represents years of work, knowledge and experience. Enjoy and stay true to your passion.

top forex brokers