OPEN-SOURCE SCRIPT

AlphaPulse AI v4

457
AlphaPulse AI v4

Overview:
AlphaPulse AI v4 is an advanced technical analysis indicator that combines RSI, MFI, Volume Flow Analysis, and Market Structure to provide comprehensive insights into market momentum, liquidity, and potential trading opportunities.

⚠️ Important Note on RSI Support/Resistance & Trendlines:
The Support/Resistance levels and Trendlines on RSI are optional features (disabled by default) added for traders who use these techniques in their analysis.

Different trading schools have varying approaches to RSI-based S/R and trendlines:

Some traders draw support/resistance directly on RSI oscillator

Others use trendlines on RSI to identify momentum shifts

These are not universally accepted but can be valuable tools for those who incorporate them into their strategy

These features are included for your benefit - enable them if they align with your trading methodology, or leave them disabled if you prefer traditional RSI analysis.

📊 Main Components:
1. RSI Panel (Lower Pane)
Standard RSI (Purple Line):

Measures momentum strength between 0-100

Default Period: 14

Key Levels:

50: Neutral zone

60: Strong bullish momentum

40: Weak/bearish territory

80: Overbought (overheated)

20: Oversold (extreme outflow)

MFI - Money Flow Index (Blue Line):

Volume-weighted RSI that measures buying/selling pressure

Default Period: 14

Uses same threshold levels as RSI

Combines price momentum with volume flow

Daily RSI (White Line - Optional):

Daily timeframe RSI visible on all chart timeframes

Provides longer-term momentum context

Default: OFF

Display Styles: Line / Circles / Dots

Customizable color

RSI-2 (Yellow Line - Optional):

Short-term RSI for faster signals

Default: OFF

Default Period: 9

Multi-Timeframe Support:

Chart timeframe (default)

Custom: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30, 60 minutes

Display Styles: Line / Circles / Dots

2. Support & Resistance on RSI (Optional - OFF by default)
Purpose: Identify key reversal zones directly on RSI oscillator

Features:

Red Dashed Lines: Resistance levels on RSI

Green Dashed Lines: Support levels on RSI

Timeframe Options:

Chart TF: Based on current chart RSI

Daily: Based on Daily RSI

Period Range: 1 to 30 days (adjustable lookback)

Lookback Bars: Customizable (default 20)

Usage:
When RSI approaches previous highs/lows, these levels can act as psychological resistance/support zones for momentum shifts.

3. RSI Trendlines (Optional - OFF by default)
Ascending Trendline (Green):

Drawn on Daily RSI

Connects higher lows in RSI

Indicates sustained bullish momentum

Descending Trendline (Red):

Drawn on Daily RSI

Connects lower highs in RSI

Indicates sustained bearish momentum

Auto-Detection:
Uses pivot point detection to automatically draw trendlines on Daily RSI based on swing highs and lows.

Note: Trendlines extend to the right to project future momentum direction.

4. Divergence Detection
Bullish Divergence (Label: "Bull Div"):

Price makes a lower low

RSI makes a higher low

Suggests potential bullish reversal

Bearish Divergence (Label: "Bear Div"):

Price makes a higher high

RSI makes a lower high

Suggests potential bearish reversal

Default: ON
Detection Period: 14 bars

🎛️ Dashboard
Location: Bottom Right (customizable to 4 positions)

Default Active Elements:

VWAP (Volume Weighted Average Price):

Shows if price is Above/Below VWAP

Displays percentage distance

Green: Above (bullish position)

Red: Below (bearish position)

U/D Ratio (Up/Down Volume Ratio):

Ratio of buying volume to selling volume

Green: ≥ 1.5 (strong buying pressure)

Red: ≤ 0.8 (strong selling pressure)

Gray: Neutral zone

ATR (Average True Range):

Market volatility measure

Displayed as percentage of price

Helps determine stop-loss distances

RSI/MFI Agreement:

