Ultimate Oscillator Cross Markers

← All 70 scripts

iqow-ultimate-oscillator-markers.lua 5 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.

  • Momentum
  • Marker companion
  • On price
  • Beginner

Draws the HIGHER and LOWER markers of the Ultimate Oscillator Cross script on the price chart, above and below the candles, so they show on every asset, JPY pairs included. No lines: add Ultimate Oscillator Cross as well for the Ultimate Oscillator line.

  • File iqow-ultimate-oscillator-markers.lua
  • Version 1.0.0
  • Size 138 lines · 5 KB
  • Timeframes 1-minute to 15-minute candles
  • License MIT

This is the price-chart companion of Ultimate Oscillator Cross. It draws no lines, only the same HIGHER and LOWER markers, above and below the candles, so they show on every asset, JPY pairs included. Load both scripts and keep their settings equal.

Ultimate Oscillator Cross Markers 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.

The rules

HIGHER marker

The Ultimate Oscillator closes above 30 after being at or below it.

LOWER marker

The Ultimate Oscillator closes below 70 after being at or above it.

A marker appears after the next candle opens and is drawn on the candle that completed the setup. It is a chart observation, not an instruction to trade.

How to read it

Markers only, on the price chart: a green HIGHER triangle below a candle and a red LOWER triangle above it, each on the candle that completed the setup of Ultimate Oscillator Cross. A marker appears after the next candle opens and does not move. The script draws no line, so add Ultimate Oscillator Cross (it opens in its own panel) to see the Ultimate Oscillator line. Both scripts use the same settings.

Indicators used

  • Ultimate Oscillator (7, 14, 28)

Same view with built-in indicators: Add the Ultimate Oscillator (7, 14, 28) with levels 30 and 70.

Default settings

Fast period7
Medium period14
Slow period28
Oversold level30
Overbought level70

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

Key points

  1. This is the price-chart companion of Ultimate Oscillator Cross: the same rule, the same settings and the same HIGHER and LOWER markers.
  2. A script in its own panel draws its markers at the candle's price on the panel's axis, so on JPY pairs and other assets priced above about 100 they fall outside the panel.
  3. The companion draws them above and below the candles instead, so they show on every asset.
  4. Each marker sits on the candle that completed the setup and appears after the next candle opens; it does not move or disappear.
  5. It draws no lines: add Ultimate Oscillator Cross to see the Ultimate Oscillator line in its own panel.
  6. Test both on a Practice balance first.

Limitations. Same setup and same limits as Ultimate Oscillator Cross: the markers describe the rule, not what the next candle will do. It draws no lines, so load the panel script to see why a marker appeared. Import both on the Practice balance and keep their settings equal. 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: a49b4505b3f3e94a257b9bc3fdc3b6040572f3b641dd7ddc2d5e71eec98780e2

-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Ultimate Oscillator Cross Markers v1.0.0
--
-- Price-chart companion of IQOW Ultimate Oscillator Cross
-- (ultimate-oscillator). It draws no lines: only that script's HIGHER and
-- LOWER markers, above and below the candles on the price chart. A script with
-- its own panel draws its markers at the candle's price on the panel's axis,
-- so on assets priced above about 100 (for example JPY pairs) they fall
-- outside the panel. Add IQOW Ultimate Oscillator Cross as well to see the
-- Ultimate Oscillator line. Keep the settings of both scripts equal.
--
-- The Ultimate Oscillator (Larry Williams) blends buying pressure over three
-- periods (7, 14, 28) into one 0-100 line, which makes it less jumpy than a
-- single-period oscillator. This script marks the line leaving an extreme.
--
-- HIGHER: the oscillator closes above 30 after being at or below it.
-- LOWER:  the oscillator closes below 70 after being at or above it.
--
-- Markers use the previous completed candle: they appear after the next candle
-- opens and are shifted back one bar onto the candle that qualified.
-- Educational chart tool only. It does not place trades, choose an expiry,
-- predict outcomes, or guarantee results. Test on a Practice balance first.

instrument {
    name = "IQOW Ultimate Oscillator Cross Markers",
    short_name = "MK UO",
    overlay = true
}

