Linear Regression Slope on IQ Option: Settings, Formula and Tests

Last updated: 8 October 2026. Every screenshot below was recorded on 8 October 2026 on an IQ Option Practice account registered in Brazil, on EUR/USD 5-minute candles; the Chart analysis picture in Step 1 was recorded on 5 October 2026. We placed no real-money trade. The settings come from the platform’s dialog and the calculation from the published source code of the platform’s built-in indicators (Quadcode’s script library). The tested box shows what the rule, the slope with Williams %R, did on EUR/USD candles recorded between 29 September and 5 October 2026; it says nothing about what will happen next.

The Linear Regression Slope fits a straight line to the closes of the last n candles by least squares and plots how steep that line is, in price units per candle. On IQ Option it opens in its own panel under the price chart as one line around a zero line: above zero the fitted line rises, below zero it falls, and the further from zero the steeper the trend. The platform opens it at a period of 14; a period of 100 is used for the long-term trend, combined with the Williams %R of 14. On 5-minute EUR/USD candles the slope at period 14 ranged from −4.8 to +3.3 pips per candle and crossed zero 86 times in 1,308 candles; at period 100 it ranged from −1.1 to +0.4 and crossed zero 14 times.

Quick answer

  • What it plots: one line in a panel under the price chart, around a zero line.
  • Formula: slope = the value of the least-squares line through the last n closes at the latest candle minus its value one candle earlier, in price units per candle (0.0001 is one pip).
  • Settings on the platform: Period 14 and Source (close).
  • Reading: above zero the fitted line rises (uptrend), below zero it falls (downtrend); a steeper slope is a stronger trend. A longer period gives a smoother line that crosses zero less often.
  • Where: the Trend list of the Chart analysis panel; search for Linear Regression Slope.
  • Tested: the slope of 100 with the Williams %R of 14 gave 81 signals on 5-minute candles; 1-candle trades won 37 of 80 decided (46.2%), 3-candle trades 40 of 80 (50.0%); on 1-minute candles 79 signals and 49.4%. Break-even is 54.1% at an 85% payout, and a few days of one pair prove nothing.

How do you add the Linear Regression Slope on IQ Option?

Set the chart

Choose the asset, the chart type and the candle size first: the indicator is calculated from the candles on the chart. The examples in this guide use 5-minute candles on EUR/USD. These steps use the web traderoom on a Practice balance, and the numbers in each screenshot match the numbers in the text. If you do not have an account yet, see how to register.

Step 1: Open Chart analysis

Click the indicators button (1), the wave icon in the chart toolbar at the bottom left of the chart. The Chart analysis panel opens with the tabs Indicators, Templates, Widgets and Scripts. Stay on Indicators.

IQ Option traderoom with the Chart analysis panel open and the indicators button numbered 1
Step 1: the indicators button (1) opens the Chart analysis panel.

Step 2: Find Linear Regression Slope

Type “Linear Regression Slope” in the Search for indicators box (1), or open the Trend list, and click Linear Regression Slope (2).

Chart analysis search box with Linear Regression Slope typed in (1) and the Linear Regression Slope result (2)
Step 2: the search box (1) and the Linear Regression Slope result (2).

Step 3: Check the settings

The dialog has the tabs Basic settings (1), Colors and display and Script. The Period (2) opens at 14, the number of candles that the straight line is fitted to. The Source (3) opens at close, the price the line is fitted to.

Linear Regression Slope dialog on the Basic settings tab (1) with 2 settings (2 to 3)
Step 3: the Basic settings tab (1), the Period (2) and the Source (3).

Step 4: Check the colours and click Apply

Open the Colors and display tab (1). The tab has two rows: Main line, purple by default, and Base line, the grey zero line, which has a checkbox; each has a colour box and a line-style box. Click Apply (3).

Linear Regression Slope dialog on the Colors and display tab (1) with the colour rows (2) and the Apply button (3)
Step 4: the Colors and display tab (1), the Main line and Base line rows (2) and the Apply button (3).

Step 5: Read the panel

The panel under the price chart is titled Linear Regression Slope (14,close) (1). The purple line (2) moves around a grey 0 line, and the scale at the right edge is in price units per candle, for example 0.0001, 0 and −0.0001.

EUR/USD 5-minute chart: the left end of the Linear Regression Slope panel with its title (1), and its right end with the lines (2) and the scale
Step 5: the panel title (1) with the period and the source, and the slope line around its 0 line (2) on EUR/USD 5-minute candles. The picture joins the left end of the panel (top) and its right end with the scale (bottom).

How is the Linear Regression Slope calculated?

