STARC波段反转脚本

← 全部 74 个剧本

iqow-starc-bands-reversal.lua 5 KB · 免费,MIT 许可证

如报名参加 IQ Option 网络交易室。Quadcode 在移动设备上不会绘制“更高”和“更低”标记。

将其添加到 IQ Option 在3步骤中

  1. 获取文件。 点击“获取脚本”。浏览器会保存一个 .lua 文件。
  2. 导入 IQ Option. 在模拟账户中打开网页交易室。点击图表左下角的波浪图标,打开“脚本”选项卡,点击“导入脚本”并选择文件。
  3. 将其添加到图表中。 代码会在编辑器中打开。点击代码下方的加号按钮(添加到图表)。只有在编辑完代码后才需要保存。

风险。 交易可能亏损。标记是基于图表观察得出的结论,并非预测,且此脚本已在测试数据上验证,未经实盘交易验证。请先在模拟账户上进行测试。

  • 翻转
  • 关于价格
  • 初学者

表示一根阳线或阴线收盘后又回到STARC通道内,而前一根蜡烛的收盘价位于通道外。通道显示了价格在ATR指标上的拉伸程度。

  • 文件 iqow-starc-bands-reversal.lua
  • 版本 1.0.0
  • 尺寸 141 行 · 5 KB
  • 时限 燃烧时间1分钟至15分钟的蜡烛
  • 执照 麻省理工学院简介
STARC 带反转线(基于合成蜡烛图绘制)
脚本的绘制方式,以测试生成的合成蜡烛图为例进行说明。这只是标记和线条的示意图,并非真实市场数据或结果。

规则

更高标记

前一交易日收盘价低于 STARC 下轨,而这根K线为阳线,收盘价回到下轨上方,上轨下方。

下限标记

前一收盘价高于 STARC 上轨,而这根蜡烛是阴线,收盘价又回到了上轨下方,下轨上方。

下一个K线开盘后,会在完成该形态的K线上绘制一个标记。这只是一个图表观察结果,并非交易指令。

如何阅读它

黄色线条是STARC带,它是6周期均线,上下各有一条2倍ATR(15)的带子。当价格收盘价低于下轨,且下一根K线为阳线并回到下轨内时,会出现一个绿色的“上轨三角形”;相反的情况则会出现一个红色的“下轨三角形”。

使用的指标

  • STARC 波段(SMA 6、ATR 15、x2)

视图相同,但带有内置指示器: 添加 STARC 波段(移动平均线 6,ATR 周期 15,乘数 2)。

默认设置

SMA周期6
ATR 期15
ATR 乘数2

每个值都是脚本设置中的一个输入项。平台提示默认关闭。

关键点

  1. STARC 带是一条短期移动平均线,其上方和下方的带子是 ATR 的倍数。
  2. 收盘价低于下轨表明价格已大幅下跌。
  3. 我们等待下一根K线收盘价回到区间内,这样才能看涨。
  4. 上轨也出现了类似的阴线走势。
  5. 标记物确认蜡烛已完成。
  6. 在模拟账户上进行练习,并检查其在强劲趋势下的表现。

局限性。 在强劲的趋势中,价格可能持续收于区间之外,即使短暂回归区间内也可能很快。文章中列出了 5 到 10 周期的移动平均线以及 2 倍的典型乘数;入场蜡烛图规则是该库的改编版本。在投入真实资金之前,请先在模拟账户中进行测试。

学习策略: 在 IQOptionWiki 上阅读完整指南 →

完整的源代码

下载的文件和预览文件指向的是同一个已审核的文件。SHA-256:8acb4ab3d54351b5658156db1eb36bbcba346269d9858c3589c909e976391289

-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW STARC Bands Reversal v1.0.0
--
-- STARC Bands (Stoller Average Range Channel) are a simple moving average
-- with bands a multiple of ATR above and below it. A close outside a band
-- shows price stretched; a close back inside with a reversal candle marks
-- the first sign of a return towards the average.
--
-- HIGHER: the previous close was below the lower band, this candle closes
--         back inside the bands and is bullish.
-- LOWER:  the previous close was above the upper band, this candle closes
--         back inside the bands and is bearish.
--
-- 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 STARC Bands Reversal",
    short_name = "IQOW STARC",
    overlay = true
}

