iqow-donchian-rsi-reversal.lua 6 كيلوبايت · مجاني، مرخص بموجب رخصة MIT
بالنسبة IQ Option غرفة التداول عبر الإنترنت. لا يقوم تطبيق Quadcode برسم علامات أعلى وأدنى سعر على الهاتف المحمول.
أضفه إلى IQ Option في الخطوات 3
- احصل على الملف. اضغط على "الحصول على البرنامج النصي". سيقوم متصفحك بحفظ ملف بامتداد .lua.
- قم باستيراده IQ Option. افتح غرفة التداول عبر الإنترنت على رصيد التدريب. انقر على أيقونة الموجة في أسفل يسار الرسم البياني، وافتح علامة تبويب البرامج النصية، واضغط على استيراد البرنامج النصي، ثم اختر الملف.
- أضفها إلى الجدول. يُفتح الكود في محرر. انقر على زر الإضافة (+) الموجود أسفله (إضافة إلى الرسم البياني). لا يلزم الحفظ إلا بعد تعديل الكود.
دليل مصور كامل، مع لقطات شاشة → شاهد الفيديو
خطر. التداول قد يُؤدي إلى خسارة المال. المؤشر هو مجرد ملاحظة على الرسم البياني، وليس تنبؤًا، وقد تم اختبار هذا البرنامج النصي على بيانات تجريبية، ولم يتم إثبات فعاليته في التداول الحقيقي. جرّبه أولًا على حساب التدريب.
- انعكاس
- السعر
- مبتدئ
يُشير هذا إلى اللحظة التي يخرج فيها مؤشر القوة النسبية (RSI) من منطقة ذروة البيع أو ذروة الشراء بعد أن لامس السعر نطاق دونشيان المقابل في نفس الاتجاه. تُظهر القناة نطاق السعر، بينما يُشير مؤشر القوة النسبية إلى بداية انعكاس الزخم.
شاهد: قم بتثبيته واتبع عملية تداول تجريبية
القواعد
علامة أعلى
بينما يكون مؤشر القوة النسبية (14) عند أو أقل من 30، فإن الشمعة تلامس النطاق السفلي لمؤشر دونشيان (20)؛ يتم وضع علامة أعلى على الشمعة الأولى التي يغلق عليها مؤشر القوة النسبية مرة أخرى فوق 30.
علامة سفلية
بينما يكون مؤشر القوة النسبية (14) عند أو أعلى من 70، فإن الشمعة تلامس النطاق العلوي لـ Donchian (20)؛ الشمعة الأولى التي يغلق عليها مؤشر القوة النسبية مرة أخرى تحت 70 يتم وضع علامة عليها بـ LOWER.
يظهر مؤشر بعد افتتاح الشمعة التالية، ويُرسم على الشمعة التي أكملت النموذج. هذا المؤشر هو مجرد ملاحظة على الرسم البياني، وليس توجيهًا للتداول.
كيفية قراءته
الخطوط الزرقاء تمثل أعلى وأدنى سعر على مدى 20 شمعة، مع خط خافت بينهما. يشير المثلث الأخضر "أعلى" أسفل الشمعة إلى أن مؤشر القوة النسبية (RSI) قد تعافى للتو من منطقة ذروة البيع بعد ملامسته الحد الأدنى؛ بينما يشير المثلث الأحمر "أسفل" أعلى الشمعة إلى الحالة المعاكسة عند الحد الأعلى.
المؤشرات المستخدمة
- قناة دونشيان (20)
- RSI (14, 30/70)
نفس العرض مع المؤشرات المدمجة: إضافة IQ Optionقنوات دونشيان (20) ومؤشر القوة النسبية (14، المستويات 70/30).
الإعدادات الافتراضية
| العصر الدونشي | 20 |
|---|---|
| فترة RSI | 14 |
| مستوى ذروة البيع | 30 |
| مستوى ذروة الشراء | 70 |
كل قيمة هي مدخل في إعدادات البرنامج النصي. نصائح النظام الأساسي معطلة افتراضيًا.
النقاط الرئيسية
- يرسم مؤشر دونشيان أعلى قمة وأدنى قاع لآخر 20 شمعة.
- عندما تلامس الشمعة الحد السفلي بينما يكون مؤشر القوة النسبية أقل من 30، فإن السعر يكون قد وصل إلى أقصى حد له مؤخراً.
- ننتظر: لا يظهر المؤشر إلا عندما يغلق مؤشر القوة النسبية فوق مستوى 30، وهي أول علامة على أن ضغط البيع يتلاشى.
- يعطي الشريط العلوي و RSI 70 نفس الصورة بشكل معكوس، مع وضع علامة LOWER.
- تؤكد العلامات اكتمال الشمعة، لذلك لا يتم إعادة رسمها أثناء تشكل الشمعة.
- جربها أولاً على ميزان التدريب وراقب كيف تتصرف في الاتجاهات مقابل النطاقات.
القيود. في حالة الاتجاه القوي، قد يتحرك السعر ضمن النطاق المحدد بينما يبقى مؤشر القوة النسبية (RSI) في أقصى حالاته لفترة طويلة، وقد يتبع الارتداد فوق مستوى 30 أو 70 ارتفاعٌ جديد في اتجاه الترند. تكون هذه الاستراتيجية أكثر فعالية في الأسواق المتذبذبة أو المتباطئة. اختبرها على حساب تجريبي قبل المخاطرة بأموال حقيقية.
كود المصدر الكامل
يُشير كلٌ من التنزيل وهذه المعاينة إلى نفس الملف الذي تمت مراجعته. SHA-256: 5fb91bba833c8bf8d634f02aa133a8e57da5020d6bd4431a72b4e7f864bd5cc5
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Donchian RSI Reversal v1.0.1
--
-- Combines a Donchian Channel (the highest high and lowest low of the last
-- N candles) with RSI. A touch of the outer band shows price stretched to a
-- recent extreme; RSI returning from its extreme zone shows momentum turning.
--
-- 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: during an RSI oversold excursion (RSI at or below 30) a candle
-- touched the lower Donchian band, and RSI now closes back above 30.
-- LOWER: during an RSI overbought excursion (RSI at or above 70) a candle
-- touched the upper Donchian band, and RSI now closes back below 70.
--
-- 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 Donchian RSI Reversal",
short_name = "IQOW DC RSI",
overlay = true
}
input_group {
"1. Donchian Channel",
channel_period = input (20, "Channel period", input.integer, 2, 200)
}
input_group {
"2. RSI",
rsi_period = input (14, "RSI period", input.integer, 2, 100),
oversold_level = input (30, "Oversold level", input.double, 5, 45, 1, false),
overbought_level = input (70, "Overbought level", input.double, 55, 95, 1, false)
}
input_group {
"Display and advice",
channel_visible = input { default = true, type = input.plot_visibility },
middle_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",
channel_color = input { default = "#56CEFF", type = input.color },
middle_color = input { default = rgba(255, 255, 255, 0.35), type = input.color },
channel_fill_color = input { default = rgba(86, 206, 255, 0.06), type = input.color },
channel_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 }
}
-- Donchian Channel: inclusive rolling extremes, as on the IQ Option chart.
upper_band = highest (high, channel_period)
lower_band = lowest (low, channel_period)
middle_band = (upper_band + lower_band) / 2
-- 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)
-- Current-bar scalars for the Lua rule logic.
local rsi_now = get_value (rsi_value, nil)
local rsi_previous = get_value (rsi_value [1], nil)
local upper_now = get_value (upper_band, nil)
local lower_now = get_value (lower_band, nil)
local levels_are_valid = oversold_level < 50 and overbought_level > 50
local data_is_ready =
levels_are_valid and
rsi_now ~= nil and
rsi_previous ~= nil and
upper_now ~= nil and
lower_now ~= nil
-- A band touch: this candle set the channel's extreme.
local touched_lower = data_is_ready and get_value (low, 0) <= lower_now
local touched_upper = data_is_ready and get_value (high, 0) >= upper_now
-- "Armed" stays true while RSI remains in its extreme zone after a touch, so
-- the touch must belong to the same oversold or overbought excursion.
local was_long_armed = get_value (long_armed [1], false)
local was_short_armed = get_value (short_armed [1], false)
long_armed = conditional (
data_is_ready and rsi_now <= oversold_level and (was_long_armed or touched_lower)
)
short_armed = conditional (
data_is_ready and rsi_now >= overbought_level and (was_short_armed or touched_upper)
)
-- Event: RSI closes back across its level on this candle.
local rsi_recovers =
data_is_ready and rsi_previous <= oversold_level and rsi_now > oversold_level
local rsi_fades =
data_is_ready and rsi_previous >= overbought_level and rsi_now < overbought_level
higher_setup = conditional (rsi_recovers and was_long_armed)
lower_setup = conditional (rsi_fades and was_short_armed)
-- 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 channel_visible then
fill (upper_band, lower_band, "Donchian area", channel_fill_color)
plot (upper_band, "Upper Donchian", channel_color, channel_width)
plot (lower_band, "Lower Donchian", channel_color, channel_width)
end
if middle_visible then
plot (middle_band, "Donchian middle", middle_color, 1)
end
if signals_visible then
plot_shape (
confirmed_higher,
"DC RSI HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"DC RSI 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
المزيد من نصوص الانعكاس
- انعكاس
- السعر
- متوسط
Z-Score Fade Pro
تلاشي Z-Score أكثر صرامة: فهو يشير إلى أول شمعة مدتها دقيقة واحدة تصل إلى انحرافين معياريين عن متوسطها المتحرك البسيط (40)، ولكن فقط عندما لا يبتعد السعر كثيرًا عن متوسطه المتحرك الأسي (100)، وبشكل افتراضي، فقط عندما يتفق Supertrend مع التلاشي.
المؤشرات: مؤشر Z (المتوسط المتحرك البسيط 40، انحرافان عن المتوسط المتحرك) · مرشح مطاردة المتوسط المتحرك الأسي 100 ومتوسط المدى الحقيقي 14 · الاتجاه الفائق (10، 3)
- انعكاس
- السعر
- مبتدئ
انعكاس مؤشر القوة النسبية من بولينجر
تُشير هذه الشمعة إلى أول شمعة تُغلق داخل نطاقات بولينجر بعد إغلاقها خارج أحد النطاقات، مع وجود مؤشر القوة النسبية (RSI) في منطقة ذروة البيع أو ذروة الشراء. تُظهر النطاقات مدى تمدد السعر، ويُضيف مؤشر القوة النسبية (RSI) منظورًا ثانيًا لنفس التمدد.
المؤشرات: مؤشر بولينجر باندز (20، 2) · مؤشر القوة النسبية (14، 30/70)
- انعكاس
- لوحة خاصة
- مبتدئ
علامة 30 70 متقاطعة
يُشير هذا إلى الشمعة التي أغلق عندها مؤشر DeMarker خارج منطقة ذروة البيع أو ذروة الشراء. المستويان 30 و70 هما المستخدمان في الدليل ذي الصلة.
المؤشرات: ديماركر (14، المستويات 30/70)
قم بتنزيل جميع النصوص الـ 74 كملف مضغوط واحد (ZIP). رخصة MIT، مُقدمة "كما هي"، بدون ضمان. موقع IQOptionWiki مستقل عن IQ Option مشغل المنصة. لا تُعدّ أيٌّ من المعلومات الواردة هنا نصيحة استثمارية أو ضماناً للنتائج.