iqow-harami-rsi.lua 5 كيلوبايت · مجاني، مرخص بموجب رخصة MIT
بالنسبة IQ Option غرفة التداول عبر الإنترنت. لا يقوم تطبيق Quadcode برسم علامات أعلى وأدنى سعر على الهاتف المحمول.
أضفه إلى IQ Option في الخطوات 3
- احصل على الملف. اضغط على "الحصول على البرنامج النصي". سيقوم متصفحك بحفظ ملف بامتداد .lua.
- قم باستيراده IQ Option. افتح غرفة التداول عبر الإنترنت على رصيد التدريب. انقر على أيقونة الموجة في أسفل يسار الرسم البياني، وافتح علامة تبويب البرامج النصية، واضغط على استيراد البرنامج النصي، ثم اختر الملف.
- أضفها إلى الجدول. يُفتح الكود في محرر. انقر على زر الإضافة (+) الموجود أسفله (إضافة إلى الرسم البياني). لا يلزم الحفظ إلا بعد تعديل الكود.
دليل مصور كامل، مع لقطات شاشة →
خطر. التداول قد يُؤدي إلى خسارة المال. المؤشر هو مجرد ملاحظة على الرسم البياني، وليس تنبؤًا، وقد تم اختبار هذا البرنامج النصي على بيانات تجريبية، ولم يتم إثبات فعاليته في التداول الحقيقي. جرّبه أولًا على حساب التدريب.
- انعكاس
- السعر
- مبتدئ
يُحدد هذا النمط أزواج الشموع الصاعدة والهابطة وفقًا لنمط هارامي عندما يكون مؤشر القوة النسبية (RSI) في منطقة منخفضة أو مرتفعة. يساعد مؤشر القوة النسبية في التحقق مما إذا كان الزوج يتبع حركة صعودية في الاتجاه المعاكس.
القواعد
علامة أعلى
شمعة هبوطية كاملة متبوعة بشمعة صعودية بجسم لا يتجاوز 50% من الجسم الأول وتقع بالكامل داخله، مع مؤشر القوة النسبية (14) أقل من 40.
علامة سفلية
شمعة صعودية كاملة متبوعة بشمعة هبوطية بجسم لا يتجاوز 50% من الجسم الأول وتقع بالكامل داخله، مع مؤشر القوة النسبية (14) أعلى من 60.
يظهر مؤشر بعد افتتاح الشمعة التالية، ويُرسم على الشمعة التي أكملت النموذج. هذا المؤشر هو مجرد ملاحظة على الرسم البياني، وليس توجيهًا للتداول.
كيفية قراءته
لا توجد خطوط على الرسم البياني؛ اقرأ الشموع. يشير المثلث الأخضر الأعلى إلى الشمعة الثانية من نمط هارامي صعودي، بينما يشير المثلث الأحمر الأدنى إلى الشمعة الثانية من نمط هارامي هبوطي. عتبات مؤشر القوة النسبية (RSI) هي مدخلات داخل البرنامج النصي.
المؤشرات المستخدمة
- زوج شموع هارامي
- RSI (14, 40/60)
نفس العرض مع المؤشرات المدمجة: أضف RSI (14) بالمستويين 40 و 60 وحدد زوج harami بالعين المجردة.
الإعدادات الافتراضية
| الحد الأدنى لحجم جسم الشمعة الأولى من النطاق | 0.5 |
|---|---|
| أكبر حصة من جسم الشمعة الثانية من جسم الشمعة الأولى | 0.5 |
| فترة RSI | 14 |
| مستوى مؤشر القوة النسبية الصعودي | 40 |
| مستوى مؤشر القوة النسبية الهابط | 60 |
كل قيمة هي مدخل في إعدادات البرنامج النصي. نصائح النظام الأساسي معطلة افتراضيًا.
النقاط الرئيسية
- الحرامي عبارة عن شمعتين: شمعة كبيرة وشمعة صغيرة بلون معاكس داخل جسمها.
- تشير الشمعة الصغيرة إلى تباطؤ الحركة السابقة.
- يحتاج نموذج هارامي الصعودي إلى مؤشر القوة النسبية أقل من 40، بينما يحتاج نموذج هارامي الهبوطي إلى مؤشر القوة النسبية أعلى من 60.
- يختلف هذا عن البار الداخلي، الذي يقارن بين أعلى وأدنى المستويات بدلاً من أجسامها.
- تؤكد العلامات اكتمال الشمعة.
- تدرب على ميزان التدريب وانظر إلى الاتجاه المحيط بكل نمط.
القيود. لا تُحدد المقالة حجم التداول أو قواعد مؤشر القوة النسبية (RSI) بدقة، لذا فإن حدود حجم التداول بنسبة 50% ومستويات مؤشر القوة النسبية 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
المزيد من نصوص الانعكاس
- انعكاس
- لوحة خاصة
- متوسط
انعكاس تحويل فيشر
يُشير هذا إلى تقاطع تحويل فيشر مع خط الزناد الخاص به عندما يكون المؤشر في منطقة قصوى. وهذا هو تأكيد التقاطع ثم الوصول إلى أقصى حد، كما هو موضح في المقالة ذات الصلة.
المؤشرات: إيلرز فيشر ترانسفورم (10)
- انعكاس
- السعر
- متقدم
قفزة تلاشي
تُشير هذه العلامة إلى أول شمعة مدتها دقيقة واحدة تُعتبر حركتها الفردية شاذة للغاية مقارنةً بآخر 120 شمعة، مما يُنذر بارتفاع سريع. كما يتطلب الإعداد المدروس أن يُعارض مؤشر Supertrend(10, 3) هذا التراجع.
المؤشرات: قيمة Z لعائد اللوغاريتم لشمعة واحدة (120) · الاتجاه الفائق (10، 3)، مطلوب عدم الموافقة
- انعكاس
- لوحة خاصة
- متوسط
كي دي جيه كروس
علامات تقاطعات K/D التي تحدث بينما يكون خط J الأسرع ممتدًا بالفعل إلى ما دون 20 أو فوق 80. يصل J إلى أقصى الحدود أولاً، لذلك يتم استخدام التقاطع الذي يليه كحدث توقيت.
المؤشرات: KDJ (9, 3, 3)
قم بتنزيل جميع النصوص الـ 74 كملف مضغوط واحد (ZIP). رخصة MIT، مُقدمة "كما هي"، بدون ضمان. موقع IQOptionWiki مستقل عن IQ Option مشغل المنصة. لا تُعدّ أيٌّ من المعلومات الواردة هنا نصيحة استثمارية أو ضماناً للنتائج.