"Agreement Up" (Green): Both RSI and MFI bullish

"Agreement Down" (Red): Both RSI and MFI bearish

"Divergence" (Orange): RSI and MFI conflicting signals

Optional Dashboard Elements (Enable in settings):

Flow Score

RSI Structure

Daily RSI value

RSI-2 value

MFI value

Twiggs Flow

Signal Quality

Market Phase Analysis (Accumulation/Expansion/Distribution/Exhaustion)

📊 Volume Bar
Default Position: Top Center (6 position options)

Displays:

Volume Ratio: Current volume vs 20-period average

Inflow (Green): Buying volume (smoothed)

Outflow (Red): Selling volume (smoothed)

Delta (Green/Red): Difference between inflow and outflow

Size Options: Small / Normal / Large

Usage:
Confirms momentum signals by showing actual money flow direction. High inflow with bullish RSI = strong confirmation.

⚙️ How to Use the Indicator:
For Trend Following:
Enable Daily RSI to see long-term momentum

Enable Daily RSI Trendlines to identify trend direction

Use RSI/MFI Agreement in Dashboard for confirmation

Check Volume Bar for liquidity support

For Reversal Trading:
Enable Divergence Detection (ON by default)

Enable RSI S/R to identify reversal zones

Watch for price reaction at S/R levels combined with divergence

Confirm with U/D Ratio shift in Dashboard

For Short-Term Scalping:
Enable RSI-2 on lower timeframes (1-5 minutes)

Use Volume Bar to confirm quick momentum shifts

Watch for rapid RSI-2 moves with volume confirmation

For Multi-Timeframe Analysis:
Keep Daily RSI enabled on lower timeframes

Use RSI-2 with custom higher timeframe

Look for alignment: Daily RSI trend + Short-term RSI-2 signal

Confirm with Volume Bar and Dashboard metrics

🔔 Alerts (Optional):
Bullish Expansion Pressure

Bullish/Bearish Divergence Detected

Strong Bullish/Bearish Flow

✅ Best Practices:
Start with defaults - Enable optional features as you learn the indicator

RSI S/R and Trendlines - Only use if you understand RSI-based technical analysis

Volume confirmation - Always check Volume Bar for liquidity support

Dashboard context - Use VWAP and U/D Ratio for market structure confirmation

Multi-timeframe - Combine Daily RSI with shorter-term signals for higher probability setups

⚠️ Disclaimer:
This indicator is a tool for analysis, not a trading system. Always combine with proper risk management and your own analysis.


نظرة عامة:
AlphaPulse AI v4 هو مؤشر تحليل فني متقدم يجمع بين RSI، MFI، تحليل تدفق السيولة، وهيكل السوق لتوفير رؤية شاملة عن زخم السوق، السيولة، والفرص التداولية المحتملة.

⚠️ ملاحظة مهمة حول الدعم/المقاومة وخطوط الترند على RSI:
مستويات الدعم والمقاومة و خطوط الترند على RSI هي ميزات اختيارية (مغلقة افتراضيًا) تم إضافتها للمتداولين الذين يستخدمون هذه التقنيات في تحليلهم.

المدارس المختلفة في التحليل الفني لها مناهج متباينة تجاه الدعم/المقاومة وخطوط الترند على RSI:

بعض المتداولين يرسمون الدعم والمقاومة مباشرة على مؤشر RSI

آخرون يستخدمون خطوط الترند على RSI لتحديد تحولات الزخم

هذه التقنيات ليست مقبولة عالميًا لكنها يمكن أن تكون أدوات قيمة لمن يدمجها في استراتيجيته

تم تضمين هذه الميزات لفائدتك - فعّلها إذا كانت تتماشى مع منهجية التداول الخاصة بك، أو اتركها مغلقة إذا كنت تفضل التحليل التقليدي للـ RSI.

📊 المكونات الرئيسية:
1. بانيل RSI (الجزء السفلي)
RSI القياسي (الخط البنفسجي):

