OPEN-SOURCE SCRIPT
BUY/SELL ✅ Fibonacci FULL TP 1-2-3-4 SL ATR

USE SL ATR
الفكرة العامة
تحديد الاتجاه (Bias):
يعتمد على المتوسط المتحرك 20 (SMA).
يقارن موقع الإغلاق داخل نطاق الشمعة.
يستخدم مؤشر انحراف (Linear Regression) كعامل إضافي.
إذا تحققت الشروط = إشارة شراء قوية (Bullish) أو بيع قوية (Bearish).
مستويات الدخول (ENTRY):
يتم حسابها من مناطق الـ OB (أعلى/أدنى سعر خلال عدد معين من الشموع).
يتم ضبطها باستخدام نسبة فيبوناتشي (افتراضياً 0.382).
وقف الخسارة (SL):
إما باستخدام OB (ذيل الشمعة السابقة). غير مستخسن
أو باستخدام مسافة ثابتة/ATR (حسب الإعدادات). مستخسن
أهداف الأرباح (TP1–TP4):
محسوبة كنِسب مضاعفة من قيمة المخاطرة (Risk).
مستويات TP مضبوطة بقيم فيبوناتشي (افتراضياً 1.15 – 1.85 – 2.618 – 3.618).
الرسم على الشارت:
يرسم خطوط أفقية لكل من: ENTRY – SL – TP1–TP4.
يضيف Labels ملونة (BUY باللون الأخضر، SELL بالبرتقالي).
الجدول (Table):
يظهر في الزاوية العلوية اليمنى.
يحتوي على تفاصيل الصفقة (النوع، ENTRY، SL، TP1–TP4).
التنبيهات (Alerts):
يصدر تنبيه عند ظهور إشارة شراء قوية أو بيع قوية.
General Idea
Bias Detection:
Based on the 20-period Simple Moving Average (SMA).
Compares the closing price position within the candle range.
Uses Linear Regression as an additional factor.
If conditions are met = strong Buy (Bullish) or strong Sell (Bearish) signal.
Entry Levels (ENTRY):
Calculated from OB zones (highest/lowest price within a certain number of candles).
Adjusted using Fibonacci ratio (default 0.382).
Stop Loss (SL):
Either using OB (previous candle’s wick) – not recommended.
Or using fixed distance/ATR (based on settings) – recommended.
Take Profit Targets (TP1–TP4):
Calculated as multiples of the risk value.
TP levels aligned with Fibonacci ratios (default 1.15 – 1.85 – 2.618 – 3.618).
Chart Drawing:
Draws horizontal lines for ENTRY – SL – TP1–TP4.
Adds colored labels (BUY in green, SELL in orange).
Table:
Displayed in the top-right corner.
Contains trade details (type, ENTRY, SL, TP1–TP4).
Alerts:
Sends an alert when a strong Buy or strong Sell signal appears.
Summary
This indicator:
Detects market bias (BUY/SELL).
Automatically calculates entry, stop loss, and targets.
Displays them on the chart with clear lines and colors.
Organizes the values inside a structured table.
Sends an alert with every new entry signal.
الفكرة العامة
تحديد الاتجاه (Bias):
يعتمد على المتوسط المتحرك 20 (SMA).
يقارن موقع الإغلاق داخل نطاق الشمعة.
يستخدم مؤشر انحراف (Linear Regression) كعامل إضافي.
إذا تحققت الشروط = إشارة شراء قوية (Bullish) أو بيع قوية (Bearish).
مستويات الدخول (ENTRY):
يتم حسابها من مناطق الـ OB (أعلى/أدنى سعر خلال عدد معين من الشموع).
يتم ضبطها باستخدام نسبة فيبوناتشي (افتراضياً 0.382).
وقف الخسارة (SL):
إما باستخدام OB (ذيل الشمعة السابقة). غير مستخسن
أو باستخدام مسافة ثابتة/ATR (حسب الإعدادات). مستخسن
أهداف الأرباح (TP1–TP4):
محسوبة كنِسب مضاعفة من قيمة المخاطرة (Risk).
مستويات TP مضبوطة بقيم فيبوناتشي (افتراضياً 1.15 – 1.85 – 2.618 – 3.618).
الرسم على الشارت:
يرسم خطوط أفقية لكل من: ENTRY – SL – TP1–TP4.
يضيف Labels ملونة (BUY باللون الأخضر، SELL بالبرتقالي).
الجدول (Table):
يظهر في الزاوية العلوية اليمنى.
يحتوي على تفاصيل الصفقة (النوع، ENTRY، SL، TP1–TP4).
التنبيهات (Alerts):
يصدر تنبيه عند ظهور إشارة شراء قوية أو بيع قوية.
General Idea
Bias Detection:
Based on the 20-period Simple Moving Average (SMA).
Compares the closing price position within the candle range.
Uses Linear Regression as an additional factor.
If conditions are met = strong Buy (Bullish) or strong Sell (Bearish) signal.
Entry Levels (ENTRY):
Calculated from OB zones (highest/lowest price within a certain number of candles).
Adjusted using Fibonacci ratio (default 0.382).
Stop Loss (SL):
Either using OB (previous candle’s wick) – not recommended.
Or using fixed distance/ATR (based on settings) – recommended.
Take Profit Targets (TP1–TP4):
Calculated as multiples of the risk value.
TP levels aligned with Fibonacci ratios (default 1.15 – 1.85 – 2.618 – 3.618).
Chart Drawing:
Draws horizontal lines for ENTRY – SL – TP1–TP4.
Adds colored labels (BUY in green, SELL in orange).
Table:
Displayed in the top-right corner.
Contains trade details (type, ENTRY, SL, TP1–TP4).
Alerts:
Sends an alert when a strong Buy or strong Sell signal appears.
Summary
This indicator:
Detects market bias (BUY/SELL).
Automatically calculates entry, stop loss, and targets.
Displays them on the chart with clear lines and colors.
Organizes the values inside a structured table.
Sends an alert with every new entry signal.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.