input_group {
    "1. STARC Bands",
    ma_period = input (6, "SMA period", input.integer, 2, 100),
    atr_period = input (15, "ATR period", input.integer, 2, 100),
    band_multiplier = input (2, "ATR multiplier", input.double, 0.5, 6, 0.1, false)
}

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

input_group {
    "Colors",
    band_color = input { default = "#DBCF0D", type = input.color },
    middle_color = input { default = rgba(219, 207, 13, 0.6), type = input.color },
    band_fill_color = input { default = rgba(219, 207, 13, 0.05), type = input.color },
    line_width = input { default = 1, type = input.line_width },
    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 }
}

-- Bands as in the official library: SMA of close +/- multiplier x ATR.
middle_band = sma (close, ma_period)
atr_value = rma (tr, atr_period)
upper_band = middle_band + band_multiplier * atr_value
lower_band = middle_band - band_multiplier * atr_value

local upper_now = get_value (upper_band, nil)
local lower_now = get_value (lower_band, nil)
local upper_previous = get_value (upper_band [1], nil)
local lower_previous = get_value (lower_band [1], nil)
local close_now = get_value (close, nil)
local close_previous = get_value (close [1], nil)
local open_now = get_value (open, nil)

-- The ATR needs its full period of candles before the bands mean anything.
local data_is_ready =
    get_value (close [atr_period], nil) ~= nil and
    upper_now ~= nil and lower_now ~= nil and
    upper_previous ~= nil and lower_previous ~= nil and
    close_now ~= nil and close_previous ~= nil and open_now ~= nil

local closes_inside = data_is_ready and close_now > lower_now and close_now < upper_now

higher_setup = conditional (
    closes_inside and close_previous < lower_previous and close_now > open_now
)

lower_setup = conditional (
    closes_inside and close_previous > upper_previous and close_now < open_now
)

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

if bands_visible then
    fill (upper_band, lower_band, "STARC area", band_fill_color)
    plot (upper_band, "Upper STARC", band_color, line_width)
    plot (lower_band, "Lower STARC", band_color, line_width)
end

if middle_visible then
    plot (middle_band, "STARC middle", middle_color, line_width)
end

if signals_visible then
    plot_shape (
        confirmed_higher,
        "STARC HIGHER",
        shape_style.triangleup,
        shape_size.small,
        higher_color,
        shape_location.belowbar,
        -1,
        "HIGHER",
        signal_text_color
    )

    plot_shape (
        confirmed_lower,
        "STARC 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

更多反转脚本

  • 翻转
  • 关于价格
  • 初学者
IQOW 前十名81排名#726 个可直接进入的交易窗口 · 测试了 1,248,149 笔交易

布林带RSI反转

这标志着价格在布林带外收盘且相对强弱指标(RSI)处于超卖或超买区域后,首次收盘价重回布林带内。布林带显示了价格的拉伸程度,而RSI则提供了对同一拉伸程度的另一种视角。

指标: 布林带(20,2)· RSI(14,30/70)

  • 翻转
  • 自有面板
  • 初学者
IQOW 评分67排名#1526 个可直接进入的交易窗口 · 测试了 2,273,368 笔交易

DeMarker 30 70 十字

标记 DeMarker 指标收盘价脱离超卖或超买区域的蜡烛图。30 和 70 水平线与相关指南中使用的水平线相同。

指标: 德马克(14,等级 30/70)

  • 翻转
  • 关于价格
  • 初学者
IQOW 前十名76排名#1026 个可直接进入的交易窗口 · 测试了 2,436,963 笔交易

Donchian RSI 反转

当价格在同一波动中触及相应的唐奇安通道后,RSI 指标便会脱离超卖或超买区域。通道显示价格拉伸的程度;RSI 指标则显示动能何时开始转变。

指标: 唐奇安海峡 (20) · RSI (14, 30/70)

下载全部 74 个脚本,打包成一个 ZIP 文件 · 本软件采用 MIT 许可证,按“原样”提供,不提供任何担保。IQOptionWiki 独立于…… IQ Option 平台运营商。本平台内容不构成投资建议或收益保证。

一般风险警告

公司提供的金融产品具有高风险,可能导致您损失所有资金。 你永远不应该投资你不能承受损失的钱。
请注意,本文不提供任何投资建议。 所提供的有关过去事件或未来潜在发展的信息仅是一种意见,不能保证是真实的,包括所提供的示例。 我们相应地提醒读者。