IQ_WIKI_SCRIP_V1.0.1.lua 9 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ →
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- เทรนด์
- เครื่องส่งสัญญาณ
- ราคา
- Intermediate
การซ้อนทับข้อมูลแบบเลือกสรรพร้อมตัวกรองที่อ่านง่ายห้าตัว ได้แก่ การจัดแนวและความชันของแนวโน้ม EMA โมเมนตัม RSI โดยไม่ไล่ตามค่าสุดขั้ว ความแข็งแกร่งของ ADX/DMI กิจกรรม ATR และการป้องกันคุณภาพของแท่งเทียน
กฎระเบียบ
เครื่องหมายที่สูงกว่า
EMA 9, 21 และ 50 เรียงตัวขึ้นพร้อมเส้นช้าที่เพิ่มขึ้น RSI อยู่ระหว่าง 52 ถึง 68 ADX อยู่ที่อย่างน้อย 20 โดยมี +DI นำหน้า ATR อยู่ที่อย่างน้อย 85% ของเส้นฐาน และการปิดตลาดที่เป็นขาขึ้นจะอยู่ภายใน 1.25 ATR ของ EMA เร็ว
เครื่องหมายล่าง
ภาพสะท้อน: EMA เรียงตัวลงด้านล่าง, RSI อยู่ระหว่าง 32 ถึง 48, ADX อย่างน้อย 20 โดยมี -DI นำหน้า, ATR ทำงานอยู่ และราคาปิดเป็นขาลงภายใน 1.25 ATR ของ EMA เร็ว
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
ค่าเฉลี่ยเคลื่อนที่สามค่าและแถบสีแสดงทิศทางของแนวโน้ม เครื่องหมาย LONG และ SHORT จะปรากฏบนแท่งเทียนเมื่อตัวกรองทั้งห้าตัวเห็นพ้องต้องกันเป็นครั้งแรก
ตัวชี้วัดที่ใช้
- EMA 9/21/50
- อาร์เอสไอ (14)
- ADX/DMI (14)
- เอทีอาร์ (14)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: EMA 9, 21 และ 50, RSI (14), ADX (14) และ ATR (14) พร้อมด้วย IQ Optionตัวบ่งชี้ในตัวของ
การตั้งค่าเริ่มต้น
| EMA | |
|---|---|
| RSI ที่เพิ่มขึ้น | 14 (52/68) |
| แอดเอ็กซ์/ดีเอ็มไอ | 14, เกณฑ์ 20 |
| กิจกรรม ATR | 85% ของค่าพื้นฐาน 20-EMA |
| ส่วนขยายสูงสุด | 1.25 เอทีอาร์ |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- เวอร์ชัน 1.0.1 ตรวจสอบห้าสิ่งพร้อมกัน ได้แก่ แนวโน้ม โมเมนตัม ความแข็งแกร่ง กิจกรรม และคุณภาพของแท่งเทียน
- แถบ EMA จะเปลี่ยนเป็นสีเขียวหรือสีแดง เพื่อให้คุณเห็นแนวโน้มได้อย่างรวดเร็ว
- ดัชนี RSI ต้องยืนยันทิศทางโดยไม่ยืดออกจนสุดขั้ว
- กลุ่มผลิตภัณฑ์ ADX และ DMI ช่วยให้มั่นใจได้ว่าการเคลื่อนไหวครั้งนี้มีความแข็งแกร่งรองรับอยู่
- เครื่องหมายจะปรากฏขึ้นก็ต่อเมื่อตัวกรองทั้งห้าตัวเห็นพ้องต้องกันในแท่งเทียนที่สมบูรณ์แล้วเท่านั้น
ข้อ จำกัด ตัวกรองเพิ่มเติมจะกำจัดสภาวะที่ดูอ่อนแอออกไป แต่ก็อาจสร้างตัวบ่งชี้ที่ล่าช้าและพลาดการเคลื่อนไหวได้เช่นกัน ตัวกรองทั้งหมดอาจเห็นพ้องกันก่อนที่จะเกิดผลลัพธ์ที่ขาดทุน ทดสอบในบัญชีทดลองก่อนที่จะเสี่ยงเงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: e2bdb8391ebe6ab801e38f04d5129209e3586d5a4aa70d73ecbcfbb6c66011ce
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQ_WIKI_SCRIP_V1.0.1
--
-- A chart-timeframe confluence indicator built from five readable filters:
-- 1. EMA trend alignment and slope
-- 2. RSI momentum confirmation without chasing extremes
-- 3. ADX/DMI directional strength
-- 4. ATR activity compared with its recent baseline
-- 5. Candle direction plus an ATR extension guard
--
-- LONG and SHORT markers use the previous completed candle. They appear after
-- the next candle begins and are shifted back one bar onto the candle that
-- qualified. This avoids making a marker depend on an unfinished candle.
--
-- This indicator does not place trades, choose an expiry, predict outcomes, or
-- guarantee results. Review the settings and test on a Practice balance first.
instrument {
name = "IQ_WIKI_SCRIP_V1.0.1",
short_name = "IQ WIKI PRO",
icon = "indicators:ADX",
overlay = true
}
input_group {
"1. Trend engine",
fast_period = input (9, "Fast EMA period", input.integer, 2, 100),
slow_period = input (21, "Slow EMA period", input.integer, 3, 250),
anchor_period = input (50, "Trend anchor EMA period", input.integer, 5, 500)
}
input_group {
"2. Momentum filter",
rsi_period = input (14, "RSI period", input.integer, 2, 100),
momentum_level = input (52, "RSI confirmation level", input.double, 51, 64, 1, false),
momentum_cap = input (68, "RSI extreme guard", input.double, 65, 85, 1, false)
}
input_group {
"3. Strength filter",
strength_period = input (14, "ADX and DMI period", input.integer, 2, 100),
strength_threshold = input (20, "Minimum ADX strength", input.double, 1, 60, 1, false)
}
input_group {
"4. Volatility filter",
atr_period = input (14, "ATR period", input.integer, 2, 100),
volatility_baseline_period = input (20, "ATR baseline EMA period", input.integer, 2, 200),
minimum_volatility_percent = input (85, "Minimum volatility vs baseline (%)", input.double, 10, 300, 5, false)
}
input_group {
"5. Price quality filter",
maximum_extension_atr = input (1.25, "Maximum close-to-fast-EMA distance (ATR)", input.double, 0.10, 5.00, 0.05, false)
}
input_group {
"Display",
trend_lines_visible = input { default = true, type = input.plot_visibility },
anchor_visible = input { default = true, type = input.plot_visibility },
ribbon_visible = input { default = true, type = input.plot_visibility },
volatility_guide_visible = input { default = false, type = input.plot_visibility },
signals_visible = input { default = true, type = input.plot_visibility }
}
input_group {
"Trend colors",
fast_color = input { default = "#56CEFF", type = input.color },
slow_color = input { default = "#FFB15A", type = input.color },
anchor_color = input { default = rgba(255, 255, 255, 0.48), type = input.color },
trend_line_width = input { default = 2, type = input.line_width },
anchor_line_width = input { default = 1, type = input.line_width }
}
input_group {
"Ribbon colors",
bullish_ribbon_color = input { default = rgba(37, 225, 84, 0.14), type = input.color },
bearish_ribbon_color = input { default = rgba(255, 108, 88, 0.14), type = input.color },
neutral_ribbon_color = input { default = rgba(255, 255, 255, 0.05), type = input.color }
}
input_group {
"Signal colors",
long_signal_color = input { default = "#25E154", type = input.color },
short_signal_color = input { default = "#FF6C58", type = input.color },
signal_text_color = input { default = "#FFFFFF", type = input.color }
}
input_group {
"Optional volatility guide",
volatility_guide_atr = input (1.50, "Guide distance (ATR)", input.double, 0.10, 10.00, 0.10, false),
volatility_guide_color = input { default = rgba(181, 140, 255, 0.28), type = input.color },
volatility_guide_width = input { default = 1, type = input.line_width }
}
-- Trend engine
fast_ema = ema (close, fast_period)
slow_ema = ema (close, slow_period)
anchor_ema = ema (close, anchor_period)
-- RSI momentum filter using the documented built-in.
rsi_value = rsi (close, rsi_period)
-- ADX/DMI strength filter.
up_move = change (high)
down_move = -change (low)
positive_dm = iff (up_move > down_move and nz (up_move) > 0, up_move, 0)
negative_dm = iff (down_move > up_move and nz (down_move) > 0, down_move, 0)
directional_atr = rma (tr, strength_period)
directional_atr_safe = max (directional_atr, 0.0000000001)
positive_di = 100 * rma (positive_dm / directional_atr_safe, strength_period)
negative_di = 100 * rma (negative_dm / directional_atr_safe, strength_period)
dmi_sum_safe = max (positive_di + negative_di, 0.0000000001)
adx_value = 100 * rma (abs (positive_di - negative_di) / dmi_sum_safe, strength_period)
-- ATR activity filter and optional visual guide.
atr_value = rma (tr, atr_period)
atr_baseline = ema (atr_value, volatility_baseline_period)
volatility_guide_upper = slow_ema + atr_value * volatility_guide_atr
volatility_guide_lower = slow_ema - atr_value * volatility_guide_atr
-- Read current scalar values explicitly before using them in Lua conditions.
local close_now = get_value (close, 0)
local open_now = get_value (open, 0)
local fast_now = get_value (fast_ema, 0)
local slow_now = get_value (slow_ema, 0)
local slow_previous = get_value (slow_ema [1], 0)
local anchor_now = get_value (anchor_ema, 0)
local anchor_previous = get_value (anchor_ema [1], 0)
local rsi_now = get_value (rsi_value, 50)
local positive_di_now = get_value (positive_di, 0)
local negative_di_now = get_value (negative_di, 0)
local adx_now = get_value (adx_value, 0)
local atr_now = get_value (atr_value, 0)
local atr_baseline_now = get_value (atr_baseline, 0)
local warmup_anchor = get_value (anchor_ema [anchor_period], 0)
local warmup_strength = get_value (adx_value [strength_period], -1)
local warmup_volatility = get_value (atr_baseline [volatility_baseline_period], 0)
local periods_are_valid =
fast_period < slow_period and
slow_period < anchor_period and
momentum_level > 50 and
momentum_cap > momentum_level
local data_is_ready =
periods_are_valid and
close_now > 0 and
fast_now > 0 and
slow_now > 0 and
anchor_now > 0 and
atr_now > 0 and
atr_baseline_now > 0 and
warmup_anchor > 0 and
warmup_strength >= 0 and
warmup_volatility > 0
local bullish_trend =
fast_now > slow_now and
slow_now > anchor_now and
slow_now > slow_previous and
anchor_now > anchor_previous
local bearish_trend =
fast_now < slow_now and
slow_now < anchor_now and
slow_now < slow_previous and
anchor_now < anchor_previous
local bullish_momentum =
rsi_now >= momentum_level and
rsi_now <= momentum_cap
local bearish_momentum =
rsi_now <= (100 - momentum_level) and
rsi_now >= (100 - momentum_cap)
local bullish_strength =
adx_now >= strength_threshold and
positive_di_now > negative_di_now
local bearish_strength =
adx_now >= strength_threshold and
negative_di_now > positive_di_now
local volatility_is_active =
atr_now >= atr_baseline_now * minimum_volatility_percent / 100
local bullish_price_quality =
close_now > open_now and
close_now > fast_now and
(close_now - fast_now) <= atr_now * maximum_extension_atr
local bearish_price_quality =
close_now < open_now and
close_now < fast_now and
(fast_now - close_now) <= atr_now * maximum_extension_atr
-- conditional() stores each bar's boolean so completed-bar history is usable.
long_setup = conditional (
data_is_ready and
bullish_trend and
bullish_momentum and
bullish_strength and
volatility_is_active and
bullish_price_quality
)
short_setup = conditional (
data_is_ready and
bearish_trend and
bearish_momentum and
bearish_strength and
volatility_is_active and
bearish_price_quality
)
-- Confirm only a new setup on the previous completed candle. Indexed
-- series[boolean] values are converted to Lua booleans before native and/not.
-- Offset -1 places the marker on that candle after the current candle opens.
confirmed_long_setup = conditional (
get_value (long_setup [1], false) and
not get_value (long_setup [2], false)
)
confirmed_short_setup = conditional (
get_value (short_setup [1], false) and
not get_value (short_setup [2], false)
)
-- Clean trend context.
ribbon_color = iff (
fast_ema > slow_ema,
bullish_ribbon_color,
iff (fast_ema < slow_ema, bearish_ribbon_color, neutral_ribbon_color)
)
if ribbon_visible then
fill (fast_ema, slow_ema, "Trend ribbon", ribbon_color)
end
if trend_lines_visible then
plot (fast_ema, "Fast EMA", fast_color, trend_line_width)
plot (slow_ema, "Slow EMA", slow_color, trend_line_width)
end
if anchor_visible then
plot (anchor_ema, "Trend anchor EMA", anchor_color, anchor_line_width)
end
if volatility_guide_visible then
plot (volatility_guide_upper, "Upper ATR guide", volatility_guide_color, volatility_guide_width)
plot (volatility_guide_lower, "Lower ATR guide", volatility_guide_color, volatility_guide_width)
end
if signals_visible then
plot_shape (
confirmed_long_setup,
"Confirmed LONG setup",
shape_style.triangleup,
shape_size.small,
long_signal_color,
shape_location.belowbar,
-1,
"LONG",
signal_text_color
)
plot_shape (
confirmed_short_setup,
"Confirmed SHORT setup",
shape_style.triangledown,
shape_size.small,
short_signal_color,
shape_location.abovebar,
-1,
"SHORT",
signal_text_color
)
end
สคริปต์เทรนด์เพิ่มเติม
- เทรนด์
- ราคา
- Intermediate
ซูเปอร์เทรนด์ อีเอ็มเอ 200
ทิศทางของ Supertrend จะพลิกกลับก็ต่อเมื่อแท่งเทียนปิดอยู่ด้านเดียวกันกับเส้น EMA 200 ช่วงเวลาเท่านั้น โดย EMA ทำหน้าที่เป็นตัวกรองความเอนเอียงระยะยาวอย่างง่ายสำหรับการพลิกกลับของ Supertrend
ตัวชี้วัด: ซุปเปอร์เทรนด์ (10, 3) · แม่ (200)
- เทรนด์
- แผงควบคุมของตัวเอง
- Intermediate
ดัชนีความเข้มข้นของแนวโน้ม
เครื่องหมายนี้บ่งบอกช่วงเวลาที่ดัชนีความเข้มข้นของแนวโน้ม (Trend Intensity Index) เข้าสู่โซนที่แข็งแกร่ง: สูงกว่า 80 สำหรับแรงกดดันขาขึ้น หรือต่ำกว่า 20 สำหรับแรงกดดันขาลง โดยราคาปิดอยู่ฝั่งเดียวกับค่าเฉลี่ยเคลื่อนที่ 60 ช่วงเวลา (60-period SMA) นี่คือเครื่องหมายบ่งชี้ความแข็งแกร่งของแนวโน้ม ไม่ใช่เครื่องหมายบ่งชี้การกลับตัว
ตัวชี้วัด: ดัชนีความเข้มข้นของแนวโน้ม (30, SMA 60)
- เทรนด์
- ราคา
- Intermediate
VHF EMA Cross
เครื่องหมายจะแสดงเฉพาะจุดตัดของ EMA 9 และ EMA 21 ในขณะที่ตัวกรองแนวตั้งและแนวนอนรายงานว่าตลาดมีแนวโน้ม ตัวกรองจะลบจุดตัดที่เกิดขึ้นระหว่างการเคลื่อนไหวของราคาในแนวนอน ซึ่งจุดตัดของค่าเฉลี่ยเคลื่อนที่มักไม่น่าเชื่อถือ
ตัวชี้วัด: ตัวกรองแนวตั้งแนวนอน (28, 0.35) · EMA (9) · EMA (21)
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