iqow-harami-rsi.lua 5 KB · ฟรี ภายใต้ใบอนุญาต MIT
สำหรับ IQ Option ห้องซื้อขายออนไลน์ Quadcode ไม่แสดงเครื่องหมาย "สูงกว่า" และ "ต่ำกว่า" บนมือถือ
เพิ่มมันเข้าไป IQ Option ในขั้นตอน 3
- ดาวน์โหลดไฟล์ กด "รับสคริปต์" เบราว์เซอร์ของคุณจะบันทึกไฟล์ .lua ไว้
- นำเข้าใน IQ Option. เปิดเว็บเทรดรูมบนบัญชีฝึกฝน คลิกไอคอนรูปคลื่นที่มุมล่างซ้ายของกราฟ เปิดแท็บสคริปต์ กดนำเข้าสคริปต์ และเลือกไฟล์
- เพิ่มลงในแผนภูมิ โค้ดจะเปิดขึ้นในโปรแกรมแก้ไขข้อความ คลิกปุ่มบวกด้านล่าง (เพิ่มลงในแผนภูมิ) การบันทึกจำเป็นเฉพาะหลังจากที่คุณแก้ไขโค้ดเสร็จแล้วเท่านั้น
คู่มือฉบับสมบูรณ์พร้อมภาพประกอบและภาพหน้าจอ →
ความเสี่ยง. การซื้อขายอาจทำให้ขาดทุนได้ ตัวชี้วัดเป็นเพียงการสังเกตจากกราฟ ไม่ใช่การคาดการณ์ และสคริปต์นี้ได้รับการตรวจสอบจากข้อมูลทดสอบแล้ว ยังไม่ได้รับการพิสูจน์ในการซื้อขายจริง ลองใช้ในบัญชีทดลองก่อน
- ความผกผัน
- ราคา
- Beginner
เครื่องหมายนี้แสดงคู่แท่งเทียนฮารามิขาขึ้นและขาลงเมื่อ RSI อยู่ในโซนต่ำหรือสูง RSI ช่วยตรวจสอบว่าคู่สกุลเงินนั้นมีการเคลื่อนไหวไปในทิศทางตรงกันข้ามหรือไม่
กฎระเบียบ
เครื่องหมายที่สูงกว่า
แท่งเทียนขาลงเต็มแท่งตามด้วยแท่งเทียนขาขึ้นที่มีตัวแท่งไม่เกิน 50% ของแท่งแรกและอยู่ภายในแท่งแรกทั้งหมด โดยมี RSI(14) ต่ำกว่า 40
เครื่องหมายล่าง
แท่งเทียนขาขึ้นเต็มแท่งตามด้วยแท่งเทียนขาลงที่มีตัวแท่งไม่เกิน 50% ของแท่งแรกและอยู่ภายในแท่งแรกทั้งหมด โดยมี RSI(14) อยู่เหนือ 60
เครื่องหมายจะปรากฏขึ้นหลังจากแท่งเทียนถัดไปเปิด และจะถูกวาดลงบนแท่งเทียนที่สร้างรูปแบบการตั้งค่าเสร็จสมบูรณ์ นี่เป็นเพียงการสังเกตการณ์บนกราฟ ไม่ใช่คำแนะนำในการซื้อขาย
วิธีอ่าน
ในกราฟไม่มีเส้นบอกแนวรับแนวต้าน ให้ดูที่แท่งเทียน สามเหลี่ยมสีเขียวที่แสดงว่า "สูงขึ้น" หมายถึงแท่งเทียนที่สองของรูปแบบฮารามี่ขาขึ้น และสามเหลี่ยมสีแดงที่แสดงว่า "ต่ำลง" หมายถึงแท่งเทียนที่สองของรูปแบบฮารามี่ขาลง ค่าเกณฑ์ RSI เป็นค่าที่ป้อนเข้าไปในสคริปต์
ตัวชี้วัดที่ใช้
- เทียนคู่ฮารามิ
- RSI (14, 40/60)
มุมมองเดียวกันกับตัวบ่งชี้ในตัว: เพิ่ม RSI (14) ด้วยระดับ 40 และ 60 และสังเกตคู่ฮารามิด้วยตาเปล่า
การตั้งค่าเริ่มต้น
| แท่งเทียนแรก ตัวแท่งขั้นต่ำ ส่วนแบ่งช่วง | 0.5 |
|---|---|
| แท่งเทียนที่สองมีส่วนแบ่งสูงสุดของตัวแท่งเทียนแรก | 0.5 |
| ช่วงเวลา RSI | 14 |
| ระดับ RSI ขาขึ้น | 40 |
| ระดับ RSI ขาลง | 60 |
ค่าทุกค่าเป็นค่าป้อนเข้าในการตั้งค่าสคริปต์ คำแนะนำเกี่ยวกับแพลตฟอร์มถูกปิดใช้งานโดยค่าเริ่มต้น
ประเด็นสำคัญ
- ฮารามิ คือเทียนสองเล่ม: เทียนเล่มใหญ่หนึ่งเล่มและเทียนเล่มเล็กสีตรงข้ามอีกหนึ่งเล่มอยู่ภายในตัวเทียน
- แท่งเทียนขนาดเล็กแสดงให้เห็นว่าการเคลื่อนไหวครั้งก่อนเริ่มชะลอตัวลง
- รูปแบบฮารามี่ขาขึ้นต้องมีค่า RSI ต่ำกว่า 40 ส่วนรูปแบบฮารามี่ขาลงต้องมีค่า RSI สูงกว่า 60
- สิ่งนี้แตกต่างจากแท่งเทียนแบบ Inside Bar ซึ่งเปรียบเทียบจุดสูงสุดและจุดต่ำสุด แทนที่จะเปรียบเทียบตัวแท่งเทียน
- เครื่องหมายยืนยันบนแท่งเทียนที่เสร็จสมบูรณ์แล้ว
- ฝึกฝนบนแบบจำลองการฝึกฝนและสังเกตแนวโน้มรอบๆ รูปแบบแต่ละแบบ
ข้อ จำกัด บทความนี้ไม่ได้ระบุขนาดหรือกฎ RSI ที่แน่นอน ดังนั้นขีดจำกัด 50% ของตัวแท่งเทียนและระดับ RSI 40/60 จึงเป็นคำจำกัดความของรูปแบบในบทความนี้ ฮารามิเป็นเพียงการหยุดชั่วคราว และการเคลื่อนไหวอาจดำเนินต่อไปในทิศทางเดิม ทดสอบในบัญชีทดลองก่อนที่จะเสี่ยงเงินจริง
กรอกซอร์สโค้ดให้สมบูรณ์
ไฟล์ที่ดาวน์โหลดและตัวอย่างนี้แสดงผลลัพธ์เป็นไฟล์เดียวกัน SHA-256: c78b209f6021cb5b6fcf0955e3eb1ffe1e91768d62036b742b4307b5cb5c6aa2
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Harami RSI v1.0.1
--
-- A harami is a two-candle pattern: a full candle followed by a small
-- opposite-colour candle whose body sits inside the first candle's body.
-- RSI checks that the pattern appears after a push into an oversold or
-- overbought area.
--
-- RSI follows IQ Option's built-in RSI: closing prices, with the average gain
-- and the average loss smoothed by an exponential average (alpha 2 / (period +
-- 1)). Version 1.0.1 (9 October 2026) changed this from Wilder smoothing; the
-- inputs, periods and levels are unchanged.
--
-- HIGHER: candle 1 is a full bearish candle, candle 2 (this candle) is
-- bullish with a body at most 50% of candle 1's body and fully
-- inside it, and RSI(14) is below 40.
-- LOWER: mirror image, with RSI(14) above 60.
--
-- 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 Harami RSI",
short_name = "IQOW HARAMI",
overlay = true
}
input_group {
"1. Candle geometry",
first_body_ratio = input (0.5, "First candle: minimum body share of range", input.double, 0.1, 0.95, 0.05, false),
max_body_ratio = input (0.5, "Second candle: maximum body share of first body", input.double, 0.05, 0.95, 0.05, false)
}
input_group {
"2. RSI",
rsi_period = input (14, "RSI period", input.integer, 2, 100),
oversold_level = input (40, "Bullish harami: RSI below", input.double, 5, 50, 1, false),
overbought_level = input (60, "Bearish harami: RSI above", input.double, 50, 95, 1, false)
}
input_group {
"Display and advice",
signals_visible = input { default = true, type = input.plot_visibility },
advice_enabled = input { default = false, name = "Enable platform advice", type = input.boolean }
}
input_group {
"Colors",
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 }
}
-- RSI as IQ Option's built-in RSI draws it: the average gain and the average
-- loss are exponential averages (alpha = 2 / (period + 1)), not Wilder's
-- smoothing (alpha = 1 / period). It stays empty until both averages exist and
-- is 50 when price did not move at all.
rsi_change = close - close [1]
rsi_gain = ema (max (rsi_change, 0), rsi_period)
rsi_loss = ema (max (-rsi_change, 0), rsi_period)
rsi_total = rsi_gain + rsi_loss
rsi_value = iff (rsi_total > 0, 100 * rsi_gain / rsi_total, rsi_total + 50)
-- Candle 1 is the previous bar, candle 2 is this bar.
local open_1 = get_value (open [1], nil)
local close_1 = get_value (close [1], nil)
local high_1 = get_value (high [1], nil)
local low_1 = get_value (low [1], nil)
local open_2 = get_value (open, nil)
local close_2 = get_value (close, nil)
local rsi_now = get_value (rsi_value, nil)
local levels_are_valid = oversold_level < overbought_level
local data_is_ready =
levels_are_valid and
open_1 ~= nil and close_1 ~= nil and high_1 ~= nil and low_1 ~= nil and
open_2 ~= nil and close_2 ~= nil and
rsi_now ~= nil
local body_1 = data_is_ready and math.abs (close_1 - open_1) or 0
local range_1 = data_is_ready and (high_1 - low_1) or 0
local body_2 = data_is_ready and math.abs (close_2 - open_2) or 0
local first_is_full = range_1 > 0 and body_1 >= first_body_ratio * range_1
local second_is_small = body_1 > 0 and body_2 > 0 and body_2 <= max_body_ratio * body_1
-- Bullish harami: bearish candle 1, bullish candle 2 with both open and
-- close inside candle 1's body (between its close and open).
local bullish_harami =
data_is_ready and first_is_full and second_is_small and
close_1 < open_1 and close_2 > open_2 and
open_2 >= close_1 and close_2 <= open_1 and
rsi_now < oversold_level
local bearish_harami =
data_is_ready and first_is_full and second_is_small and
close_1 > open_1 and close_2 < open_2 and
open_2 <= close_1 and close_2 >= open_1 and
rsi_now > overbought_level
higher_setup = conditional (bullish_harami)
lower_setup = conditional (bearish_harami)
-- 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 signals_visible then
plot_shape (
confirmed_higher,
"Harami HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"Harami 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
การกลับการแปลงฟิชเชอร์
แสดงว่ามีการตัดกันของเส้นทริกเกอร์ตามแบบจำลอง Fisher Transform ในขณะที่ตัวชี้วัดอยู่ในโซนสุดขั้ว นี่คือการยืนยันแบบสุดขั้วแล้วตัดกันตามที่บทความที่เกี่ยวข้องได้อธิบายไว้
ตัวชี้วัด: การแปลง Ehlers Fisher (10)
- ความผกผัน
- ราคา
- ค้นหาระดับสูง
จัมป์เฟด
ทำเครื่องหมายแท่งเทียน 1 นาทีแรกที่การเคลื่อนไหวของแท่งเทียนเดียวเป็นค่าผิดปกติอย่างมากเมื่อเทียบกับผลตอบแทน 120 ครั้งล่าสุด โดยคาดว่าจะมีการดีดกลับในระยะสั้น การตั้งค่าการวิจัยยังต้องการ Supertrend(10, 3) ที่ไม่เห็นด้วยกับการลดลงด้วย
ตัวชี้วัด: คะแนน z ของผลตอบแทนลอการิทึม 1 แท่ง (120) · แนวโน้มสูงสุด (10, 3) จำเป็นต้องไม่เห็นด้วย
- ความผกผัน
- แผงควบคุมของตัวเอง
- Intermediate
เคดีเจ ครอส
ทำเครื่องหมายจุดตัด K/D ที่เกิดขึ้นในขณะที่เส้น J ที่เร็วกว่านั้นยืดออกไปต่ำกว่า 20 หรือสูงกว่า 80 แล้ว เส้น J จะถึงจุดสุดขั้วก่อน ดังนั้นจุดตัดหลังจากนั้นจึงถูกใช้เป็นเหตุการณ์จับเวลา
ตัวชี้วัด: KDJ (9, 3, 3)
ดาวน์โหลดสคริปต์ทั้ง 74 รายการในรูปแบบไฟล์ ZIP เดียว • สัญญาอนุญาต MIT ให้ใช้งาน "ตามสภาพที่เป็นอยู่" โดยไม่มีการรับประกันใดๆ IQOptionWiki เป็นอิสระจาก • IQ Option ผู้ดำเนินการแพลตฟอร์ม ข้อมูลในที่นี้ไม่ใช่คำแนะนำด้านการลงทุนหรือการรับประกันผลลัพธ์ใดๆ