iqow-ema-momentum.lua 6 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ →
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- โมเมนตัม
- ราคา
- Beginner
ทำเครื่องหมายแท่งเทียนที่ครบสองเหตุการณ์: ราคาปิดผ่าน EMA(20) และเส้น Momentum(20) ตัดผ่านศูนย์ ภายในไม่กี่แท่งเทียนต่อกัน ทั้งสองต้องยังคงเป็นจริงในแท่งเทียนที่ทำเครื่องหมายไว้
กฎระเบียบ
เครื่องหมายที่สูงกว่า
โมเมนตัม(20) ตัดผ่านเหนือศูนย์และแท่งเทียนปิดเหนือ EMA(20) โดยเหตุการณ์ทั้งสองห่างกันไม่เกิน 3 แท่งเทียน โดยการปิดเหนือ EMA และโมเมนตัมเหนือศูนย์บนแท่งเทียนที่ทำเครื่องหมายไว้
เครื่องหมายล่าง
โมเมนตัม(20) ตัดลงต่ำกว่าศูนย์และแท่งเทียนปิดต่ำกว่า EMA(20) โดยเหตุการณ์ทั้งสองห่างกันไม่เกิน 3 แท่งเทียน โดยการปิดต่ำกว่า EMA และโมเมนตัมต่ำกว่าศูนย์ในแท่งเทียนที่ทำเครื่องหมายไว้
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
เส้นสีเหลืองคือ EMA(20) สามเหลี่ยมสีเขียวที่สูงกว่าใต้แท่งเทียนหมายความว่าราคาได้ทะลุเหนือ EMA และโมเมนตัมได้ทะลุเหนือศูนย์ภายในแท่งเทียนไม่กี่แท่งที่ผ่านมา สามเหลี่ยมสีแดงที่ต่ำกว่าเหนือแท่งเทียนคือกรณีตรงกันข้าม โมเมนตัมเองไม่ได้ถูกวาดลงบนกราฟราคา
ตัวชี้วัดที่ใช้
- แม่ (20)
- โมเมนตัม (20)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม IQ Optionค่าเฉลี่ยเคลื่อนที่ของ EMA (20) และตัวบ่งชี้โมเมนตัม (20)
การตั้งค่าเริ่มต้น
| ระยะเวลา EMA | 20 |
|---|---|
| ช่วงเวลาโมเมนตัม | 20 |
| จำนวนแท่งเทียนสูงสุดระหว่างเหตุการณ์ | 3 |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- ตัวชี้วัดโมเมนตัมจะเปรียบเทียบราคาปิดของวันนี้กับราคาปิดเมื่อ 20 แท่งเทียนที่ผ่านมา
- เมื่อ Momentum ทะลุขึ้นเหนือศูนย์ แสดงว่าราคาสูงกว่าเมื่อ 20 แท่งเทียนที่แล้ว
- เส้น EMA 20 บอกเราว่าราคาปิดสูงกว่าหรือต่ำกว่าค่าเฉลี่ยล่าสุด
- เราต้องการเหตุการณ์ทั้งสองอย่าง ได้แก่ การตัดกันของเส้น EMA และการตัดกันของเส้น Momentum เป็นศูนย์ โดยห่างกันไม่เกินสามแท่งเทียน
- เครื่องหมายปรากฏขึ้นบนแท่งเทียนที่ทำให้คู่สมบูรณ์ และได้รับการยืนยันในแท่งเทียนถัดไป
- บทความนี้เตือนให้ระวังตลาดที่มีการเคลื่อนไหวแบบทรงตัว ดังนั้นควรตรวจสอบแนวโน้มก่อนและใช้บัญชีทดลองในการฝึกฝน
ข้อ จำกัด บทความระบุว่ารูปแบบการลงทุนนี้ใช้ได้ผลในตลาดที่มีแนวโน้มชัดเจน แต่ไม่ได้ผลในตลาดที่ราคาและโมเมนตัมเคลื่อนที่ไปด้านข้างซ้ำๆ บทความไม่ได้แสดงสัญญาณการออก ควรทดสอบในบัญชีทดลองก่อนที่จะใช้เงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: b5f17a80480b558b225ae63d82e862119a24164bcbe0df2892a6587dca972b63
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW EMA Momentum v1.0.0
--
-- Combines an EMA (20) with the Momentum indicator (20), as in the related
-- article. Momentum is the close minus the close N candles ago, so crossing zero
-- means price is now above or below where it was N candles back. The EMA shows
-- which side of the average price closed. The article allows the two events to
-- happen up to 3 candles apart.
--
-- HIGHER: Momentum crosses above zero and a candle closes above the EMA, both
-- events within the last 3 candles, with both conditions true now.
-- LOWER: Momentum crosses below zero and a candle closes below the EMA, both
-- events within the last 3 candles, with both conditions true now.
--
-- 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 EMA Momentum",
short_name = "IQOW EMA MOM",
overlay = true
}
input_group {
"1. EMA and Momentum",
ema_period = input (20, "EMA period", input.integer, 2, 300),
momentum_period = input (20, "Momentum period", input.integer, 2, 200),
event_window = input (3, "Max candles between the two events", input.integer, 1, 5)
}
input_group {
"Display and advice",
ema_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 },
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 }
}
trend_ema = ema (close, ema_period)
-- Momentum = close minus the close N candles ago (official Momentum indicator).
momentum_value = close - close [momentum_period]
local ema_now = get_value (trend_ema, nil)
local ema_previous = get_value (trend_ema [1], nil)
local momentum_now = get_value (momentum_value, nil)
local momentum_previous = get_value (momentum_value [1], nil)
local close_now = get_value (close, nil)
local close_previous = get_value (close [1], nil)
local data_is_ready =
get_value (close [ema_period], nil) ~= nil and
ema_now ~= nil and
ema_previous ~= nil and
momentum_now ~= nil and
momentum_previous ~= nil and
close_now ~= nil and
close_previous ~= nil
-- Events on this candle.
local momentum_up = data_is_ready and momentum_previous <= 0 and momentum_now > 0
local momentum_down = data_is_ready and momentum_previous >= 0 and momentum_now < 0
local price_over_ema = data_is_ready and close_previous <= ema_previous and close_now > ema_now
local price_under_ema = data_is_ready and close_previous >= ema_previous and close_now < ema_now
momentum_up_event = conditional (momentum_up)
momentum_down_event = conditional (momentum_down)
price_over_ema_event = conditional (price_over_ema)
price_under_ema_event = conditional (price_under_ema)
-- True when the event happened on this candle or one of the previous candles.
local function happened_recently (event_series)
for age = 0, event_window - 1 do
if get_value (event_series [age], false) then
return true
end
end
return false
end
-- Both events inside the window, and both conditions still true now. The setup
-- fires on the candle that completes the pair.
local completes_pair_up = momentum_up or price_over_ema
local completes_pair_down = momentum_down or price_under_ema
higher_setup = conditional (
data_is_ready and completes_pair_up and
close_now > ema_now and momentum_now > 0 and
happened_recently (momentum_up_event) and happened_recently (price_over_ema_event)
)
lower_setup = conditional (
data_is_ready and completes_pair_down and
close_now < ema_now and momentum_now < 0 and
happened_recently (momentum_down_event) and happened_recently (price_under_ema_event)
)
-- 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 signals_visible then
plot_shape (
confirmed_higher,
"EMA MOM HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"EMA MOM 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
วู้ดดี้ ซีซีไอ
สัญญาณนี้บ่งชี้ว่าดัชนี Woodies CCI ตัดกับเส้นศูนย์: ดัชนี CCI 14 ช่วงเวลาจะเปลี่ยนฝั่งหลังจากแท่งเทียนหกแท่งในฝั่งตรงข้าม ในขณะที่ดัชนี Turbo CCI ที่เร็วกว่านั้นเห็นด้วยแล้ว เส้นศูนย์เป็นเส้นฐานที่บทความใช้เพื่อกำหนดฝั่งของแนวโน้ม
ตัวชี้วัด: CCI (14) · เทอร์โบ CCI (6)
- โมเมนตัม
- ตัวบ่งชี้บริบท
- แผงควบคุมของตัวเอง
- Beginner
ระยะห่าง EMA ราคา เปอร์เซ็นต์
แสดงให้เห็นว่าแหล่งราคาที่เลือกอยู่เหนือหรือต่ำกว่าค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โพเนนเชียล (EMA) มากน้อยเพียงใดในหน่วยเปอร์เซ็นต์ โซนอ้างอิงที่กำหนดค่าได้จะช่วยเปรียบเทียบระยะห่างปัจจุบันกับมาตราส่วนที่คุณเลือก
ตัวชี้วัด: ระยะทาง EMA (20) ใน %
- โมเมนตัม
- เครื่องส่งสัญญาณ
- ราคา
- ค้นหาระดับสูง
IQ_WIKI_SCRIP_V1.1.0
เป็นการปรับปรุงคะแนนสัญญาณ IQOptionWiki Signals โดยใช้แท่งเทียนที่สมบูรณ์ โดยจะถ่วงน้ำหนัก RSI, MACD, Bollinger %B, รูปแบบแท่งเทียนแสดงทิศทาง 5 รูปแบบ และการยืนยันปริมาณการซื้อขายจากกราฟ (ถ้ามี) เข้าเป็นคะแนนเดียว และจะระบุการตั้งค่าที่ผ่านเกณฑ์ใหม่
ตัวชี้วัด: RSI · MACD · Bollinger %B (ค่าเบี่ยงเบนประชากร) · รูปแบบแท่งเทียนห้าแบบ · ปริมาณการซื้อขายในกราฟ (ไม่บังคับ)
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