PROTECTED SOURCE SCRIPT

FLAME | RSI

214
ارجو قرأة الشرح عربي + انجليزي

Please read the explanation in Arabic + English

1. ATR Settings and SuperTrend Calculation
ATR Settings:
The indicator allows the user to select ATR settings from a dropdown menu with three options (Set 1, Set 2, Set 3), corresponding to different trading styles (speculative, intraday, and scalping).
Depending on the selection, the ATR period (Periods) and the multiplier (Multiplier) are adjusted, which in turn affects the sensitivity of the trend lines.

SuperTrend Calculation:

The ATR is calculated using the ta.atr function and is adjusted according to the chosen multiplier and period.
The upper (up) and lower (dn) trend lines are computed based on the selected source (hl2) and updated using the previous closing prices. This adjustment helps in determining trend reversals.
A variable trend is used (with values 1 for an uptrend and -1 for a downtrend) to signal reversals, which are then used for generating buy/sell signals and plotting trend lines on the chart.

2. Relative Strength Index (RSI) Module
RSI Calculation Across Multiple Timeframes:

The RSI is computed over four different timeframes: 60 minutes, 30 minutes, 15 minutes, and 1 minute using the ta.rsi function with a default length of 14.
This multi-timeframe approach helps capture market volatility across various periods, providing a more accurate view of strength or weakness in the market.
Buy and Sell Signals:

Buy Signal (Long): Triggered when the RSI values on the longer timeframes (60 and 30 minutes) are high (above 60) while the RSI on the 1-minute timeframe is low (below 40), along with a comparison between the 15-minute and 1-minute RSI values.
Sell Signal (Short): Triggered when the RSI values on the longer timeframes are low (below 40) and the 1-minute RSI is high (above 60).
Alerts and Candle Coloring:
These conditions are used to change the candle colors on the chart, display labels at specific points, and trigger alerts for immediate notification.

3. Exponential Moving Averages (EMA) Module
EMA Calculation:

Four exponential moving averages are calculated with different periods (9, 20, 50, and 200) using the ta.ema function.
These EMAs help in identifying the overall market trend, and the crossover between them (especially between EMA0 and EMA1) provides additional signals for entry and exit points.
EMA Crossover Alerts:
When a bullish or bearish crossover occurs between EMA0 and EMA1—confirmed by the closing price relative to EMA2—the indicator displays labels on the chart and triggers alerts to help traders capture precise trading signals.

4. Dashboard Module
Comprehensive Market Information:

The dashboard displays key market metrics such as volatility, trading volume, RSI values, Money Flow Index (MFI), and momentum.
Additional metrics include buying and selling pressure calculated based on volume and price levels.
Trend Display Across Multiple Timeframes:

The state of the market (uptrend or downtrend) is determined using simple indicators across various timeframes (from 1 minute to monthly) and is represented by icons (🟢 for up and 🔴 for down).
It also shows the “Squeeze” indicator, which reflects periods of price compression—often a precursor to a breakout.

5. Alerts and Signals
Visual and Audio Alerts:
The indicator issues alerts when specific conditions are met, such as entry signals (LONG/SHORT) or significant changes in the RSI direction.
Labels are added to the chart to mark buy/sell points or alert signals based on the trend changes.
6. General Use and Benefits
Integrated Tools:
The indicator combines multiple technical tools (RSI, EMA, ATR/SuperTrend) to offer an integrated view, assisting traders in making well-informed decisions based on various data points.

Suitable for Different Trading Styles:
Due to its multi-timeframe analysis and adaptive settings, it can be used effectively for intraday trading, speculative trading, as well as scalping.

Easy Market Monitoring:
The dashboard provides a quick snapshot of crucial market information, helping traders monitor market conditions across multiple timeframes efficiently.


Conclusion:
The FLAME | RSI indicator delivers a comprehensive technical analysis by combining RSI, EMA, and ATR (SuperTrend) calculations along with a dashboard that displays essential market data. This integration of multiple timeframes and indicators offers traders accurate and actionable trading signals, supporting more informed decision-making.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
1. إعدادات ATR واحتساب SuperTrend
إعدادات ATR:
يُتيح المؤشر للمستخدم اختيار إعدادات ATR من خلال قائمة منسدلة تضم ثلاث إعدادات (Set 1، Set 2، Set 3) ترتبط بأنماط التداول المختلفة (مضاربي – لحظي – لحظي جداً).
بناءً على الاختيار، يتم تعديل فترة الـ ATR (Periods) والـ Multiplier، مما يؤثر على حساسية خطوط الاتجاه.

احتساب خطوط الاتجاه (SuperTrend):

