สคริปต์การกลับทิศทาง RSI ของ Donchian

← สคริปต์ทั้งหมด 74 รายการ

iqow-donchian-rsi-reversal.lua 6 KB · ฟรี ภายใต้ใบอนุญาต MIT

สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ

เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3

  1. ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
  2. นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
  3. เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น

ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน

  • ความผกผัน
  • ราคา
  • Beginner

เครื่องหมายนี้แสดงช่วงเวลาที่ RSI ออกจากโซนซื้อมากเกินไปหรือขายมากเกินไป หลังจากที่ราคาสัมผัสกับแถบ Donchian ที่ตรงกันในการเคลื่อนไหวเดียวกัน ช่องแสดงให้เห็นว่าราคาอยู่ในช่วงที่ตึงตัว ในขณะที่ RSI แสดงให้เห็นว่าโมเมนตัมเริ่มเปลี่ยนทิศทางเมื่อใด

  • เนื้อไม่มีมัน iqow-donchian-rsi-reversal.lua
  • เวอร์ชั่น 1.0.1
  • ขนาด 176 บรรทัด · 6 KB
  • ระยะเวลา เทียนจุดได้นาน 1-5 นาที
  • ใบอนุญาตประกอบธุรกิจ เอ็มไอที

รับชม: ติดตั้งและปฏิบัติตามขั้นตอนการซื้อขายจริง

รูปแบบการกลับตัวของ RSI แบบ Donchian ที่วาดบนแท่งเทียนจำลอง
วิธีการแสดงผลของสคริปต์ แสดงบนแท่งเทียนสังเคราะห์ที่สร้างขึ้นเพื่อการทดสอบ เป็นเพียงภาพประกอบของเครื่องหมายและเส้น ไม่ใช่ข้อมูลตลาดจริงหรือผลลัพธ์ที่แท้จริง

กฎระเบียบ

เครื่องหมายที่สูงกว่า

ในขณะที่ RSI(14) อยู่ที่ระดับ 30 หรือต่ำกว่า แท่งเทียนแตะแถบ Donchian(20) ด้านล่าง แท่งเทียนแรกที่ RSI ปิดตัวขึ้นเหนือ 30 จะถูกทำเครื่องหมายว่า HIGHER

เครื่องหมายล่าง

ในขณะที่ RSI(14) อยู่ที่ระดับ 70 หรือสูงกว่า แท่งเทียนแตะแถบ Donchian(20) ด้านบน แท่งเทียนแรกที่ RSI ปิดต่ำกว่า 70 จะถูกทำเครื่องหมายว่า LOWER

เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย

วิธีอ่าน

เส้นสีน้ำเงินแสดงจุดสูงสุดและต่ำสุดในรอบ 20 แท่งเทียน โดยมีเส้นกลางบางๆ คั่นอยู่ระหว่างกัน สามเหลี่ยมสีเขียวที่แสดงว่า "สูงขึ้น" ใต้แท่งเทียนหมายความว่า RSI เพิ่งฟื้นตัวจากภาวะขายมากเกินไปหลังจากแตะเส้นล่างของกรอบราคา สามเหลี่ยมสีแดงที่แสดงว่า "ต่ำลง" เหนือแท่งเทียนคือสถานการณ์ตรงกันข้ามที่เส้นบนของกรอบราคา

ตัวชี้วัดที่ใช้

  • ช่องดอนเชียน (20)
  • RSI (14, 30/70)

มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม IQ Optionช่อง Donchian ของ (20) และดัชนีความแข็งแกร่งสัมพัทธ์ (14, ระดับ 70/30)

การตั้งค่าเริ่มต้น

ยุคดอนเชียน20
ช่วงเวลา RSI14
ระดับการขายมากเกินไป30
ระดับซื้อมากเกินไป70

ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น

ประเด็นสำคัญ

  1. ช่องดอนเชียน (Donchian Channel) แสดงจุดสูงสุดและจุดต่ำสุดของแท่งเทียน 20 แท่งล่าสุด
  2. เมื่อแท่งเทียนแตะเส้นล่างของแถบราคา ขณะที่ค่า RSI ต่ำกว่า 30 แสดงว่าราคาได้ยืดตัวไปถึงจุดสูงสุดล่าสุดแล้ว
  3. เราเฝ้ารอ: เครื่องหมายจะปรากฏขึ้นก็ต่อเมื่อ RSI ปิดเหนือ 30 อีกครั้ง ซึ่งเป็นสัญญาณแรกที่บ่งชี้ว่าแรงขายเริ่มลดลง
  4. แถบด้านบนและ RSI 70 ให้ภาพเดียวกันแต่กลับด้าน โดยมีเครื่องหมายกำกับว่า ด้านล่าง
  5. เครื่องหมายจะยืนยันตำแหน่งของเทียนที่เสร็จสมบูรณ์แล้ว ดังนั้นจึงจะไม่ทาสีซ้ำในขณะที่เทียนยังอยู่ในระหว่างการขึ้นรูป
  6. ลองฝึกฝนบนบัญชีทดลองก่อน แล้วสังเกตพฤติกรรมของมันเมื่ออยู่ในช่วงแนวโน้มและช่วงกรอบราคา

