iqow-vortex-macd.lua 5 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับสินทรัพย์ที่มีราคาสูงกว่าประมาณ 100 (เช่น คู่เงิน JPY) สคริปต์นี้สามารถซ่อนเครื่องหมายได้ ดังนั้นจึงต้องนำเข้าไฟล์เครื่องหมายด้วย: มันจะวาดเครื่องหมายเหล่านั้นลงบนกราฟราคา
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ → ดูวิดีโอ
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- เทรนด์
- แผงควบคุมของตัวเอง
- Intermediate
สัญลักษณ์ Vortex VI+/VI- ตัดกันเมื่อเส้น MACD อยู่ฝั่งเดียวกับเส้นสัญญาณ การตัดกันของ Vortex แสดงให้เห็นว่าทิศทางใดเด่นกว่า และ MACD จะตรวจสอบว่าโมเมนตัมสอดคล้องกันหรือไม่
ในแผงตัวชี้วัด เครื่องหมายจะถูกวาดที่ราคาของแท่งเทียน ดังนั้นสำหรับสินทรัพย์ที่มีราคาสูงกว่าประมาณ 100 (เช่น คู่เงิน JPY) เครื่องหมายจะอยู่นอกแผง โหลด เครื่องหมาย MACD กระแสน้ำวน เพื่อดูเครื่องหมายเดียวกันบนกราฟราคา
รับชม: ติดตั้งและปฏิบัติตามขั้นตอนการซื้อขายจริง
กฎระเบียบ
เครื่องหมายที่สูงกว่า
Vortex VI+(21) ตัดขึ้นเหนือ VI- ในแท่งเทียนนี้ ขณะที่เส้น MACD(12, 26, 9) อยู่เหนือเส้นสัญญาณ
เครื่องหมายล่าง
Vortex VI+(21) ตัดลงต่ำกว่า VI- ในแท่งเทียนนี้ ขณะที่เส้น MACD(12, 26, 9) อยู่ต่ำกว่าเส้นสัญญาณ
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
ส่วนนี้จะแสดงในแผงแยกต่างหาก เส้นสีน้ำเงินคือ VI+ และเส้นสีม่วงคือ VI- จุดที่เส้นทั้งสองตัดกัน การเคลื่อนไหวหลักจะเปลี่ยนฝั่ง สามเหลี่ยมสีเขียวที่แสดงว่า "สูงขึ้น" ที่ด้านล่างของแผงหมายความว่า VI+ ตัดขึ้นในขณะที่ MACD อยู่เหนือเส้นสัญญาณ สามเหลี่ยมสีแดงที่แสดงว่า "ต่ำลง" ที่ด้านบนคือกรณีตรงกันข้าม โดยไม่ได้วาด MACD ไว้ในที่นี้
ตัวชี้วัดที่ใช้
- ตัวบ่งชี้กระแสน้ำวน (21)
- MACD (12, 26, 9)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม IQ Optionตัวบ่งชี้ Vortex ของ (21) และ MACD (12, 26, 9)
การตั้งค่าเริ่มต้น
| ช่วงเวลาของกระแสน้ำวน | 21 |
|---|---|
| MACD เร็ว | 12 |
| MACD ช้า | 26 |
| สัญญาณ MACD | 9 |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- ตัวบ่งชี้ Vortex มีสองเส้น: VI+ สำหรับการเคลื่อนที่ขึ้น และ VI- สำหรับการเคลื่อนที่ลง
- เส้นตัดกันของสองเส้นแสดงให้เห็นว่าทิศทางใดกำลังได้เปรียบ
- โดยลำพังแล้ว MACD มักสร้างสัญญาณผิดพลาดมากมายในตลาดที่เคลื่อนไหวในกรอบแคบ ดังนั้นบทความจึงเพิ่ม MACD เข้ามาด้วย
- เราจะทำเครื่องหมาย VI+ cross up ก็ต่อเมื่อเส้น MACD อยู่เหนือเส้นสัญญาณ และทำเครื่องหมายกลับกันสำหรับ LOWER
- บทความแนะนำช่วงเวลาที่ 21 หรือ 34 สำหรับแผนภูมิ 5 นาที แต่สคริปต์นี้เริ่มต้นด้วยช่วงเวลาที่ 21
- ฝึกฝนการใช้เครื่องชั่งแบบฝึกหัดและเปรียบเทียบผลลัพธ์ในสองช่วงเวลา
ข้อ จำกัด บทความนี้ยอมรับการตัดกันสองครั้งที่ห่างกันไม่กี่แท่งเทียน สคริปต์นี้ต้องการให้ MACD อยู่ฝั่งเดียวกันในขณะที่เกิดการตัดกันแบบ Vortex ซึ่งเป็นการทดสอบที่ง่ายกว่า การตัดกันแบบ Vortex เกิดขึ้นบ่อยในระหว่างการรวมตัวของราคา ซึ่งการสอดคล้องกันของ MACD ช่วยได้ แต่ไม่ได้กำจัดสัญญาณผิดพลาด ทดสอบในบัญชีทดลองก่อนที่จะเสี่ยงใช้เงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกันที่ได้รับการตรวจสอบแล้ว SHA-256: eae74decc9e5f69520eb6a99d7e7024da342a84e3d493a48ee46e15882f18245
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Vortex MACD v1.0.0
--
-- Combines the Vortex Indicator (21) with MACD (12, 26, 9), as in the related
-- article. A VI+ / VI- cross shows the dominant price movement changing side; the
-- MACD line against its signal line checks that momentum agrees. The article
-- suggests period 21 or 34 on a 5-minute chart; 21 is the default here. The
-- chart shows the Vortex lines; the MACD condition is part of the rule only.
--
-- HIGHER: VI+ crosses above VI- while the MACD line is above its signal line.
-- LOWER: VI+ crosses below VI- while the MACD line is below its signal line.
--
-- 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 Vortex MACD",
short_name = "IQOW VORTEX",
overlay = false
}
input_group {
"1. Vortex Indicator",
vortex_period = input (21, "Vortex period", input.integer, 2, 100)
}
input_group {
"2. MACD",
macd_fast_period = input (12, "Fast EMA period", input.integer, 2, 100),
macd_slow_period = input (26, "Slow EMA period", input.integer, 3, 200),
macd_signal_period = input (9, "Signal period", input.integer, 2, 100)
}
input_group {
"Display and advice",
vortex_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",
plus_color = input { default = "#56CEFF", type = input.color },
minus_color = input { default = "#B42EFF", type = input.color },
vortex_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 }
}
-- Vortex Indicator as in the official indicator.
plus_movement = abs (high - low [1])
minus_movement = abs (low - high [1])
true_range_sum = sum (tr, vortex_period)
vi_plus = sum (plus_movement, vortex_period) / iff (true_range_sum > 1e-10, true_range_sum, 1e-10)
vi_minus = sum (minus_movement, vortex_period) / iff (true_range_sum > 1e-10, true_range_sum, 1e-10)
macd_line = ema (close, macd_fast_period) - ema (close, macd_slow_period)
signal_line = ema (macd_line, macd_signal_period)
local plus_now = get_value (vi_plus, nil)
local minus_now = get_value (vi_minus, nil)
local plus_previous = get_value (vi_plus [1], nil)
local minus_previous = get_value (vi_minus [1], nil)
local macd_now = get_value (macd_line, nil)
local signal_now = get_value (signal_line, nil)
local periods_are_valid = macd_fast_period < macd_slow_period
local data_is_ready =
periods_are_valid and
get_value (close [macd_slow_period + macd_signal_period], nil) ~= nil and
get_value (close [vortex_period + 1], nil) ~= nil and
plus_now ~= nil and
minus_now ~= nil and
plus_previous ~= nil and
minus_previous ~= nil and
macd_now ~= nil and
signal_now ~= nil
-- Event: VI+ crosses VI- on this candle.
local vortex_crosses_up = data_is_ready and plus_previous <= minus_previous and plus_now > minus_now
local vortex_crosses_down = data_is_ready and plus_previous >= minus_previous and plus_now < minus_now
higher_setup = conditional (vortex_crosses_up and macd_now > signal_now)
lower_setup = conditional (vortex_crosses_down and macd_now < signal_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 vortex_visible then
hline (1, "Vortex 1.0", rgba(255, 255, 255, 0.15), 1)
plot (vi_plus, "VI+", plus_color, vortex_width)
plot (vi_minus, "VI-", minus_color, vortex_width)
end
if signals_visible then
plot_shape (
confirmed_higher,
"VORTEX MACD HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.bottom,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"VORTEX MACD LOWER",
shape_style.triangledown,
shape_size.small,
lower_color,
shape_location.top,
-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
คาม่า เทรนด์
Marks ปิดจุดตัดที่เส้นค่าเฉลี่ยเคลื่อนที่แบบปรับได้ของ Kaufman (KAMA) เคลื่อนไปในทิศทางที่ค่าเฉลี่ยกำลังลาดเอียงอยู่แล้ว การตรวจสอบความลาดเอียงจะกำจัดจุดตัดที่เส้น KAMA ซึ่งเคลื่อนที่ช้าและราบเรียบ ถูกราคาแตะเพียงเล็กน้อย
ตัวชี้วัด: คามะ (10, 2, 30)
- เทรนด์
- ราคา
- Intermediate
แอลอาร์เอส วิลเลียมส์ อาร์
ใช้ความชันของเส้นถดถอย 100 แท่งเทียนเป็นตัวกรองแนวโน้ม และใช้ค่า %R ของวิลเลียมส์ที่ออกจากโซนสุดขั้วเป็นตัวกำหนดเวลา โดยวาดเส้นถดถอยลงบนกราฟราคาเพื่อให้เห็นทิศทางของความชัน
ตัวชี้วัด: ความชันการถดถอยเชิงเส้น (100) · Williams %R (14, ระดับ -80/-20)
- เทรนด์
- ราคา
- Intermediate
MACD PSAR EMA
เครื่องหมายนี้แสดงถึงการตัดกันของเส้นสัญญาณ MACD ซึ่งได้รับการสนับสนุนจากสีของแท่งเทียน เส้น EMA และ Parabolic SAR มุมมองราคาที่แตกต่างกันสามมุมมองต้องสอดคล้องกันในแท่งเทียนที่สมบูรณ์เดียวกัน
ตัวชี้วัด: MACD (12, 26, 9) · Parabolic SAR (0.02, 0.2) · EMA (10)
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