يتم حساب الـ ATR باستخدام دالة ta.atr مع التعديل وفقاً لقيم الضرب (Multiplier) والفترة.
تُحسب خطي الاتجاه العلوي (up) والسفلي (dn) بناءً على المصدر (hl2)، ويتم تحديثهما بناءً على سعر الإغلاق السابق لضبط نقاط التحول في الاتجاه.
يتغير متغير trend بين 1 (اتجاه صاعد) و-1 (اتجاه هابط) عند حدوث انعكاسات، مما يُستخدم لاحقاً لإصدار إشارات البيع والشراء ورسم الخطوط على الرسم البياني.

2. وحدة مؤشر القوة النسبية (RSI)
احتساب RSI عبر أطر زمنية متعددة:

يُحسب مؤشر القوة النسبية على أربع إطارات زمنية مختلفة: 60 دقيقة، 30 دقيقة، 15 دقيقة ودقيقة واحدة باستخدام دالة ta.rsi مع طول (14) كافتراضي.
هذه الطريقة المتعددة تساعد في التقاط تقلبات السوق على مدى زمني متنوع، مما يتيح للمستخدم رؤية أكثر دقة لاتجاهات القوة أو الضعف في السوق.
إشارات الشراء والبيع:

إشارة الشراء (Long): تظهر عندما تكون قيم RSI في الإطارات الزمنية الأعلى (60 و30 دقيقة) مرتفعة (أكبر من 60) بينما يكون RSI على الإطار الزمني الأدنى (1 دقيقة) منخفضاً (أقل من 40) مع مقارنة قيمة RSI بين 15 دقيقة و1 دقيقة.
إشارة البيع (Short): تظهر عندما تكون قيم RSI في الإطارات الزمنية الأعلى منخفضة (أقل من 40) بينما يكون RSI على الإطار الزمني الأدنى مرتفعاً (أكثر من 60).
تنبيهات وتغيير ألوان الشموع:
تُستخدم هذه الإشارات لتغيير ألوان الشموع على الرسم البياني وإظهار تسميات (Labels) عند تحقق شروط محددة، بالإضافة إلى إرسال تنبيهات فورية للمستخدم.

3. وحدة المتوسط المتحرك الأسي (EMA)
احتساب المتوسطات المتحركة:

يتم حساب أربعة متوسطات متحركة أسية بفترات مختلفة (9، 20، 50، 200) باستخدام دالة ta.ema.
تُستخدم هذه المتوسطات لتحديد اتجاهات السوق العامة، كما يُظهر التقاطع بين المتوسطات (خاصة EMA0 وEMA1) إشارات إضافية لتحديد نقاط الدخول والخروج.
تنبيهات تقاطعات EMA:
في حال حدوث تقاطع (صعودي أو هبوطي) بين EMA0 وEMA1 مع تأكيد من مقارنة الإغلاق مع EMA2، يُظهر المؤشر تسميات على الرسم البياني ويصدر تنبيهات، مما يُساعد المتداولين على التقاط إشارات التداول الدقيقة.

4. لوحة المعلومات (Dashboard)
العرض الشامل لمعطيات السوق:

تُظهر لوحة المعلومات معطيات مثل التقلب (Volatility)، حجم التداول، قيم RSI، مؤشر تدفق الأموال (MFI)، والزخم (Momentum).
تُحسب مؤشرات إضافية مثل ضغط الشراء والبيع بناءً على الحجم والأسعار.
عرض حالة الاتجاه عبر أطر زمنية مختلفة:

تُحدد حالة السوق (صعود/هبوط) عبر عدة أطر زمنية (من الدقيقة إلى الشهر) باستخدام مؤشرات بسيطة (مثل رمز 🟢 للاتجاه الصاعد و🔴 للاتجاه الهابط).
كما تُظهر قيمة مؤشر الـ “Squeeze” الذي يعكس حالة تضييق السعر، مما يساعد في التعرف على مناطق التجميع قبل حدوث انفجار سعري.

5. التنبيهات والإشارات
التنبيهات المرئية والصوتية:
يُصدر المؤشر تنبيهات عند تحقق شروط معينة، سواء كانت إشارات دخول (LONG/SHORT) أو تغيرات في اتجاه RSI.
تُضاف تسميات على الرسم البياني لتحديد نقاط الشراء والبيع أو التنبيهات الخاصة بتغير الاتجاه.
6. الاستخدام العام والفوائد
تكامل الأدوات:
يجمع المؤشر بين عدة مؤشرات تقنية (RSI، EMA، ATR/SuperTrend) مما يُوفر رؤية متكاملة تساعد المتداولين في اتخاذ قرارات مبنية على معطيات متعددة.

مناسب لأنماط التداول المختلفة:
يمكن استخدام هذا المؤشر في التداول اللحظي، التداول المضاربي، وحتى السكالبينج بفضل تنوع الإطارات الزمنية وتحليلها معاً.

سهولة المتابعة:
توفر لوحة المعلومات (Dashboard) عرضاً سريعاً لأهم معطيات السوق مما يُسهل على المتداولين مراقبة حالة السوق عبر أطر زمنية متعددة.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.