ข้อ จำกัด ในแนวโน้มที่แข็งแกร่ง ราคาอาจเคลื่อนไหวตามกรอบราคา ในขณะที่ RSI คงอยู่ในระดับสุดขั้วเป็นเวลานาน และการกลับมาอยู่เหนือระดับ 30 หรือ 70 อาจตามมาด้วยแรงผลักดันใหม่ในทิศทางของแนวโน้ม กลยุทธ์นี้ได้ผลดีที่สุดในตลาดที่เคลื่อนไหวในกรอบแคบหรือชะลอตัว ควรทดสอบในบัญชีทดลองก่อนที่จะใช้เงินจริง

เรียนรู้กลยุทธ์: อ่านคู่มือฉบับเต็มได้ที่ IQOptionWiki →

กรอกซอร์สโค้ดให้สมบูรณ์

ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: 5fb91bba833c8bf8d634f02aa133a8e57da5020d6bd4431a72b4e7f864bd5cc5

-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Donchian RSI Reversal v1.0.1
--
-- Combines a Donchian Channel (the highest high and lowest low of the last
-- N candles) with RSI. A touch of the outer band shows price stretched to a
-- recent extreme; RSI returning from its extreme zone shows momentum turning.
--
-- RSI follows IQ Option's built-in RSI: closing prices, with the average gain
-- and the average loss smoothed by an exponential average (alpha 2 / (period +
-- 1)). Version 1.0.1 (9 October 2026) changed this from Wilder smoothing; the
-- inputs, periods and levels are unchanged.
--
-- HIGHER: during an RSI oversold excursion (RSI at or below 30) a candle
--         touched the lower Donchian band, and RSI now closes back above 30.
-- LOWER:  during an RSI overbought excursion (RSI at or above 70) a candle
--         touched the upper Donchian band, and RSI now closes back below 70.
--
-- 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 Donchian RSI Reversal",
    short_name = "IQOW DC RSI",
    overlay = true
}

input_group {
    "1. Donchian Channel",
    channel_period = input (20, "Channel period", input.integer, 2, 200)
}

input_group {
    "2. RSI",
    rsi_period = input (14, "RSI period", input.integer, 2, 100),
    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",
    channel_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",
    channel_color = input { default = "#56CEFF", type = input.color },
    middle_color = input { default = rgba(255, 255, 255, 0.35), type = input.color },
    channel_fill_color = input { default = rgba(86, 206, 255, 0.06), type = input.color },
    channel_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 }
}

-- Donchian Channel: inclusive rolling extremes, as on the IQ Option chart.
upper_band = highest (high, channel_period)
lower_band = lowest (low, channel_period)
middle_band = (upper_band + lower_band) / 2

-- RSI as IQ Option's built-in RSI draws it: the average gain and the average
-- loss are exponential averages (alpha = 2 / (period + 1)), not Wilder's
-- smoothing (alpha = 1 / period). It stays empty until both averages exist and
-- is 50 when price did not move at all.
rsi_change = close - close [1]
rsi_gain = ema (max (rsi_change, 0), rsi_period)
rsi_loss = ema (max (-rsi_change, 0), rsi_period)
rsi_total = rsi_gain + rsi_loss
rsi_value = iff (rsi_total > 0, 100 * rsi_gain / rsi_total, rsi_total + 50)

-- Current-bar scalars for the Lua rule logic.
local rsi_now = get_value (rsi_value, nil)
local rsi_previous = get_value (rsi_value [1], nil)
local upper_now = get_value (upper_band, nil)
local lower_now = get_value (lower_band, nil)

local levels_are_valid = oversold_level < 50 and overbought_level > 50

local data_is_ready =
    levels_are_valid and
    rsi_now ~= nil and
    rsi_previous ~= nil and
    upper_now ~= nil and
    lower_now ~= nil

-- A band touch: this candle set the channel's extreme.
local touched_lower = data_is_ready and get_value (low, 0) <= lower_now
local touched_upper = data_is_ready and get_value (high, 0) >= upper_now

