Aroon Oscillator Zero Cross Markers

← All 70 scripts

iqow-aroon-oscillator-zero-cross-markers.lua 4 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
  • Marker companion
  • On price
  • Beginner

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

  • File iqow-aroon-oscillator-zero-cross-markers.lua
  • Version 1.0.0
  • Size 126 lines · 4 KB
  • Timeframes 1-minute to 5-minute candles
  • License MIT

This is the price-chart companion of Aroon Oscillator Zero 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.

Aroon Oscillator Zero 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 Aroon Oscillator(25) closes above zero after being at or below zero on the previous candle.

LOWER marker

The Aroon Oscillator(25) closes below zero after being at or above zero on the previous candle.

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 Aroon Oscillator Zero Cross. A marker appears after the next candle opens and does not move. The script draws no line, so add Aroon Oscillator Zero Cross (it opens in its own panel) to see the Aroon Oscillator line. Both scripts use the same settings.

Indicators used

  • Aroon Oscillator (25)

Same view with built-in indicators: Add IQ Option's Aroon Oscillator (or Aroon with Up and Down lines) with period 25 and watch the zero line.

Default settings

Period25

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 Aroon Oscillator Zero 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 Aroon Oscillator Zero Cross to see the Aroon Oscillator line in its own panel.
  6. Test both on a Practice balance first.

Limitations. Same setup and same limits as Aroon Oscillator Zero 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: 9a58eef5bd236b0aa06b3f5ee2c9b4cc4dcb7d16a4d611656848c7a4f3bcc463

-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Aroon Oscillator Zero Cross Markers v1.0.0
--
-- Price-chart companion of IQOW Aroon Oscillator Zero Cross
-- (aroon-oscillator-zero-cross). 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 Aroon Oscillator Zero Cross as well to see the
-- Aroon Oscillator line. Keep the settings of both scripts equal.
--
-- Aroon Oscillator(25) is Aroon Up minus Aroon Down: how recently the highest
-- high and the lowest low of the last 25 candles occurred (formula from the
-- official Quadcode script, scaled to -100..+100). Above zero means the high
-- is more recent than the low; below zero means the low is more recent.
--
-- HIGHER: the Aroon Oscillator closes above zero after being at or below
--         zero on the previous candle.
-- LOWER:  the Aroon Oscillator closes below zero after being at or above
--         zero on the previous candle.
--
-- 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 Aroon Oscillator Zero Cross Markers",
    short_name = "MK AROON",
    overlay = true
}

input_group {
    "1. Aroon settings",
    aroon_period = input (25, "Period", input.integer, 2, 200)
}

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 }
}

-- Aroon Oscillator = Aroon Up - Aroon Down, in the range -100..+100.
aroon_value = (bars_since_lowest (aroon_period) - bars_since_highest (aroon_period)) / aroon_period * 100

-- Current-bar scalars for the Lua rule logic.
local aroon_now = get_value (aroon_value, nil)
local aroon_previous = get_value (aroon_value [1], nil)

local has_history = get_value (close [aroon_period], nil) ~= nil

local data_is_ready =
    has_history and
    aroon_now ~= nil and
    aroon_previous ~= nil

-- Event: the oscillator closes across zero on this candle.
higher_setup = conditional (
    data_is_ready and aroon_previous <= 0 and aroon_now > 0
)

lower_setup = conditional (
    data_is_ready and aroon_previous >= 0 and aroon_now < 0
)

-- 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,
        "AROON HIGHER",
        shape_style.triangleup,
        shape_size.small,
        higher_color,
        shape_location.belowbar,
        -1,
        "HIGHER",
        signal_text_color
    )

    plot_shape (
        confirmed_lower,
        "AROON 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 trend scripts

  • Trend
  • On price
  • Beginner

EMA50 CCI 100

Marks the first CCI break beyond +100 or -100 shortly after price crossed the EMA 50 and stayed on that side. The EMA sets the direction and CCI times the entry, at most once per EMA cross.

Indicators: EMA (50) · CCI (14, levels +/-100)

  • Trend
  • On price
  • Advanced

Fractal Alligator

Marks a close through the last confirmed fractal level when that level lies beyond the Alligator teeth. The Alligator gives the trend reference and the fractal gives the breakout level.

Indicators: Williams Fractals (5) · Alligator (13/8/5, shifted 8/5/3)

  • Trend
  • On price
  • Beginner

Heikin Ashi EMA

Marks the first bullish or bearish Heikin-Ashi candle after a run of two opposite candles, only when price closes on the matching side of EMA 50. Heikin-Ashi is calculated inside the script, so the chart can stay on regular candles.

Indicators: Heikin-Ashi candles (calculated) · EMA (50)

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.