For every candle the Quadcode source fits a straight line, by least squares, through the last n values of the source (the closes, by default) and reads two points of that line: its value at the latest candle and its value at the candle before. The indicator is the difference between the two, which is the slope of the fitted line, in price units per candle. For EUR/USD, a slope of 0.0001 is one pip per candle. A rising price gives a positive slope, a falling price a negative one, and a flat price a slope near zero.

PartDefaultWhat it does
Period14Number of candles that the straight line is fitted to
SourcecloseThe price used

The longer the period, the more candles the line is fitted to and the less it reacts to one candle. A higher period is a more significant measurement, and a period of 100 is used to determine long-term trends.

How do you read the Linear Regression Slope?

The slope is read as an oscillator around zero. Positive values, with the line above the zero line, mean an uptrend and negative values a downtrend; a rapid movement of the oscillator shows a strong trend. The indicator is a lagging one, gives no entry or exit points by itself and should be combined with leading tools such as moving averages or momentum oscillators. A usual example pairs the slope with the Williams %R: the slope with a period of 100 gives the trend, and the Williams %R with a period of 14 gives the entry. In an uptrend (slope above zero) the entry is long when the %R rises from below −80 and crosses it upwards; in a downtrend (slope below zero) the entry is short when the %R falls from above −20 and crosses it downwards.

What did it look like on 5-minute candles?

We replayed the library script on EUR/USD 5-minute candles recorded from the Practice traderoom: 1,093 candles from 29 September 2026 (01:55 UTC) to 2 October (20:55 UTC) and 241 from 4 October (21:00 UTC) to 5 October (17:00 UTC).

  • Period 14 (platform default): a value from the 14th candle of each stretch, 1,308 values; from −4.8 to +3.3 pips per candle; above zero on 560 candles (43%); 86 crossings of zero, one every 15 candles.
  • Period 100 (the usual one): a value from the 100th candle, 1,136 values; from −1.1 to +0.4 pips per candle; above zero on 435 candles (38%); 14 crossings of zero, one every 81 candles.

Two stills of the platform, window A (the Step 5 picture) and window B (not pictured), agree with the replay of the period 14. In window A, 29 September from 06:43 to 12:38 on the platform clock, the slope rises through 0 at 07:20, peaks at +0.0001 (one pip per candle) at 08:05, falls through 0 at 09:45, bottoms at −0.0001 at about 10:10, and crosses 0 twice more, at 11:30 and 11:50. In window B, from 12:03 to 17:52, it stays near 0 and under it until 15:05, then peaks at +0.00024 at 15:45, falls through 0 at 16:45 and returns above 0 at 17:50. The replay gives the same crossings and extremes, which shows that the panel’s scale is in price units per candle. (The platform draws the value of a candle at the time the candle closes: the candle that opened at 08:00 sits at the 08:05 mark.)

The slope with Williams %R, tested

We wrote the example as an exact rule on closed candles: Higher on the candle where the slope (100 candles) is above zero and the Williams %R (14 candles) rises back above −80 after being at or below it; Lower on the candle where the slope is below zero and the %R falls back below −20 after being at or above it. The option opens at the close of the signal candle. No expiry is given, so the box shows five minutes and fifteen minutes on 5-minute candles, five minutes on 1-minute candles, and the same rule with the platform’s slope period of 14.

Tested on IQ Option: the slope with Williams %R, EUR/USD candles of 29 September to 5 October 2026

Asset and candlesEUR/USD binary (regular, not OTC): 1,334 five-minute candles (2026-09-29 01:55 to 2026-10-02 20:55 UTC and 2026-10-04 21:00 to 2026-10-05 17:00 UTC); 1,505 one-minute candles (2026-10-02 18:23 to 2026-10-02 20:59 UTC and 2026-10-04 21:01 to 2026-10-05 19:28 UTC). The candles were recorded from IQ Option’s Practice traderoom. The replay places no orders; it only scores the rule on those closed candles, at an 85% payout.
Rule testedThe example on closed candles: Higher on the candle where the slope (period 100) is above zero and the Williams %R (14) rises back above −80 after being at or below it; Lower on the candle where the slope is under zero and the %R falls back below −20 after being at or above it. The option opens at the close of the signal candle; no expiry is given, so the box shows 5 and 15 minutes on 5-minute candles and 5 minutes on 1-minute candles, and the same rule with the platform’s default slope period of 14.
SignalsSlope(100) with Williams %R(14), 5-minute, 1 candle: 81 signals (37 Higher, 44 Lower)
Slope(100) with Williams %R(14), 5-minute, 3 candles: 81 signals (37 Higher, 44 Lower)
Slope(14) default with Williams %R(14), 5-minute, 1 candle: 7 signals (2 Higher, 5 Lower)
Slope(100) with Williams %R(14), 1-minute, 5 candles: 79 signals (41 Higher, 38 Lower)
OutcomesSlope(100) with Williams %R(14), 5-minute, 1 candle: 37 won, 43 lost, 1 tied; 46.2% of the 80 decided trades won; net −$0.14 per $1 staked at 85% (−$0.12 at 91%)
Slope(100) with Williams %R(14), 5-minute, 3 candles: 40 won, 40 lost, 1 tied; 50.0% of the 80 decided trades won; net −$0.07 per $1 staked at 85% (−$0.04 at 91%)
Slope(14) default with Williams %R(14), 5-minute, 1 candle: 3 won, 4 lost, 0 tied; 42.9% of the 7 decided trades won; net −$0.21 per $1 staked at 85% (−$0.18 at 91%)
Slope(100) with Williams %R(14), 1-minute, 5 candles: 38 won, 39 lost, 2 tied; 49.4% of the 77 decided trades won; net −$0.09 per $1 staked at 85% (−$0.06 at 91%)
Break-evenAt an 85% payout a trade needs to win more than 54.1% of its decided trades to break even (1 ÷ 1.85); at 91%, more than 52.4% (1 ÷ 1.91).

