iqow-schaff-trend-cycle.lua 5 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับสินทรัพย์ที่มีราคาสูงกว่าประมาณ 100 (เช่น คู่เงิน JPY) สคริปต์นี้สามารถซ่อนเครื่องหมายได้ ดังนั้นจึงต้องนำเข้าไฟล์เครื่องหมายด้วย: มันจะวาดเครื่องหมายเหล่านั้นลงบนกราฟราคา
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ → ดูวิดีโอ
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- โมเมนตัม
- แผงควบคุมของตัวเอง
- Intermediate
เครื่องหมายนี้แสดงแท่งเทียนที่วงจรแนวโน้มของ Schaff (Schaff Trend Cycle หรือ STC) ออกจากโซนต่ำ (ตัดขึ้นเหนือ 25) หรือโซนสูง (ตัดลงต่ำกว่า 75) STC เป็นเวอร์ชันที่รวดเร็วและมีขอบเขตจำกัดของ MACD ดังนั้นจึงเปลี่ยนทิศทางเร็วกว่า MACD เพียงอย่างเดียว
ในแผงตัวชี้วัด เครื่องหมายจะถูกวาดที่ราคาของแท่งเทียน ดังนั้นสำหรับสินทรัพย์ที่มีราคาสูงกว่าประมาณ 100 (เช่น คู่เงิน JPY) เครื่องหมายจะอยู่นอกแผง โหลด เครื่องหมายวัฏจักรแนวโน้มของ Schaff เพื่อดูเครื่องหมายเดียวกันบนกราฟราคา
รับชม: ติดตั้งและปฏิบัติตามขั้นตอนการซื้อขายจริง
กฎระเบียบ
เครื่องหมายที่สูงกว่า
STC(10, 23, 50) ตัดขึ้นเหนือ 25 ในแท่งเทียนหนึ่งแท่ง; ตัวบ่งชี้ดังกล่าวได้รับการยืนยันในแท่งเทียนก่อนหน้าที่เสร็จสมบูรณ์แล้ว
เครื่องหมายล่าง
STC(10, 23, 50) ตัดลงต่ำกว่า 75 ในแท่งเทียนหนึ่งแท่ง; ตัวบ่งชี้ดังกล่าวได้รับการยืนยันในแท่งเทียนก่อนหน้าที่เสร็จสมบูรณ์แล้ว
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
เส้นสีแดงคือเส้น STC ในแผงแยกต่างหาก ซึ่งลากระหว่างระดับ 25 และ 75 โดยมีเส้นจางๆ อยู่ที่ 50 สามเหลี่ยมสีเขียวที่แสดงว่า "สูงกว่า" ที่ด้านล่างของแผง แสดงถึงจุดตัดขึ้นที่ 25 และสามเหลี่ยมสีแดงที่แสดงว่า "ต่ำกว่า" ที่ด้านบน แสดงถึงจุดตัดลงที่ 75
ตัวชี้วัดที่ใช้
- วงจรแนวโน้มของ Schaff (10, 23, 50)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม Schaff Trend Cycle (10, 23, 50) จาก IQ Option รายการตัวชี้วัด พร้อมระดับ 25 และ 75
การตั้งค่าเริ่มต้น
| รอบระยะเวลา | 10 |
|---|---|
| แม่สั้น | 23 |
| แม่ยาว | 50 |
| ระดับต่ำ | 25 |
| ระดับสูง | 75 |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- โมเดล Schaff Trend Cycle ใช้ตัวชี้วัด MACD ร่วมกับตัวชี้วัด Stochastic สองตัว
- ผลลัพธ์ที่ได้คือเส้นกราฟที่แกว่งตัวระหว่าง 0 ถึง 100 เร็วกว่า MACD
- ค่าที่ต่ำกว่า 25 คือโซนต่ำ และค่าที่สูงกว่า 75 คือโซนสูง
- เครื่องหมายกากบาทด้านหลังที่อยู่เหนือ 25 ถือว่าสูงกว่า และเครื่องหมายกากบาทด้านหลังที่อยู่ต่ำกว่า 75 ถือว่าต่ำกว่า
- เครื่องหมายต่างๆ จะอยู่ในแผงแสดงตัวชี้วัด ไม่ได้อยู่บนแท่งราคา
- ควรเปรียบเทียบกับแนวโน้มในกราฟหลักในบัญชีทดลองก่อนที่จะเชื่อถือข้อมูลเหล่านั้น
ข้อ จำกัด ตัวชี้วัด STC ตอบสนองอย่างรวดเร็ว ดังนั้นในตลาดที่เคลื่อนไหวในกรอบแคบๆ มันจะแกว่งไปมาระหว่างระดับต่างๆ และสร้างการตัดกันหลายครั้ง ในขณะที่ในแนวโน้มที่แข็งแกร่ง มันอาจจะอยู่เหนือ 75 หรือต่ำกว่า 25 และการตัดกันในทิศทางตรงกันข้ามอาจจะไม่เกิดขึ้นเลย ระดับ 25 และ 75 เป็นค่าที่ปรับได้ ทดสอบในบัญชีทดลองก่อนที่จะใช้เงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: 988c913b15d14a55c711aad2117b97b0297177f6c1779e8e0e3965a5f15d7875
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Schaff Trend Cycle v1.0.0
--
-- The Schaff Trend Cycle (STC) applies a double stochastic smoothing to the
-- MACD of two EMAs. It moves between 0 and 100 faster than the MACD itself.
-- Formula follows the official IQ Option Schaff Trend Cycle indicator.
-- The oscillator is drawn in its own panel under the chart.
--
-- HIGHER: STC crosses above 25 (leaves the low zone).
-- LOWER: STC crosses below 75 (leaves the high zone).
--
-- 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 Schaff Trend Cycle",
short_name = "IQOW STC",
overlay = false
}
input_group {
"1. Schaff Trend Cycle",
cycle_period = input (10, "Cycle period", input.integer, 2, 100),
short_cycle = input (23, "Short EMA", input.integer, 2, 100),
long_cycle = input (50, "Long EMA", input.integer, 3, 250)
}
input_group {
"2. Levels",
low_level = input (25, "Low level", input.double, 5, 45, 1, false),
high_level = input (75, "High level", input.double, 55, 95, 1, false)
}
input_group {
"Display and advice",
lines_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",
stc_color = input { default = "#DB4931", type = input.color },
level_low_color = input { default = rgba(255, 108, 88, 0.5), type = input.color },
level_high_color = input { default = rgba(37, 225, 84, 0.5), type = input.color },
middle_color = input { default = rgba(255, 255, 255, 0.15), type = input.color },
line_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 }
}
-- MACD of two EMAs on the close.
macd_line = ema (close, short_cycle) - ema (close, long_cycle)
-- First stochastic of the MACD, then smoothed (factor 0.5).
local smoothing_factor = 0.5
macd_low = lowest (macd_line, cycle_period)
macd_range = highest (macd_line, cycle_period) - macd_low
first_stoch = iff (macd_range > 0, ((macd_line - macd_low) / macd_range) * 100, nz (first_stoch [1]))
first_smooth = iff (na (first_smooth [1]), first_stoch, first_smooth [1] + smoothing_factor * (first_stoch - first_smooth [1]))
-- Second stochastic on the smoothed series, then smoothed again.
smooth_low = lowest (first_smooth, cycle_period)
smooth_range = highest (first_smooth, cycle_period) - smooth_low
second_stoch = iff (smooth_range > 0, ((first_smooth - smooth_low) / smooth_range) * 100, nz (second_stoch [1]))
stc_value = iff (na (stc_value [1]), second_stoch, stc_value [1] + smoothing_factor * (second_stoch - stc_value [1]))
-- Current-bar scalars for the Lua rule logic.
local stc_now = get_value (stc_value, nil)
local stc_before = get_value (stc_value [1], nil)
local settings_are_valid = short_cycle < long_cycle and low_level < high_level
local data_is_ready =
settings_are_valid and
stc_now ~= nil and
stc_before ~= nil and
get_value (stc_value [long_cycle + cycle_period * 2], nil) ~= nil
-- Event: STC crosses a level on this candle.
higher_setup = conditional (
data_is_ready and stc_before <= low_level and stc_now > low_level
)
lower_setup = conditional (
data_is_ready and stc_before >= high_level and stc_now < high_level
)
-- 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)
)
hline { value = high_level, color = level_high_color, width = 1 }
hline { value = low_level, color = level_low_color, width = 1 }
hline { value = 50, color = middle_color, width = 1 }
hline { value = 105, color = "#0000000", show_label = false }
hline { value = -5, color = "#0000000", show_label = false }
if lines_visible then
plot (stc_value, "STC", stc_color, line_width)
end
if signals_visible then
plot_shape (
confirmed_higher,
"STC HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.bottom,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"STC 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
สคริปต์โมเมนตัมเพิ่มเติม
- โมเมนตัม
- แผงควบคุมของตัวเอง
- Beginner
ออสซิลเลเตอร์ครอสขั้นสุดยอด
สัญญาณนี้บ่งบอกว่าออสซิลเลเตอร์ขั้นสุดยอดกำลังออกจากโซนซื้อมากเกินไปหรือขายมากเกินไป ออสซิลเลเตอร์นี้ผสมผสานสามช่วงเวลา จึงตอบสนองได้สม่ำเสมอกว่าออสซิลเลเตอร์แบบช่วงเวลาเดียว
ตัวชี้วัด: อัลติเมทออสซิลเลเตอร์ (7, 14, 28)
- โมเมนตัม
- แผงควบคุมของตัวเอง
- Intermediate
วู้ดดี้ ซีซีไอ
สัญญาณนี้บ่งชี้ว่าดัชนี Woodies CCI ตัดกับเส้นศูนย์: ดัชนี CCI 14 ช่วงเวลาจะเปลี่ยนฝั่งหลังจากแท่งเทียนหกแท่งในฝั่งตรงข้าม ในขณะที่ดัชนี Turbo CCI ที่เร็วกว่านั้นเห็นด้วยแล้ว เส้นศูนย์เป็นเส้นฐานที่บทความใช้เพื่อกำหนดฝั่งของแนวโน้ม
ตัวชี้วัด: CCI (14) · เทอร์โบ CCI (6)
- โมเมนตัม
- ตัวบ่งชี้บริบท
- แผงควบคุมของตัวเอง
- Beginner
ระยะห่าง EMA ราคา เปอร์เซ็นต์
แสดงให้เห็นว่าแหล่งราคาที่เลือกอยู่เหนือหรือต่ำกว่าค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โพเนนเชียล (EMA) มากน้อยเพียงใดในหน่วยเปอร์เซ็นต์ โซนอ้างอิงที่กำหนดค่าได้จะช่วยเปรียบเทียบระยะห่างปัจจุบันกับมาตราส่วนที่คุณเลือก
ตัวชี้วัด: ระยะทาง EMA (20) ใน %
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