iqow-fisher-transform-reversal-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.
- Reversal
- Marker companion
- On price
- Intermediate
Draws the HIGHER and LOWER markers of the Fisher Transform Reversal script on the price chart, above and below the candles, so they show on every asset, JPY pairs included. No lines: add Fisher Transform Reversal as well for the Fisher lines.
This is the price-chart companion of Fisher Transform Reversal. 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
The Fisher Transform(10) crosses above its trigger line (its previous value) while it is at or below -1.5.
LOWER marker
The Fisher Transform(10) crosses below its trigger line while it is at or above +1.5.
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 Fisher Transform Reversal. A marker appears after the next candle opens and does not move. The script draws no line, so add Fisher Transform Reversal (it opens in its own panel) to see the Fisher lines. Both scripts use the same settings.
Indicators used
- Ehlers Fisher Transform (10)
Same view with built-in indicators: Add Ehler's Fisher Transform (period 10) from the Trend indicators and look at the EF and EF Trigger lines.
Default settings
| Period | 10 |
|---|---|
| Extreme level | 1.5 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- This is the price-chart companion of Fisher Transform Reversal: 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 Fisher Transform Reversal to see the Fisher lines in its own panel.
- Test both on a Practice balance first.
Limitations. Same setup and same limits as Fisher Transform Reversal: 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: 144b92fd666151466f0b57867fcc43abc3747c859dd2cac379c089bba436d5ec
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Fisher Transform Reversal Markers v1.0.0
--
-- Price-chart companion of IQOW Fisher Transform Reversal
-- (fisher-transform-reversal). 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 Fisher Transform Reversal as well to see the
-- Fisher lines. Keep the settings of both scripts equal.
--
-- Ehlers Fisher Transform turns price into a series that swings clearly at
-- turning points. The trigger line is the Fisher value one candle earlier. A
-- cross of the two lines inside an extreme zone is read as a possible turn,
-- the confirmation the related article describes. Formula follows the official
-- QCS Ehlers Fisher Transform; the value is clamped to avoid division by zero.
--
-- HIGHER: Fisher crosses above its trigger while below -1.5.
-- LOWER: Fisher crosses below its trigger while above +1.5.
--
-- 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 Fisher Transform Reversal Markers",
short_name = "MK FISHER",
overlay = true
}
input_group {
"1. Fisher Transform",
fisher_period = input (10, "Period", input.integer, 3, 100),
extreme_level = input (1.5, "Extreme level (+/-)", input.double, 0.5, 4, 0.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 }
}
-- Fisher Transform (official formula): normalise hl2 to -1..1, smooth, then
-- apply the inverse hyperbolic tangent and smooth again.
highest_hl2 = highest (hl2, fisher_period)
lowest_hl2 = lowest (hl2, fisher_period)
normalized = 2 * (hl2 - lowest_hl2) / max (highest_hl2 - lowest_hl2, 1e-10) - 1
smoothed = ema (normalized, 5)
-- Clamp just inside +/-1 so log () stays finite on flat or extreme candles.
clamped = iff (smoothed > 0.999, 0.999, iff (smoothed < -0.999, -0.999, smoothed))
fisher = ema (log ((1 + clamped) / (1 - clamped)), 3)
fisher_trigger = fisher [1]
local fisher_now = get_value (fisher, nil)
local fisher_before = get_value (fisher [1], nil)
local fisher_before_that = get_value (fisher [2], nil)
local data_is_ready = fisher_now ~= nil and fisher_before ~= nil and fisher_before_that ~= nil
-- Cross event: Fisher moves through the trigger (the previous Fisher value).
local crosses_up = data_is_ready and fisher_before <= fisher_before_that and fisher_now > fisher_before
local crosses_down = data_is_ready and fisher_before >= fisher_before_that and fisher_now < fisher_before
higher_setup = conditional (crosses_up and fisher_now <= -extreme_level)
lower_setup = conditional (crosses_down and fisher_now >= extreme_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,
"FISHER HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"FISHER 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 reversal scripts
- Reversal
- Own panel
- Intermediate
Three Oscillators
Counts how many of three oscillators have just crossed back out of their extreme zone and marks the candle where at least two agree. It follows the article's trio setup, where all three is strongest and two of three is enough.
Indicators: RSI (14, 30/70) · CCI (20, +/-100) · Williams %R (14, -80/-20)
- Reversal
- On price
- Beginner
Bollinger RSI Reversal
Marks the first candle that closes back inside the Bollinger Bands after a close outside a band with RSI in its oversold or overbought zone. The bands show how stretched price is and RSI adds a second view of the same stretch.
Indicators: Bollinger Bands (20, 2) · RSI (14, 30/70)
- Reversal
- Own panel
- Beginner
DeMarker 30 70 Cross
Marks the candle where DeMarker closes back out of its oversold or overbought zone. The 30 and 70 levels are the ones used in the related guide.
Indicators: DeMarker (14, levels 30/70)
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.