iqow-woodies-cci-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
- 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
- Marker companion
- On price
- Intermediate
Draws the HIGHER and LOWER markers of the Woodies CCI script on the price chart, above and below the candles, so they show on every asset, JPY pairs included. No lines: add Woodies CCI as well for the CCI lines.
This is the price-chart companion of Woodies CCI. 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.
The rules
HIGHER marker
CCI(14) was below zero for the previous 6 candles and now closes above zero while Turbo CCI(6) is also above zero.
LOWER marker
CCI(14) was above zero for the previous 6 candles and now closes below zero while Turbo CCI(6) is also below zero.
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 Woodies CCI. A marker appears after the next candle opens and does not move. The script draws no line, so add Woodies CCI (it opens in its own panel) to see the CCI lines. Both scripts use the same settings.
Indicators used
- CCI (14)
- Turbo CCI (6)
Same view with built-in indicators: Add Woodies CCI (CCI 14, Turbo CCI 6) from the Momentum indicators and watch the zero line.
Default settings
| CCI period | 14 |
|---|---|
| Turbo CCI period | 6 |
| Candles on the other side of zero | 6 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- This is the price-chart companion of Woodies CCI: the same rule, the same settings and the same HIGHER and LOWER markers.
- 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.
- The companion draws them above and below the candles instead, so they show on every asset.
- Each marker sits on the candle that completed the setup and appears after the next candle opens; it does not move or disappear.
- It draws no lines: add Woodies CCI to see the CCI lines in its own panel.
- Test both on a Practice balance first.
Limitations. Same setup and same limits as Woodies CCI: 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.
Complete source code
The download and this preview resolve to the same reviewed file. SHA-256: 4e7a44d79f09e7ca358524594082f9f1ceb82adf84573fb982be60ae39f50402
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Woodies CCI Markers v1.0.0
--
-- Price-chart companion of IQOW Woodies CCI (woodies-cci). 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 Woodies CCI as well
-- to see the CCI lines. Keep the settings of both scripts equal.
--
-- Woodies CCI uses two Commodity Channel Index lines: the 14-period CCI and the
-- faster 6-period Turbo CCI. The zero line separates bullish from bearish
-- conditions. This setup marks a zero-line cross of the CCI after it spent a
-- stretch on the other side, with Turbo CCI already pointing the same way.
--
-- HIGHER: CCI(14) crosses above zero after at least 6 candles below zero, and
-- Turbo CCI(6) is above zero on that candle.
-- LOWER: CCI(14) crosses below zero after at least 6 candles above zero, and
-- Turbo CCI(6) is below zero on that 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 Woodies CCI Markers",
short_name = "MK WCCI",
overlay = true
}
input_group {
"1. CCI lines",
cci_period = input (14, "CCI period", input.integer, 7, 20),
turbo_period = input (6, "Turbo CCI period", input.integer, 3, 14),
bars_on_other_side = input (6, "Candles on the other side of zero", input.integer, 1, 20)
}
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 }
}
cci_value = cci (close, cci_period)
turbo_value = cci (close, turbo_period)
local cci_now = get_value (cci_value, nil)
local turbo_now = get_value (turbo_value, nil)
local cci_before = get_value (cci_value [1], nil)
local data_is_ready = cci_now ~= nil and turbo_now ~= nil and cci_before ~= nil
-- Count the candles just before this one that stayed on one side of zero.
local candles_below = 0
local candles_above = 0
if data_is_ready then
local counting_below = true
local counting_above = true
for back = 1, bars_on_other_side do
local past = get_value (cci_value [back], nil)
if past == nil then
counting_below = false
counting_above = false
else
if counting_below and past < 0 then candles_below = candles_below + 1 else counting_below = false end
if counting_above and past > 0 then candles_above = candles_above + 1 else counting_above = false end
end
end
end
higher_setup = conditional (
data_is_ready and candles_below >= bars_on_other_side and cci_now > 0 and turbo_now > 0
)
lower_setup = conditional (
data_is_ready and candles_above >= bars_on_other_side and cci_now < 0 and turbo_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,
"WCCI HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"WCCI 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
Ultimate Oscillator Cross
Marks the Ultimate Oscillator leaving its oversold or overbought zone. The oscillator blends three periods, so it reacts more evenly than a single-period oscillator.
Indicators: Ultimate Oscillator (7, 14, 28)
- Momentum
- Own panel
- Intermediate
Woodies CCI
Marks a Woodies CCI zero-line cross: the 14-period CCI changes side after six candles on the other side, while the faster Turbo CCI already agrees. The zero line is the baseline the article uses to define trend side.
Indicators: CCI (14) · Turbo CCI (6)
- Momentum
- Context indicator
- Own panel
- Beginner
Price EMA Distance Percent
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.
Indicators: EMA (20) distance in %
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.