input_group {
    "1. Ultimate Oscillator",
    period_fast = input (7, "Fast period", input.integer, 1, 50),
    period_medium = input (14, "Medium period", input.integer, 2, 100),
    period_slow = input (28, "Slow period", input.integer, 3, 200),
    oversold_level = input (30, "Oversold level", input.double, 5, 45, 1, false),
    overbought_level = input (70, "Overbought level", input.double, 55, 95, 1, false)
}

input_group {
    "Display and advice",
    signals_visible = input { default = true, type = input.plot_visibility },
    advice_enabled = input { default = false, name = "Enable platform advice", type = input.boolean }
}

input_group {
    "Colors",
    higher_color = input { default = "#25E154", type = input.color },
    lower_color = input { default = "#FF6C58", type = input.color },
    signal_text_color = input { default = "#FFFFFF", type = input.color }
}

-- Buying pressure and true range, summed over three periods (official formula).
buying_pressure = close - min (low, close [1])

average_fast = sum (buying_pressure, period_fast) / max (sum (tr, period_fast), 1e-10)
average_medium = sum (buying_pressure, period_medium) / max (sum (tr, period_medium), 1e-10)
average_slow = sum (buying_pressure, period_slow) / max (sum (tr, period_slow), 1e-10)

uo_value = (100 / 7) * (4 * average_fast + 2 * average_medium + average_slow)

local uo_now = get_value (uo_value, nil)
local uo_previous = get_value (uo_value [1], nil)

-- Periods must be ordered fast < medium < slow and levels must not overlap.
local settings_are_valid =
    period_fast < period_medium and
    period_medium < period_slow and
    oversold_level < overbought_level

-- The slowest sum needs period_slow candles plus one for close [1].
local data_is_ready =
    settings_are_valid and
    uo_now ~= nil and
    uo_previous ~= nil and
    get_value (close [period_slow], nil) ~= nil

-- Event: the line closes back across a level on this candle.
higher_setup = conditional (
    data_is_ready and uo_previous <= oversold_level and uo_now > oversold_level
)

lower_setup = conditional (
    data_is_ready and uo_previous >= overbought_level and uo_now < overbought_level
)

-- Confirm only a new setup on the previous completed candle.
confirmed_higher = conditional (
    get_value (higher_setup [1], false) and
    not get_value (higher_setup [2], false)
)

confirmed_lower = conditional (
    get_value (lower_setup [1], false) and
    not get_value (lower_setup [2], false)
)

-- Markers on the price chart: HIGHER below the candle, LOWER above it. Offset -1
-- puts each one on the candle that completed the setup (the confirmation above
-- is evaluated when the next candle opens).
if signals_visible then
    plot_shape (
        confirmed_higher,
        "UO HIGHER",
        shape_style.triangleup,
        shape_size.small,
        higher_color,
        shape_location.belowbar,
        -1,
        "HIGHER",
        signal_text_color
    )

    plot_shape (
        confirmed_lower,
        "UO LOWER",
        shape_style.triangledown,
        shape_size.small,
        lower_color,
        shape_location.abovebar,
        -1,
        "LOWER",
        signal_text_color
    )
end

-- QCS advice is a platform notification state only; it does not place trades.
if advice_enabled and
    get_value (confirmed_higher, false) and
    not get_value (confirmed_lower, false) then
    advise (advice.buy)
elseif advice_enabled and
    get_value (confirmed_lower, false) and
    not get_value (confirmed_higher, false) then
    advise (advice.sell)
else
    advise (advice.neutral)
end

More momentum scripts

  • Momentum
  • Own panel
  • Beginner

Double Momentum 20 3

Marks the candle where the fast Momentum(3) line crosses zero in the direction of the slower Momentum(20) line. The slow line gives the trend side, the fast line gives the timing.

Indicators: Momentum (20) · Momentum (3)

  • Momentum
  • On price
  • Intermediate

Elder Impulse

Marks the first candle where both trend (EMA 13) and momentum (MACD histogram) turn the same way, following Alexander Elder's Impulse System colours. A marker appears only when the state changes, not on every green or red candle.

Indicators: EMA (13) · MACD histogram (12, 26, 9)

  • Momentum
  • On price
  • Beginner

EMA Momentum

Marks the candle that completes two events: price closes across the EMA(20) and the Momentum(20) line crosses zero, within a few candles of each other. Both must still be true on the marked candle.

Indicators: EMA (20) · Momentum (20)

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.