A replay is only a look back at candles recorded on the dates above: it placed no real orders, covers about four and a half days of one pair, and counts overlapping trades as if they were independent. A short test proves nothing about the future, and no profit and no win rate is promised here. IQ Option’s own blog on backtesting says that most strategies need dozens, and often hundreds, of trades before a result means anything.

The rule with the slope of 100 and the Williams %R of 14 gave 81 signals on 5-minute candles, 37 Higher and 44 Lower. With a trade of one candle (5 minutes) 37 won and 43 lost (46.2%, with a 95% interval of 36% to 57%); with three candles (15 minutes) 40 won and 40 lost (50.0%). On 1-minute candles with a 5-minute trade it gave 79 signals and 38 won against 39 (49.4%). With the platform’s own period of 14 the rule gave only 7 signals (3 won, 4 lost), because the slope is then usually on the opposite side of zero when the %R returns from its extreme. None of the results is above the break-even rate of 54.1%.

Try the Linear Regression Forecast yourself

Change the settings and the market character to see how the indicator responds. Every candle is generated in your browser, so nothing here is market data.

Indicator training

Linear Regression Forecast Indicator Simulator

Watch the regression line track a candle chart generated in your browser, with every price crossing marked.

Important: Every candle is invented by a seeded generator, not market data. It shows how the indicator behaves and cannot be used to judge a real instrument.

Pros and Cons of the Linear Regression Slope

ProsCons
One number for the steepness of the trend, in price units, so two periods can be compared.It lags: the line is fitted to past candles and turns after the price does.
A longer period gives a calm line: at period 100 it crossed zero only 14 times in about four and a half days.It gives no entry or exit by itself; it is usually paired with the Williams %R.
Works on any chart and any asset, with one setting.The values depend on the price level of the asset: the slope of EUR/USD is not comparable with the slope of a share.

Common mistakes

  • Reading the slope as a forecast. It describes the trend of the last n candles; it is a lagging indicator.
  • Using period 14 as a trend filter. It crossed zero every 15 candles in our recording; the usual trend period is 100.
  • Comparing values between assets. The slope is in price units per candle.
  • Trading the Williams %R signal against the slope. The rule takes only longs above zero and only shorts below zero.

Related guides

Frequently Asked Questions

Q: What is the Linear Regression Slope?
A: The slope of a straight line fitted by least squares to the last n closes, in price units per candle. It is positive when the line rises and negative when it falls.

Q: What settings does the Linear Regression Slope have on IQ Option?
A: Period 14 and Source set to close. The Colors and display tab has a colour and a line style for the slope line and for the zero line.

Q: Which period should I use?
A: The platform opens at 14; 100 is used to find the long-term trend. A longer period crosses zero less often.

Q: How is it combined with the Williams %R?
A: It trades only with the trend: long when the slope is above zero and the %R crosses up through −80, short when the slope is below zero and the %R crosses down through −20. The results are in the tested box.

Q: Is the Linear Regression Slope a leading indicator?
A: No. It is a lagging indicator, and leading tools, such as moving averages or momentum oscillators, are used next to it.

Q: Can I use it on binary options?
A: The platform draws it on any chart. Whether a rule works is something to test on the Practice balance with the expiry you plan to use.

GENERAL RISK WARNING

The financial products offered by the company carry a high level of risk and can result in the loss of all your funds. You should never invest money that you cannot afford to lose.
Kindly note that this article does not provide any investment advice. The information presented regarding past events or potential future developments is solely an opinion and cannot be guaranteed as factual, including the provided examples. We caution readers accordingly.