يقيس قوة الزخم بين 0-100

الفترة الافتراضية: 14

المستويات الرئيسية:

50: منطقة محايدة

60: زخم صاعد قوي

40: منطقة ضعيفة/هابطة

80: تشبع شرائي (Overbought)

20: تشبع بيعي (Oversold)

MFI - مؤشر تدفق الأموال (الخط الأزرق):

RSI مرجح بالحجم يقيس ضغط الشراء/البيع

الفترة الافتراضية: 14

يستخدم نفس مستويات RSI

يجمع بين زخم السعر وتدفق الحجم

Daily RSI (الخط الأبيض - اختياري):

RSI يومي مرئي على جميع الأطر الزمنية

يوفر سياق زخم طويل المدى

افتراضيًا: مغلق

أنماط العرض: خط / دوائر / نقاط

لون قابل للتخصيص

RSI-2 (الخط الأصفر - اختياري):

RSI قصير المدى لإشارات أسرع

افتراضيًا: مغلق

الفترة الافتراضية: 9

دعم الأطر الزمنية المتعددة:

إطار الشارت (افتراضي)

مخصص: 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 15، 30، 60 دقيقة

أنماط العرض: خط / دوائر / نقاط

2. الدعم والمقاومة على RSI (اختياري - مغلق افتراضيًا)
الغرض: تحديد مناطق الانعكاس الرئيسية مباشرة على مؤشر RSI

الميزات:

خطوط حمراء منقطة: مستويات مقاومة على RSI

خطوط خضراء منقطة: مستويات دعم على RSI

خيارات الإطار الزمني:

إطار الشارت: بناءً على RSI الحالي

يومي: بناءً على RSI اليومي

نطاق المدة: من 1 إلى 30 يوم (lookback قابل للتعديل)

عدد الأعمدة: قابل للتخصيص (افتراضي 20)

الاستخدام:
عندما يقترب RSI من القمم/القيعان السابقة، يمكن أن تعمل هذه المستويات كمناطق مقاومة/دعم نفسية لتحولات الزخم.

3. خطوط الترند على RSI (اختياري - مغلق افتراضيًا)
خط الترند الصاعد (أخضر):

يُرسم على RSI اليومي

يربط القيعان الأعلى في RSI

يشير إلى زخم صاعد مستدام

خط الترند الهابط (أحمر):

يُرسم على RSI اليومي

يربط القمم الأدنى في RSI

يشير إلى زخم هابط مستدام

الكشف التلقائي:
يستخدم كشف نقاط المحور لرسم خطوط الترند تلقائيًا على RSI اليومي بناءً على القمم والقيعان المتأرجحة.

ملاحظة: تمتد خطوط الترند إلى اليمين لتوقع اتجاه الزخم المستقبلي.

4. كشف الاختلاف (Divergence)
الاختلاف الصاعد (تسمية: "Bull Div"):

السعر يسجل قاع أدنى

RSI يسجل قاع أعلى

يشير إلى انعكاس صاعد محتمل

الاختلاف الهابط (تسمية: "Bear Div"):

السعر يسجل قمة أعلى

RSI يسجل قمة أدنى

يشير إلى انعكاس هابط محتمل

افتراضيًا: مفعّل
فترة الكشف: 14 عمود

🎛️ الداشبورد
الموقع: أسفل اليمين (قابل للتخصيص إلى 4 مواقع)

العناصر المفعلة افتراضيًا:

VWAP (متوسط السعر المرجح بالحجم):

يعرض ما إذا كان السعر أعلى/أسفل VWAP

يعرض نسبة المسافة المئوية

أخضر: أعلى (موقف صاعد)

أحمر: أسفل (موقف هابط)

U/D Ratio (نسبة الحجم الصاعد/الهابط):

نسبة حجم الشراء إلى حجم البيع

