EN
Topbar Menu Icon 1Help Centre
Topbar Menu Icon 2Contact Us
Company Logo
Trading
Our Markets
  • Forex
  • Commodities
  • Metals
  • Stocks
  • Indices
  • Cryptocurrencies
  • Futures
  • ETFs
  • Crosses
Our Accounts
  • Advantage
  • Advantage Plus
  • Advantage Stocks
  • Practice
Our Platforms
  • Desktop
  • Mobile App
  • MetaTrader 4
  • MetaTrader 5
Terms
  • Fees
  • Deposits and Withdrawals
  • Dividends Calendar
  • Contract Specifications
  • Leverage and Margin
Tools & Analysis
Market Analysis
  • Economic Events
  • Meet the Team
Tools
  • Pip Calculator
  • Profit Calculator
  • Currency Converter
  • Economic Calendar
  • Trading Schedule
Rewards & Promos
FXTM Rewards
    Promotions
    • Refer a Friend
    Learn
    Learn to Trade
      Popular Guides
      • Forex Trading for Beginners
      • CFD Trading for Beginners
      About
      About Us
      • Fund Safety
      • Blog
      Partners
      • Affiliates
      Terms and Conditions

        Linear Regression Indicator 

        * Trading is risky. Your capital is at risk.

        side image
        0

        In this article, we will review the Linear Regression indicator, which displays the best-fit line through the last N bars based on their prices, such as close, high, or low.

        The Linear Regression indicator shows the linear regression of the last N bars, as a best-fit line through their close prices (or highs, or lows etc.) You can add multiple copies of the indicator to a chart in order to show different regressions: for example, one indicator showing the linear regression of the highs and another showing the linear regression of the lows, forming a channel.

        You can also use the indicator to show the regression of prices on another timeframe, e.g. the linear regression of D1 close prices while viewing an H1 chart.

        How to install Linear Regression Indicator?

        To download and install the Pro Trading Tools please follow these steps:

        1. Login to FXTM profile > Hub > Pro Trading Tools

        2. Download FX Blue or Trading Central for your Platform (Meta Trader 4 or Meta Trader 5)

        3. Run the downloaded FX Blue and Trading Central files and apply them to your chosen MetaTrader Platform when prompted.

        4. Relaunch the MetaTrader platform. You’ll find your FX Blue* and Trading Central tools in the ‘Navigator panel under ‘Indicators’ and/or ‘Expert Advisors’.

        Note: FX Blue tools will appear in MetaTrader labeled as FXTM or Figaro app suite.

        Using the Linear Regression indicator

        Adding the indicator to a chart

        You add the Linear Regression indicator to a chart in the usual MT4 way, either by dragging it from the Navigator onto a chart, or by double-clicking on it in the Navigator. You can also use standard MT4 features such as adding the indicator to your list of Favorites, or assigning a Hotkey to it.

        Choosing the number of bars, and the shift

        You use the Inputs tab to tell the indicator how many bars to include in the calculation (a minimum of 2).

        You can also set the bar-shift. The default value of 1 means “up to but not including the current bar”. A value of 0 would include the current bar, and the regression calculation would therefore change slightly on each tick.

        Extending the line to the current bar

        By default the indicator will extend the regression line to the current bar. For example, with a bar-shift of 1 the calculation will not include the current bar, but the indicator will extend the drawing of the line into the current bar for comparative purposes. You can turn off this extension using the Inputs tab (and the setting is irrelevant if the bar-shift is zero).

        Price type

        You can use the Inputs tab to calculate the linear regression of different types of price: not just the close price, but also the high, low, open, median, typical, or weighted price.

        You can add multiple copies of the indicator to a chart in order to show different regressions: for example, one indicator showing the linear regression of the highs and another showing the linear regression of the lows, forming a channel.

        Timeframe

        By default the indicator will use the timeframe of the current chart, and will change its calculation if you change the chart. However, you can use the Inputs tab to specify a different timeframe, e.g. showing the regression of D1 prices while viewing an H1 chart.

        Interpolation on higher timeframes

        When showing the regression from a higher timeframe on a lower timeframe chart (e.g. D1 versus H1), by default the indicator will show the same single value for each bar which makes up the higher timeframe. This creates a stepped line such as the following:

        You can use the Inputs tab to tell the indicator instead to interpolate values for each individual bar on the lower timeframe, creating a smoothed line.

        However, please note that the interpolation can create a “kink” in the line at the beginning of the current period. For example, if you are viewing the D1 regression on an H1 chart, and the current day is only 3 H1 bars old, then the values for the current day are interpolated over only 3 bars whereas the values for all previous, full days are interpolated over 24-hourly bars. This creates the “kink”.

        Colours and line styles

        You can set the colour and style for the indicator’s line in the usual way, via the Colors tab.

        Press enquires

        Have more questions?

        Get in touch with the friendly FXTM support team.
        Social Media Icon 1Social Media Icon 2

        Our offering

        • Markets
        • Accounts
        • Platforms
        • Tools
        • Trading terms

        Popular markets

        • Forex
        • Commodities
        • Metals

        Trading

        • Mobile App
        • MetaTrader 4
        • Metatrader 5

        Learn

        • Learn to trade

        Company

        • About us
        • Blog
        • Partners
        • Affiliates
        • Terms and Conditions

        Exinity Limited, with registration number C119470 C1/GBL and registration address at 5th Floor, NEX Tower, Rue du Savoir, Cybercity, 72201 Ebene, Republic of Mauritius is regulated by the Financial Services Commission of the Republic of Mauritius with an Investment Dealer License with license number C113012295, licensed by the Financial Sector Conduct Authority (FSCA) of South Africa, with FSP No. 50320 and is a licensed Over the Counter Derivative Provider. Exinity Works (CY) Ltd, with registration number HE 351684 and registered address Agiou Athanasiou 30, Ksenos Building, Floors 2-5, Agios Athanasios, Limassol, 4102, Cyprus. Exinity Works (CY) Ltd does not engage in any regulated financial or investment activities.

        Risk Warning: Trading Leveraged Financial instruments involves significant risk and can result in the loss of your invested capital. You should not invest more than you can afford to lose and should ensure that you fully understand the risks involved. Trading leveraged products may not be suitable for all investors. The value of shares can fall as well as rise, which could mean getting back less than you originally put in. Past performance does not guarantee future results. Before trading, take into consideration your level of experience, investment objectives and seek independent financial advice if necessary. It is the responsibility of the client to ascertain whether they are permitted to use the services of Exinity brand based on the legal requirements in their country of residence.

        Please read our full Risk Disclosure.

        Regional restrictions Exinity Limited does not provide services to residents of the USA, Mauritius, Japan, Canada, Haiti, Iran, Suriname, the Democratic People's Republic of Korea, Puerto Rico, the Occupied Area of Cyprus, Quebec, Iraq, Syria, Cuba, Belarus, Myanmar, Russia and India.

        logo
        We value your privacy
        We use cookies to give you the best-possible experience on our site and serve you personalised content. Click "Sounds good" to agree to our Cookie Policy.
        Sounds good