- 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.
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 EMA | 9 |
|---|---|
| Slow EMA | 21 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- Two exponential moving averages, a fast 9 and a slow 21.
- The shaded ribbon shows the gap between them.
- A widening ribbon means the two speeds are separating.
- 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.
Install it in four steps
- Download and inspectDownload one .lua file and open it in a plain-text editor if you want to read it first. If you downloaded the ZIP, extract it.
- Open Chart Analysis → ScriptsIn the IQ Option traderoom, choose the Practice balance, open the chart analysis panel, select Scripts and choose Import script.
- Save and add to chartSelect the downloaded file, review the imported code, choose Save, then use the + control to add it to the chart.
- Change one input at a timeConfirm the default view first. Then adjust periods, levels or colours one setting at a time and note what changes.
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 56 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.