أخضر: ≥ 1.5 (ضغط شراء قوي)

أحمر: ≤ 0.8 (ضغط بيع قوي)

رمادي: منطقة محايدة

ATR (متوسط المدى الحقيقي):

مقياس تقلب السوق

يُعرض كنسبة مئوية من السعر

يساعد في تحديد مسافات وقف الخسارة

RSI/MFI Agreement:

"Agreement Up" (أخضر): كلا RSI و MFI صاعدان

"Agreement Down" (أحمر): كلا RSI و MFI هابطان

"Divergence" (برتقالي): إشارات متضاربة بين RSI و MFI

عناصر الداشبورد الاختيارية (تفعل من الإعدادات):

Flow Score

RSI Structure

قيمة Daily RSI

قيمة RSI-2

قيمة MFI

Twiggs Flow

Signal Quality

تحليل مرحلة السوق (Accumulation/Expansion/Distribution/Exhaustion)

📊 شريط الحجم (Volume Bar)
الموقع الافتراضي: أعلى الوسط (6 خيارات للموقع)

يعرض:

Volume Ratio: الحجم الحالي مقابل متوسط 20 فترة

Inflow (أخضر): حجم الشراء (معدّل)

Outflow (أحمر): حجم البيع (معدّل)

Delta (أخضر/أحمر): الفرق بين التدفق الداخل والخارج

خيارات الحجم: صغير / عادي / كبير

الاستخدام:
يؤكد إشارات الزخم من خلال إظهار اتجاه تدفق الأموال الفعلي. تدفق داخل عالٍ مع RSI صاعد = تأكيد قوي.

⚙️ كيفية استخدام المؤشر:
لمتابعة الاتجاه:
فعّل Daily RSI لرؤية الزخم طويل المدى

فعّل خطوط الترند على Daily RSI لتحديد اتجاه الترند

استخدم RSI/MFI Agreement في الداشبورد للتأكيد

تحقق من شريط الحجم لدعم السيولة

للتداول الانعكاسي:
فعّل Divergence Detection (مفعّل افتراضيًا)

فعّل RSI S/R لتحديد مناطق الانعكاس

راقب رد فعل السعر عند مستويات S/R مع الاختلاف

أكّد مع تحول U/D Ratio في الداشبورد

للسكالبينج قصير المدى:
فعّل RSI-2 على الأطر الزمنية المنخفضة (1-5 دقائق)

استخدم شريط الحجم لتأكيد تحولات الزخم السريعة

راقب تحركات RSI-2 السريعة مع تأكيد الحجم

للتحليل متعدد الأطر الزمنية:
أبقِ Daily RSI مفعّلاً على الأطر الزمنية المنخفضة

استخدم RSI-2 مع إطار زمني أعلى مخصص

ابحث عن التوافق: اتجاه Daily RSI + إشارة RSI-2 قصيرة المدى

أكّد مع شريط الحجم و مقاييس الداشبورد

🔔 التنبيهات (اختيارية):
ضغط التوسع الصاعد

كشف الاختلاف الصاعد/الهابط

تدفق صاعد/هابط قوي

✅ أفضل الممارسات:
ابدأ بالإعدادات الافتراضية - فعّل الميزات الاختيارية كلما تعلمت المؤشر

RSI S/R وخطوط الترند - استخدمها فقط إذا كنت تفهم التحليل الفني المبني على RSI

تأكيد الحجم - دائمًا تحقق من شريط الحجم لدعم السيولة

سياق الداشبورد - استخدم VWAP و U/D Ratio لتأكيد هيكل السوق

متعدد الأطر الزمنية - اجمع بين Daily RSI والإشارات قصيرة المدى لإعدادات ذات احتمالية أعلى

⚠️ إخلاء مسؤولية:
هذا المؤشر هو أداة للتحليل، وليس نظام تداول. دائمًا اجمعه مع إدارة المخاطر المناسبة وتحليلك الخاص.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.