-- "Armed" stays true while RSI remains in its extreme zone after a touch, so
-- the touch must belong to the same oversold or overbought excursion.
local was_long_armed = get_value (long_armed [1], false)
local was_short_armed = get_value (short_armed [1], false)

long_armed = conditional (
    data_is_ready and rsi_now <= oversold_level and (was_long_armed or touched_lower)
)

short_armed = conditional (
    data_is_ready and rsi_now >= overbought_level and (was_short_armed or touched_upper)
)

-- Event: RSI closes back across its level on this candle.
local rsi_recovers =
    data_is_ready and rsi_previous <= oversold_level and rsi_now > oversold_level

local rsi_fades =
    data_is_ready and rsi_previous >= overbought_level and rsi_now < overbought_level

higher_setup = conditional (rsi_recovers and was_long_armed)
lower_setup = conditional (rsi_fades and was_short_armed)

-- 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 channel_visible then
    fill (upper_band, lower_band, "Donchian area", channel_fill_color)
    plot (upper_band, "Upper Donchian", channel_color, channel_width)
    plot (lower_band, "Lower Donchian", channel_color, channel_width)
end

if middle_visible then
    plot (middle_band, "Donchian middle", middle_color, 1)
end

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

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

สคริปต์ย้อนกลับเพิ่มเติม

  • ความผกผัน
  • ราคา
  • Intermediate
การวิจัยศึกษา59.5% ระบบปฏิบัติการ Windows รุ่นเก่า ปี 2016-2026

Z-Score Fade Pro

การเฟดแบบ Z-Score ที่เข้มงวดกว่า: จะทำเครื่องหมายแท่งเทียน 1 นาทีแรกที่ถึง 2 ส่วนเบี่ยงเบนมาตรฐานจาก SMA(40) แต่เฉพาะในขณะที่ราคาไม่ได้ไล่ตาม EMA(100) มากนัก และโดยค่าเริ่มต้น เฉพาะเมื่อ Supertrend เห็นด้วยกับการเฟด

ตัวชี้วัด: ค่า Z-score (SMA 40, ค่าเบี่ยงเบนประชากร 2 ค่า) · EMA 100 และตัวกรองการติดตาม ATR 14 · แนวโน้มสูงสุด (10, 3)

  • ความผกผัน
  • ราคา
  • Beginner
IQOW 10 อันดับแรก81อันดับ #7หน้าต่างแบบเดินเข้าไปได้ 26 บาน · ผ่านการทดสอบการค้า 1,248,149 รายการ

การกลับตัวของ Bollinger RSI

แท่งเทียนนี้แสดงแท่งเทียนแรกที่ปิดตัวกลับเข้าไปใน Bollinger Bands หลังจากปิดตัวออกนอกแถบ Bollinger Band โดยมี RSI อยู่ในโซนซื้อมากเกินไปหรือขายมากเกินไป Bollinger Bands แสดงให้เห็นว่าราคามีการยืดตัวมากแค่ไหน และ RSI จะเพิ่มมุมมองที่สองเกี่ยวกับการยืดตัวนั้น

ตัวชี้วัด: Bollinger Bands (20, 2) · RSI (14, 30/70)

  • ความผกผัน
  • แผงควบคุมของตัวเอง
  • Beginner
คะแนน IQOW67อันดับ #15หน้าต่างแบบเดินเข้าไปได้ 26 บาน · ผ่านการทดสอบการค้า 2,273,368 รายการ

DeMarker 30 70 Cross

เครื่องหมายนี้แสดงถึงแท่งเทียนที่ DeMarker ปิดตัวออกจากโซนซื้อมากเกินไปหรือขายมากเกินไป ระดับ 30 และ 70 เป็นระดับที่ใช้ในคู่มือที่เกี่ยวข้อง

ตัวชี้วัด: DeMarker (14, ระดับ 30/70)

ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ

คำเตือนความเสี่ยงทั่วไป

ผลิตภัณฑ์ทางการเงินที่นำเสนอโดยบริษัทมีความเสี่ยงสูงและอาจส่งผลให้สูญเสียเงินทุนทั้งหมดของคุณ คุณไม่ควรลงทุนเงินที่คุณไม่สามารถจะเสียได้
โปรดทราบว่าบทความนี้ไม่ได้ให้คำแนะนำการลงทุนใดๆ ข้อมูลที่นำเสนอเกี่ยวกับเหตุการณ์ในอดีตหรือการพัฒนาที่อาจเกิดขึ้นในอนาคตเป็นเพียงความเห็นเท่านั้นและไม่สามารถรับประกันได้ว่าเป็นข้อเท็จจริง รวมถึงตัวอย่างที่ให้มา เราเตือนผู้อ่านตามนั้น