iqow-morning-evening-star-rsi.lua 6 كيلوبايت · مجاني، مرخص بموجب رخصة MIT
بالنسبة IQ Option غرفة التداول عبر الإنترنت. لا يقوم تطبيق Quadcode برسم علامات أعلى وأدنى سعر على الهاتف المحمول.
أضفه إلى IQ Option في الخطوات 3
- احصل على الملف. اضغط على "الحصول على البرنامج النصي". سيقوم متصفحك بحفظ ملف بامتداد .lua.
- قم باستيراده IQ Option. افتح غرفة التداول عبر الإنترنت على رصيد التدريب. انقر على أيقونة الموجة في أسفل يسار الرسم البياني، وافتح علامة تبويب البرامج النصية، واضغط على استيراد البرنامج النصي، ثم اختر الملف.
- أضفها إلى الجدول. يُفتح الكود في محرر. انقر على زر الإضافة (+) الموجود أسفله (إضافة إلى الرسم البياني). لا يلزم الحفظ إلا بعد تعديل الكود.
دليل مصور كامل، مع لقطات شاشة →
خطر. التداول قد يُؤدي إلى خسارة المال. المؤشر هو مجرد ملاحظة على الرسم البياني، وليس تنبؤًا، وقد تم اختبار هذا البرنامج النصي على بيانات تجريبية، ولم يتم إثبات فعاليته في التداول الحقيقي. جرّبه أولًا على حساب التدريب.
- انعكاس
- السعر
- متوسط
يُشير مؤشر القوة النسبية (RSI) إلى نمطي شموع نجمة الصباح ونجمة المساء عندما يكون المؤشر في الشمعة الوسطى عند مستوى منخفض أو مرتفع. ويساعد مؤشر القوة النسبية في التحقق من أن النمط يتبع اتجاهًا معاكسًا.
القواعد
علامة أعلى
شمعة هبوطية كاملة، وشمعة وسطى صغيرة الجسم (بحد أقصى 30٪ من الجسم الأول) وشمعة صعودية تغلق فوق نقطة منتصف جسم الشمعة الأولى، مع مؤشر القوة النسبية (14) أقل من 40 على الشمعة الوسطى.
علامة سفلية
شمعة صعودية كاملة، وشمعة وسطى صغيرة الجسم (بحد أقصى 30٪ من الجسم الأول) وشمعة هبوطية تغلق أسفل نقطة منتصف جسم الشمعة الأولى، مع مؤشر القوة النسبية (14) أعلى من 60 على الشمعة الوسطى.
يظهر مؤشر بعد افتتاح الشمعة التالية، ويُرسم على الشمعة التي أكملت النموذج. هذا المؤشر هو مجرد ملاحظة على الرسم البياني، وليس توجيهًا للتداول.
كيفية قراءته
لا توجد خطوط على الرسم البياني؛ اقرأ الشموع. يشير المثلث الأخضر الأعلى إلى الشمعة الثالثة من نمط نجمة الصباح، بينما يشير المثلث الأحمر الأدنى إلى الشمعة الثالثة من نمط نجمة المساء. مناطق مؤشر القوة النسبية (RSI) هي عتبات داخل البرنامج النصي ويمكن تغييرها في المدخلات.
المؤشرات المستخدمة
- شموع النجوم الصباحية والمسائية
- RSI (14, 40/60)
نفس العرض مع المؤشرات المدمجة: أضف RSI (14) بالمستويين 40 و 60 وابحث عن شكل النجمة المكونة من ثلاث شموع بالعين المجردة.
الإعدادات الافتراضية
| الحد الأدنى لحجم جسم الشمعة الأولى من النطاق | 0.5 |
|---|---|
| أكبر حصة من جسم الشمعة الوسطى من الجسم الأول | 0.3 |
| فترة RSI | 14 |
| مستوى مؤشر القوة النسبية (RSI) لنجم الصباح | 40 |
| مستوى مؤشر القوة النسبية (RSI) لنجم المساء | 60 |
كل قيمة هي مدخل في إعدادات البرنامج النصي. نصائح النظام الأساسي معطلة افتراضيًا.
النقاط الرئيسية
- تتكون نجمة الصباح من ثلاث شموع: شمعة هبوطية كبيرة، وشمعة صغيرة مترددة، وشمعة صعودية.
- يجب أن تغلق الشمعة الثالثة فوق منتصف الشمعة الأولى.
- يشير مؤشر القوة النسبية (RSI) الأقل من 40 على الشمعة الوسطى إلى أن السعر قد انخفض أولاً.
- نجمة المساء هي الصورة المعكوسة مع مؤشر القوة النسبية (RSI) أعلى من 60.
- تؤكد العلامات اكتمال الشمعة.
- انظر إلى الاتجاهات والمستويات المحيطة، وتدرب على ميزان التدريب.
القيود. يصف المقال نمطًا يتكون من شمعة وسطى تشبه شمعة دوجي، مع وجود اتجاه سابق؛ وتُستخدم نسبتا 50% و30% من جسم الشمعة، بالإضافة إلى مستويات مؤشر القوة النسبية (RSI)، لتحديد هذا النمط. هذا النمط نادر الحدوث، وقد يفشل بدون سياق داعم، مثل مستويات الدعم والمقاومة. يُنصح باختباره على حساب تجريبي قبل المخاطرة بأموال حقيقية.
كود المصدر الكامل
يُشير كلٌّ من التنزيل وهذه المعاينة إلى نفس الملف الذي تمت مراجعته. SHA-256: 07f1c732aa63ceaab1324fbe15ac62f7ce56b5abbd62c33741c8054be288dee4
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Morning Evening Star RSI v1.0.1
--
-- Three-candle star reversal patterns, filtered by RSI so the pattern forms
-- after a push into an oversold or overbought area. The middle candle must
-- have a small body (indecision) compared with the first candle.
--
-- 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: morning star. Candle 1 is a full bearish candle, candle 2 has a
-- small body, candle 3 is bullish and closes above the midpoint of
-- candle 1's body. RSI(14) on candle 2 is below 40.
-- LOWER: evening star. Mirror image, RSI(14) on candle 2 is 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 Morning Evening Star RSI",
short_name = "IQOW STAR RSI",
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),
small_body_ratio = input (0.3, "Middle candle: maximum body share of first body", input.double, 0.05, 0.9, 0.05, false)
}
input_group {
"2. RSI",
rsi_period = input (14, "RSI period", input.integer, 2, 100),
oversold_level = input (40, "Morning star: RSI below", input.double, 5, 50, 1, false),
overbought_level = input (60, "Evening star: 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 two bars back, candle 2 one bar back, candle 3 is this bar.
local open_1 = get_value (open [2], nil)
local close_1 = get_value (close [2], nil)
local high_1 = get_value (high [2], nil)
local low_1 = get_value (low [2], nil)
local open_2 = get_value (open [1], nil)
local close_2 = get_value (close [1], nil)
local open_3 = get_value (open, nil)
local close_3 = get_value (close, nil)
local rsi_2 = get_value (rsi_value [1], 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
open_3 ~= nil and close_3 ~= nil and
rsi_2 ~= nil
-- Body sizes and the first candle's range. A zero body or range never qualifies.
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 middle_is_small = body_1 > 0 and body_2 <= small_body_ratio * body_1
-- Candle 3 must close beyond the midpoint of candle 1's body.
local midpoint_1 = data_is_ready and (open_1 + close_1) / 2 or 0
local morning_star =
data_is_ready and first_is_full and middle_is_small and
close_1 < open_1 and
close_3 > open_3 and close_3 > midpoint_1 and
rsi_2 < oversold_level
local evening_star =
data_is_ready and first_is_full and middle_is_small and
close_1 > open_1 and
close_3 < open_3 and close_3 < midpoint_1 and
rsi_2 > overbought_level
higher_setup = conditional (morning_star)
lower_setup = conditional (evening_star)
-- 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,
"Star HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"Star 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
المزيد من نصوص الانعكاس
- انعكاس
- لوحة خاصة
- مبتدئ
قانون RSI
يُشير هذا إلى الشمعة التي يُغلق عندها مؤشر القوة النسبية (RSI) القصير (5) عائدًا إلى خط 30 أو 70 بعد دخوله المنطقة القصوى. هذه هي قاعدة قانون مؤشر القوة النسبية (RSI) المذكورة في المقال ذي الصلة، والموضحة بعلامات الشموع المكتملة.
المؤشرات: RSI (5, 30/70)
- انعكاس
- السعر
- مبتدئ
انعكاس نطاقات STARC
يشير هذا إلى شمعة صاعدة أو هابطة تغلق داخل نطاقات STARC بعد أن كان الإغلاق السابق خارجها. تُظهر هذه النطاقات مدى تمدد السعر وفقًا لمؤشر متوسط المدى الحقيقي (ATR).
المؤشرات: نطاقات STARC (SMA 6، ATR 15، x2)
- انعكاس
- السعر
- مبتدئ
مؤشر ستوكاستيك PSAR
يشير هذا إلى تقاطع مؤشر ستوكاستيك %K/%D الذي يبدأ في منطقة ذروة البيع أو ذروة الشراء، بينما تقع نقطة مؤشر Parabolic SAR على الجانب المقابل من السعر. يحدد مؤشر ستوكاستيك التوقيت، بينما يتحقق مؤشر SAR من توافق وقف الخسارة المتحرك.
المؤشرات: ستوكاستيك (14، 3، 3) · بارابوليكي SAR (0.02، 0.2)
قم بتنزيل جميع النصوص الـ 74 كملف مضغوط واحد (ZIP). رخصة MIT، مُقدمة "كما هي"، بدون ضمان. موقع IQOptionWiki مستقل عن IQ Option مشغل المنصة. لا تُعدّ أيٌّ من المعلومات الواردة هنا نصيحة استثمارية أو ضماناً للنتائج.