iqow-macd-psar-ema.lua 5 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ →
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- เทรนด์
- ราคา
- Intermediate
เครื่องหมายนี้แสดงถึงการตัดกันของเส้นสัญญาณ MACD ซึ่งได้รับการสนับสนุนจากสีของแท่งเทียน เส้น EMA และ Parabolic SAR มุมมองราคาที่แตกต่างกันสามมุมมองต้องสอดคล้องกันในแท่งเทียนที่สมบูรณ์เดียวกัน
กฎระเบียบ
เครื่องหมายที่สูงกว่า
เส้น MACD(12, 26, 9) ตัดขึ้นเหนือเส้นสัญญาณบนแท่งเทียนขาขึ้นที่ปิดเหนือ EMA(10) โดยมี Parabolic SAR อยู่ต่ำกว่าราคาปิด
เครื่องหมายล่าง
เส้น MACD ตัดลงต่ำกว่าเส้นสัญญาณในแท่งเทียนขาลงที่ปิดต่ำกว่า EMA(10) โดยมี Parabolic SAR อยู่เหนือราคาปิด
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
เส้นสีเหลืองคือ EMA และจุดต่างๆ คือ Parabolic SAR สามเหลี่ยมสีเขียวที่อยู่ใต้แท่งเทียนหมายความว่า MACD เพิ่งตัดขึ้นบนแท่งเทียนขาขึ้นเหนือ EMA โดยมีจุด SAR อยู่ใต้ราคา สามเหลี่ยมสีแดงที่อยู่เหนือแท่งเทียนคือกรณีตรงกันข้าม MACD เองไม่ได้ถูกวาดลงบนกราฟราคา
ตัวชี้วัดที่ใช้
- MACD (12, 26, 9)
- พาราโบลา SAR (0.02, 0.2)
- แม่ (10)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม IQ OptionMACD (12, 26, 9), Parabolic SAR (ค่าเริ่มต้น) และค่าเฉลี่ยเคลื่อนที่แบบ EMA ที่มีช่วงเวลา 10
การตั้งค่าเริ่มต้น
| MACD เร็ว | 12 |
|---|---|
| MACD ช้า | 26 |
| สัญญาณ MACD | 9 |
| เริ่มปฏิบัติการค้นหาและกู้ภัย | 0.02 |
| ขั้นตอน SAR | 0.02 |
| ค่า SAR สูงสุด | 0.2 |
| ระยะเวลา EMA | 10 |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- การตั้งค่านี้ประกอบด้วยตัวชี้วัดสามตัว ได้แก่ MACD, Parabolic SAR และ EMA
- ขั้นแรก เส้น MACD ต้องตัดกับเส้นสัญญาณบนแท่งเทียนที่เสร็จสมบูรณ์แล้ว
- แท่งเทียนนั้นจะต้องเป็นแท่งเทียนขาขึ้นและปิดเหนือเส้น EMA สำหรับราคาที่สูงขึ้น หรือเป็นแท่งเทียนขาลงและปิดต่ำกว่าเส้น EMA สำหรับราคาที่ต่ำลง
- จุด Parabolic SAR ต้องอยู่ต่ำกว่าราคาสำหรับตลาดที่สูงขึ้น และอยู่เหนือราคาสำหรับตลาดที่ต่ำลง
- เนื่องจากต้องมีเงื่อนไขหลายอย่างที่สอดคล้องกัน การเกิดเครื่องหมายจึงเกิดขึ้นน้อยกว่าเมื่อมีตัวบ่งชี้เพียงตัวเดียว
- ฝึกฝนบนเครื่องวัดความสมดุลในการฝึกซ้อม โดยควรใช้แผนภูมิ 5 นาทีจะดีที่สุด
ข้อ จำกัด บทความอธิบายว่า EMA และ SAR สลับตำแหน่งกันรอบแท่งเทียนเข้าซื้อ สคริปต์จะตรวจสอบตำแหน่งของพวกมัน (EMA อยู่ต่ำกว่าราคา, SAR อยู่ฝั่งที่ตรงกัน) แทนที่จะตรวจจับการสลับตำแหน่งใหม่ และใช้ EMA(10) จากบทความแทนที่จะใช้ค่าเฉลี่ยแนวโน้มที่ยาวกว่า ด้วยเงื่อนไขทั้งสามประการ เครื่องหมายเหล่านี้หายากและยังคงปรากฏขึ้นได้ในตลาดที่มีความผันผวน ทดสอบบนบัญชีทดลองก่อนที่จะเสี่ยงใช้เงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: 43d5e645dee79c5f0450ceab521d170aaad45240f5169c12ba5c5dfae0fd1c69
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW MACD PSAR EMA v1.0.0
--
-- Combines MACD (12, 26, 9), the Parabolic SAR and a short EMA, as in the
-- related article. A MACD signal-line cross shows momentum turning, the candle
-- colour and EMA position show price agrees, and the SAR shows the trailing stop
-- is on the matching side of price.
--
-- HIGHER: the MACD line crosses above its signal line on a bullish candle that
-- closes above the EMA, with the Parabolic SAR below the close.
-- LOWER: the MACD line crosses below its signal line on a bearish candle that
-- closes below the EMA, with the Parabolic SAR above the close.
--
-- 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 MACD PSAR EMA",
short_name = "IQOW MACD EMA",
overlay = true
}
input_group {
"1. 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 {
"2. Parabolic SAR",
sar_start = input (0.02, "Start", input.double, 0.01, 1, 0.01),
sar_step = input (0.02, "Step", input.double, 0.01, 1, 0.01),
sar_maximum = input (0.2, "Maximum", input.double, 0.01, 1, 0.01)
}
input_group {
"3. EMA",
ema_period = input (10, "EMA period", input.integer, 2, 300)
}
input_group {
"Display and advice",
ema_visible = input { default = true, type = input.plot_visibility },
sar_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",
ema_color = input { default = "#FFD166", type = input.color },
ema_width = input { default = 2, type = input.line_width },
sar_color = input { default = "#56CEFF", type = input.color },
sar_width = input { default = 2, 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 }
}
-- MACD line and signal line (same as the official MACD indicator).
macd_line = ema (close, macd_fast_period) - ema (close, macd_slow_period)
signal_line = ema (macd_line, macd_signal_period)
trend_ema = ema (close, ema_period)
psar = sar (sar_start, sar_step, sar_maximum)
local macd_now = get_value (macd_line, nil)
local macd_previous = get_value (macd_line [1], nil)
local signal_now = get_value (signal_line, nil)
local signal_previous = get_value (signal_line [1], nil)
local ema_now = get_value (trend_ema, nil)
local sar_now = get_value (psar, nil)
local close_now = get_value (close, nil)
local open_now = get_value (open, 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
macd_now ~= nil and
macd_previous ~= nil and
signal_now ~= nil and
signal_previous ~= nil and
ema_now ~= nil and
sar_now ~= nil and
close_now ~= nil and
open_now ~= nil
-- Event: the MACD line crosses its signal line on this candle.
local macd_crosses_up = data_is_ready and macd_previous <= signal_previous and macd_now > signal_now
local macd_crosses_down = data_is_ready and macd_previous >= signal_previous and macd_now < signal_now
higher_setup = conditional (
macd_crosses_up and
close_now > open_now and
close_now > ema_now and
sar_now < close_now
)
lower_setup = conditional (
macd_crosses_down and
close_now < open_now and
close_now < ema_now and
sar_now > close_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 ema_visible then
plot (trend_ema, "EMA", ema_color, ema_width)
end
if sar_visible then
plot (psar, "Parabolic SAR", sar_color, sar_width, 0, style.points)
end
if signals_visible then
plot_shape (
confirmed_higher,
"MACD PSAR EMA HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"MACD PSAR EMA 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
RSI Stochastic EMA200
ใช้ EMA 200 เป็นตัวกรองแนวโน้ม, RSI 50 เป็นตัวกรองโมเมนตัม และใช้การตัดกันของ Stochastic ออกจากโซนสุดขั้วเป็นตัวกำหนดจังหวะ ซึ่งบ่งชี้ถึงจุดสิ้นสุดของการดึงกลับในทิศทางของแนวโน้มที่ใหญ่กว่า
ตัวชี้วัด: EMA (200) · RSI (14) · Stochastic (14, 3, 3)
- เทรนด์
- ราคา
- Beginner
SMA 8 21 ครอส
เครื่องหมายนี้แสดงแท่งเทียนที่เส้นค่าเฉลี่ยเคลื่อนที่แบบง่าย 8 ช่วงเวลาตัดกับเส้นค่าเฉลี่ยเคลื่อนที่แบบง่าย 21 ช่วงเวลา และราคาปิดอยู่เหนือทั้งสองเส้น เป็นการตัดกันของค่าเฉลี่ยสองเส้นแบบคลาสสิกที่ตรวจสอบราคาได้ง่ายๆ
ตัวชี้วัด: SMA (8) · SMA (21)
- เทรนด์
- ราคา
- Intermediate
ซูเปอร์เทรนด์ อีเอ็มเอ 200
ทิศทางของ Supertrend จะพลิกกลับก็ต่อเมื่อแท่งเทียนปิดอยู่ด้านเดียวกันกับเส้น EMA 200 ช่วงเวลาเท่านั้น โดย EMA ทำหน้าที่เป็นตัวกรองความเอนเอียงระยะยาวอย่างง่ายสำหรับการพลิกกลับของ Supertrend
ตัวชี้วัด: ซุปเปอร์เทรนด์ (10, 3) · แม่ (200)
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