EMA Trend Ribbon

← All 70 scripts

iqow-ema-trend-ribbon.lua 1 KB · Free, MIT license

For the IQ Option web traderoom. Quadcode does not draw HIGHER and LOWER markers on mobile.

Add it to IQ Option in 3 steps

  1. Get the file. Press Get the script. Your browser saves a .lua file.
  2. Import it in IQ Option. Open the web traderoom on the Practice balance. Click the wave icon at the bottom left of the chart, open the Scripts tab, press Import script and pick the file.
  3. Add it to the chart. The code opens in an editor. Click the plus button under it (Add to chart). Save is only needed after you edit the code.

Risk. Trading can lose money. A marker is a chart observation, not a prediction, and this script is checked on test data, not proven in live trading. Try it on the Practice balance first.

  • Trend
  • Context indicator
  • On price
  • Beginner

Plots a fast and slow exponential moving average over price and shades the space between them with a neutral ribbon, making the relationship between two smoothing speeds easier to see.

  • File iqow-ema-trend-ribbon.lua
  • Version 1.0.0
  • Size 47 lines · 1 KB
  • Timeframes Any timeframe
  • License MIT
EMA Trend Ribbon drawn on synthetic candles
How the script draws, shown on synthetic candles generated for testing. It is an illustration of the markers and lines, not real market data or a result.

How to read it

When the fast line is above the slow line the short-term average is rising faster than the longer one; the ribbon width shows how far apart they are.

Indicators used

  • EMA 9
  • EMA 21

Same view with built-in indicators: Two Moving Average indicators (exponential, 9 and 21).

Default settings

Fast EMA9
Slow EMA21

Every value is an input in the script settings. Platform advice is off by default.

Key points

  1. Two exponential moving averages, a fast 9 and a slow 21.
  2. The shaded ribbon shows the gap between them.
  3. A widening ribbon means the two speeds are separating.
  4. In a sideways market the lines cross often, so read it together with price structure.

Limitations. Moving averages lag and can cross repeatedly in a range. Test on the Practice balance before risking real funds.

Learn the strategy: read the full guide on IQOptionWiki →

Complete source code

The download and this preview resolve to the same reviewed file. SHA-256: be716c7bc04ab26c96b7bd781bee65ad52ef36668aeb0bf8b15ef8862aac1239

-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Starter Library
-- IQOW EMA Trend Ribbon v1.0.0
--
-- Shows a fast and a slow exponential moving average with a neutral ribbon.
-- This indicator does not place trades, predict outcomes, or provide signals.

instrument {
    name = "IQOW EMA Trend Ribbon",
    short_name = "IQOW EMA Ribbon",
    icon = "indicators:MA",
    overlay = true
}

fast_period = input (9, "Fast EMA period", input.integer, 1, 500)
slow_period = input (21, "Slow EMA period", input.integer, 1, 500)
source = input (1, "Source", input.string_selection, inputs.titles_overlay)

input_group {
    "Fast EMA",
    fast_color = input { default = "#2E77D1", type = input.color },
    fast_width = input { default = 2, type = input.line_width }
}

input_group {
    "Slow EMA",
    slow_color = input { default = "#FF8A34", type = input.color },
    slow_width = input { default = 2, type = input.line_width }
}

input_group {
    "Ribbon",
    ribbon_visible = input { default = true, type = input.plot_visibility },
    ribbon_color = input { default = rgba(86, 206, 255, 0.12), type = input.color }
}

local source_series = inputs [source]

fast_ema = ema (source_series, fast_period)
slow_ema = ema (source_series, slow_period)

if ribbon_visible then
    fill (fast_ema, slow_ema, "EMA ribbon", ribbon_color)
end

plot (fast_ema, "Fast EMA", fast_color, fast_width)
plot (slow_ema, "Slow EMA", slow_color, slow_width)

More trend scripts

  • Trend
  • On price
  • Beginner

SMA 8 21 Cross

Marks the candle on which the 8-period simple moving average crosses the 21-period average and price closes beyond both lines. It is the classic two-average cross with a simple price check.

Indicators: SMA (8) · SMA (21)

  • Trend
  • On price
  • Intermediate

Supertrend EMA 200

Marks Supertrend direction flips only when the candle closes on the same side of the 200-period EMA. The EMA acts as a simple long-term bias filter for the Supertrend flip.

Indicators: Supertrend (10, 3) · EMA (200)

  • Trend
  • Own panel
  • Intermediate

Trend Intensity Index

Marks the moment the Trend Intensity Index enters its strong zone: above 80 for upward pressure or below 20 for downward pressure, with the close on the matching side of the 60-period SMA. It is a trend-strength entry marker, not a reversal marker.

Indicators: Trend Intensity Index (30, SMA 60)

Download all 70 scripts as one ZIP · MIT License, provided “as is”, without warranty. IQOptionWiki is independent of the IQ Option platform operator. Nothing here is investment advice or a guarantee of results.

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.