iqow-price-ema-distance-percent.lua 2 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
- Get the file. Press Get the script. Your browser saves a .lua file.
- 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.
- 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.
Full illustrated guide, with screenshots →
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.
- Momentum
- Context indicator
- Own panel
- Beginner
Shows how far the selected price source is above or below an EMA in percentage terms. A configurable reference zone helps compare the current distance with your chosen scale.
How to read it
Above zero means price is above its EMA; the further from zero, the more stretched price is compared with its average.
Indicators used
- EMA (20) distance in %
Same view with built-in indicators: Moving Average Deviation shows a similar distance with IQ Option's built-in indicator.
Default settings
| EMA period | 20 |
|---|---|
| Reference zone | ±1% |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- This panel shows the gap between price and its 20 EMA in percent.
- Zero means price sits exactly on the average.
- The reference zone gives you a fixed scale for stretched conditions.
- A stretched reading can stay stretched in a strong trend.
Limitations. Distance from an average does not imply a reversal. Test on the Practice balance before risking real funds.
Complete source code
The download and this preview resolve to the same reviewed file. SHA-256: cfad946108444b5a8e79198691b5f97b6d0fc949e8f6f02ec1e1af3ff7379494
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Starter Library
-- IQOW Price EMA Distance Percent v1.0.0
--
-- Measures the selected price source's percentage distance from an EMA.
-- Positive values are above the EMA; negative values are below it.
-- This indicator does not place trades, predict outcomes, or provide signals.
instrument {
name = "IQOW Price EMA Distance Percent",
short_name = "IQOW EMA Distance %",
icon = "indicators:MA",
overlay = false
}
period = input (20, "EMA period", input.integer, 1, 500)
source = input (1, "Source", input.string_selection, inputs.titles)
input_group {
"Distance line",
line_color = input { default = "#B58CFF", type = input.color },
line_width = input { default = 2, type = input.line_width }
}
input_group {
"Reference zone",
reference_value = input (1.0, "Reference percent", input.double, 0.1, 100, 0.1, false),
upper_color = input { default = rgba(37, 225, 84, 0.55), type = input.color },
lower_color = input { default = rgba(255, 108, 88, 0.55), type = input.color },
center_color = input { default = rgba(255, 255, 255, 0.35), type = input.color },
zone_color = input { default = rgba(255, 255, 255, 0.05), type = input.color },
reference_width = input { default = 1, type = input.line_width }
}
local source_series = inputs [source]
ema_basis = ema (source_series, period)
distance_percent = (source_series - ema_basis) / ema_basis * 100
fill_area (reference_value, -reference_value, "Reference zone", zone_color)
plot (distance_percent, "Price to EMA distance %", line_color, line_width)
hline {
value = reference_value,
color = upper_color,
width = reference_width,
style = style.dash_line
}
hline {
value = -reference_value,
color = lower_color,
width = reference_width,
style = style.dash_line
}
hline {
value = 0,
color = center_color,
width = reference_width
}
More momentum scripts
- Momentum
- Signal engine
- On price
- Advanced
IQ_WIKI_SCRIP_V1.1.0
A completed-candle adaptation of the regular IQOptionWiki Signals score. It weighs RSI, MACD, Bollinger %B, five directional candle patterns and optional chart-volume confirmation into one score and marks new qualifying setups.
Indicators: RSI · MACD · Bollinger %B (population deviation) · Five candlestick patterns · Optional chart volume
- Momentum
- Signal engine
- On price
- Advanced
IQ_WIKI_BINARY_SIGNAL_GUN_V1.1.0
A stricter local confluence engine with weighted RSI, ATR-normalized MACD, Bollinger and pattern-family votes. Optional strategy alignment must agree with the base direction.
Indicators: Weighted RSI · ATR-normalized MACD · Bollinger · Pattern families · ATR risk
- Momentum
- On price
- Beginner
Awesome Oscillator SMA
Marks the candle on which the Awesome Oscillator crosses zero in the direction of the 100-period SMA. The SMA acts as a simple trend filter for the oscillator.
Indicators: Awesome Oscillator (5, 34) · SMA (100)
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.