P
PipsGrowth

النقاط الرئيسية

الصعوبة:Intermediate
الموثوقية:Moderate
الفئة:advanced
الأطر الزمنية:1H, 4H, Daily

Williams Fractals

advanced📊 1H, 4H, Daily

Five-bar pattern identifying local highs and lows as potential reversals.

المعادلة

Code
Up Fractal: Bar has highest high with 2 lower highs on each side
Down Fractal: Bar has lowest low with 2 higher lows on each side

شرح تفصيلي

Williams Fractals identify turning points in price using a 5-bar pattern.

**Pattern:** - Up Fractal: Middle bar has highest high, with two lower highs on each side - Down Fractal: Middle bar has lowest low, with two higher lows on each side

📈 إشارات صعودية

Price breaks above up fractal with Alligator confirmation

📉 إشارات هبوطية

Price breaks below down fractal with Alligator confirmation

تطبيق بايثون

Basic fractal detection

Python
def fractals(df):
df['fractal_up'] = (df['high'] > df['high'].shift(1)) & (df['high'] > df['high'].shift(2)) & (df['high'] > df['high'].shift(-1)) & (df['high'] > df['high'].shift(-2))
df['fractal_down'] = (df['low'] < df['low'].shift(1)) & (df['low'] < df['low'].shift(2)) & (df['low'] < df['low'].shift(-1)) & (df['low'] < df['low'].shift(-2))
return df

كود TradingView

JavaScript
//@version=5
indicator("Fractals", overlay=true)
up = ta.pivothigh(high, 2, 2)
down = ta.pivotlow(low, 2, 2)
plotshape(up, style=shape.triangleup, location=location.abovebar, color=color.green)
plotshape(down, style=shape.triangledown, location=location.belowbar, color=color.red)
📊 استخدم TradingView للرسوم البيانية المتقدمة
أدوات تحليل احترافية مع أكثر من 100 مؤشر فني
احصل على TradingView Pro

كود MT5

C++
int fractal_handle = iFractals(_Symbol, _Period);
double up_fractal[], down_fractal[];
CopyBuffer(fractal_handle, 0, 0, 100, up_fractal);
CopyBuffer(fractal_handle, 1, 0, 100, down_fractal);

أخطاء شائعة

Trading fractals in isolation
Not waiting for confirmation bars

إشارات التأكيد

Alligator indicator
Price breaks fractal level
Volume

الأفضل لـ

Swing point identificationStop placementBill Williams strategies

💡 نصائح احترافية

  • Part of Bill Williams system
  • Fractals appear after 2 bars of confirmation
  • Best combined with Alligator indicator
آخر تحديث: ٢٩ ديسمبر ٢٠٢٤

إخلاء مسؤولية تعليمي

هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.

الأسئلة الشائعة