النتائج 1 إلى 15 من 15
  1. #1
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي سؤال برمجي للمبرمجين

    السلام عليكم اخوتي الكرام
    انا لدي مؤشر عملته من قبل ايام يعتمد على تقاطع vi - و +vi وتطلع الاشارات بعد التقاطع لكن اريد ان اضيف شرط ان يطلع فقط على الشمعات الاندفاعية سواء بيعية او شرائية هل من ممكن تعديله لي؟
    الملفات المرفقة الملفات المرفقة
    • نوع الملف: txt ax.txt‏ (5.2 كيلوبايت, المشاهدات 1)

  2. #2
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    //@version=5
    indicator("AX globals with Impulse Candles", overlay=true)

    // Input settings
    actionBoxLength = input.int(3, title="Action Box Length (Bars)")
    buyBoxColor = input.color(color.new(color.green, 30), title="Buy Signal Box Color")
    sellBoxColor = input.color(color.new(color.red, 30), title="Sell Signal Box Color")
    showActionBoxes = input.bool(true, title="Show Action Signal Boxes")
    wickRatio = input.float(1.0, title="Wick Ratio (e.g., 3 for 300%)")
    bodyToRangeRatio = input.float(0.5, title="Candle Body-to-Range Ratio")

    // Candle Properties
    candleBody = math.abs(close - open)
    candleRange = high - low
    upperWick = high - math.max(open, close)
    lowerWick = math.min(open, close) - low

    // Impulse Candle Conditions
    isBullishImpulse = (close > open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))
    isBearishImpulse = (close < open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))

    // Vortex Indicator
    length = input.int(14, title="Vortex Length")
    vi_pos = ta.cum(math.abs(high - low[1])) - ta.cum(math.abs(high - low[1])[length])
    vi_neg = ta.cum(math.abs(low - high[1])) - ta.cum(math.abs(low - high[1])[length])
    tr = ta.cum(ta.atr(1)) - ta.cum(ta.atr(1)[length])
    vi_pos_indicator = vi_pos / tr
    vi_neg_indicator = vi_neg / tr

    // Crossover Signals
    crossoverSignal = ta.crossover(vi_pos_indicator, vi_neg_indicator)
    crossunderSignal = ta.crossunder(vi_pos_indicator, vi_neg_indicator)

    // SMA Buy/Sell Signal Settings
    smaLength = input.int(50, title="SMA Length")
    smaSource = input.source(close, title="SMA Source")
    smaLine = ta.sma(smaSource, smaLength)

    buySMA = ta.crossover(close, smaLine)
    sellSMA = ta.crossunder(close, smaLine)

    // Impulse Candle + SMA-Vortex Confirmation
    buySignal = crossoverSignal and isBullishImpulse
    sellSignal = crossunderSignal and isBearishImpulse

    // Plot Buy/Sell Signals
    plotshape(series=buySignal, title="Buy Signal", color=color.green, style=shape.labelup, location=location.belowbar, text="BUY")
    plotshape(series=sellSignal, title="Sell Signal", color=color.red, style=shape.labeldown, location=location.abovebar, text="SELL")

    // Alerts
    alertcondition(buySignal, title="Buy Alert", message="Buy signal detected on Impulse Candle with SMA-Vortex confirmation.")
    alertcondition(sellSignal, title="Sell Alert", message="Sell signal detected on Impulse Candle with SMA-Vortex confirmation.")
    الصور المصغرة للصور المرفقة الصور المصغرة للصور المرفقة Screenshot 2025-01-23 164656.jpg‏  

  3. #3
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    شكرا لك اخي العزيز لكن انا عندي مؤشر الاصلي vortex علاماته ليست مثل هذه اشارت البيع او الشراء هذا صورة توضحاضغط على الصورة لعرض أكبر

الاســـم:	yy.PNG
المشاهدات:	7
الحجـــم:	106.2 كيلوبايت
الرقم:	564574

  4. #4
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    هل يوجد احد يحل لي مشكلة؟

  5. #5
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    طلبك كان اضافه و تم اضافة impulsive candle

  6. #6
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    اخي هو يعتمد على pushing candels مع شمعات الاستمرارية على تقاطعات moving و vi- vi+

    هذا السكربت الذي انا عدلت عليه ارجو ان ترد علي واسف اذا ازعجتك

    //@version=5
    indicator("AX globals with Impulse Candles", overlay=true)

    // Input settings
    actionBoxLength = input.int(3, title="Action Box Length (Bars)")
    buyBoxColor = input.color(color.new(color.green, 30), title="Buy Signal Box Color")
    sellBoxColor = input.color(color.new(color.red, 30), title="Sell Signal Box Color")
    showActionBoxes = input.bool(true, title="Show Action Signal Boxes")
    wickRatio = input.float(1.0, title="Wick Ratio (e.g., 3 for 300%)")
    bodyToRangeRatio = input.float(0.5, title="Candle Body-to-Range Ratio")

    // Candle Properties
    candleBody = math.abs(close - open)
    candleRange = high - low
    upperWick = high - math.max(open, close)
    lowerWick = math.min(open, close) - low

    // Impulse Candle Conditions
    isBullishImpulse = (close > open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))
    isBearishImpulse = (close < open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))

    // Vortex Indicator
    length = input.int(6, title="Vortex Length")
    vi_pos = ta.cum(math.abs(high - low[1])) - ta.cum(math.abs(high - low[1])[length])
    vi_neg = ta.cum(math.abs(low - high[1])) - ta.cum(math.abs(low - high[1])[length])
    tr = ta.cum(ta.atr(1)) - ta.cum(ta.atr(1)[length])
    vi_pos_indicator = vi_pos / tr
    vi_neg_indicator = vi_neg / tr

    // Crossover Signals
    vi_crossover = ta.crossover(vi_pos_indicator, vi_neg_indicator)
    vi_crossunder = ta.crossunder(vi_pos_indicator, vi_neg_indicator)

    // Moving Direction EMA Indicators
    emaLength1 = 8
    emaLength2 = 14
    emaSource = hlcc4
    movingDirection1 = ta.ema(emaSource, emaLength1)
    movingDirection2 = ta.ema(emaSource, emaLength2)

    // Moving Direction Cross Signals
    md_crossover = ta.crossover(movingDirection1, movingDirection2)
    md_crossunder = ta.crossunder(movingDirection1, movingDirection2)

    // Combined Buy/Sell Conditions
    buySignal = isBullishImpulse and (vi_crossover or md_crossover)
    sellSignal = isBearishImpulse and (vi_crossunder or md_crossunder)

    // Plot Buy/Sell Signals
    plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
    plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

    // Alerts
    alertcondition(buySignal, title="Buy Alert", message="Buy signal detected on Impulse Candle with Vortex & EMA confirmation.")
    alertcondition(sellSignal, title="Sell Alert", message="Sell signal detected on Impulse Candle with Vortex & EMA confirmation.")

    // Plot EMA Lines
    plot(movingDirection1, title="Moving Direction 1 (EMA 8, hlcc4)", color=color.orange, linewidth=1, style=plot.style_line)
    plot(movingDirection2, title="Moving Direction 2 (EMA 14, hlcc4)", color=color.purple, linewidth=1, style=plot.style_line)

  7. #7
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    ممكن الرد

  8. #8
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    السلام عليكم
    هل هذا المطلوب ؟؟
    //@version=5
    indicator("AX globals with Impulse Candles", overlay=true)

    // Input settings
    actionBoxLength = input.int(3, title="Action Box Length (Bars)")
    buyBoxColor = input.color(color.new(color.green, 30), title="Buy Signal Box Color")
    sellBoxColor = input.color(color.new(color.red, 30), title="Sell Signal Box Color")
    showActionBoxes = input.bool(true, title="Show Action Signal Boxes")
    wickRatio = input.float(1.0, title="Wick Ratio (e.g., 3 for 300%)")
    bodyToRangeRatio = input.float(0.5, title="Candle Body-to-Range Ratio")

    // Candle Properties
    candleBody = math.abs(close - open)
    candleRange = high - low
    upperWick = high - math.max(open, close)
    lowerWick = math.min(open, close) - low

    // Impulse Candle Conditions
    isBullishImpulse = (close > open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))
    isBearishImpulse = (close < open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))

    // Vortex Indicator
    length = input.int(6, title="Vortex Length")
    vi_pos = ta.cum(math.abs(high - low[1])) - ta.cum(math.abs(high - low[1])[length])
    vi_neg = ta.cum(math.abs(low - high[1])) - ta.cum(math.abs(low - high[1])[length])
    tr = ta.cum(ta.atr(1)) - ta.cum(ta.atr(1)[length])
    vi_pos_indicator = vi_pos / tr
    vi_neg_indicator = vi_neg / tr

    // Crossover Signals
    vi_crossover = ta.crossover(vi_pos_indicator, vi_neg_indicator)
    vi_crossunder = ta.crossunder(vi_pos_indicator, vi_neg_indicator)

    // Moving Direction EMA Indicators
    emaLength1 = 8
    emaLength2 = 14
    emaSource = hlcc4
    movingDirection1 = ta.ema(emaSource, emaLength1)
    movingDirection2 = ta.ema(emaSource, emaLength2)

    // Moving Direction Cross Signals
    md_crossover = ta.crossover(movingDirection1, movingDirection2)
    md_crossunder = ta.crossunder(movingDirection1, movingDirection2)

    // Combined Buy/Sell Conditions
    buySignal = isBullishImpulse and (vi_crossover or md_crossover)
    sellSignal = isBearishImpulse and (vi_crossunder or md_crossunder)

    // Plot Buy/Sell Signals
    plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
    plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

    // Alerts
    alertcondition(buySignal, title="Buy Alert", message="Buy signal detected on Impulse Candle with Vortex & EMA confirmation.")
    alertcondition(sellSignal, title="Sell Alert", message="Sell signal detected on Impulse Candle with Vortex & EMA confirmation.")

    // Plot EMA Lines
    plot(movingDirection1, title="Moving Direction 1 (EMA 8, hlcc4)", color=color.orange, linewidth=1, style=plot.style_line)
    plot(movingDirection2, title="Moving Direction 2 (EMA 14, hlcc4)", color=color.purple, linewidth=1, style=plot.style_line)

    // Highlight Impulse Candles
    bgcolor(isBullishImpulse ? color.new(color.green, 90) : na, title="Bullish Impulse Highlight")
    bgcolor(isBearishImpulse ? color.new(color.red, 90) : na, title="Bearish Impulse Highlight")
    الصور المصغرة للصور المرفقة الصور المصغرة للصور المرفقة Screenshot 2025-01-24 020618.png‏  

  9. #9
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    السلام عليكم
    هو الان ضبط 90% من المؤشر الاصلي لكن متأخر بشمعة او شمعتين لكن اكتشفت فقرة وهية في جارت اكو خيار mixed privious candels ومحدده(ا 2) هل هو له تأثير??
    اشكرك جدا على تعبك معي جدا جدا وهذه صورة توصح

    هذه الصورة بين مؤشر الاصلي والذي عملته انت
    اضغط على الصورة لعرض أكبر

الاســـم:	ax 11.PNG
المشاهدات:	1
الحجـــم:	189.1 كيلوبايت
الرقم:	564597


    وهذه اعدادات المؤشر الاصلي
    اضغط على الصورة لعرض أكبر

الاســـم:	vortex.PNG
المشاهدات:	0
الحجـــم:	17.2 كيلوبايت
الرقم:	564598

  10. #10
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    يا اخي انسى المؤشر الاصلي ,احكيلي عن مؤشري انا ,شو اللي ناقصه بالضبط
    عشان اضيفه

  11. #11
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    اهلا اخي ممكن تضيف هذه
    Minimum Pushing Candle in Previous"
    هذه الإضافة قد تكون مرتبطة بتحديد عدد معين من الشموع التي يجب أن تكون "دافعة" (pushing candle) في الاتجاه السابق لتأكيد قوة الاتجاه الحالي.

    تفصيل التفسير:
    Minimum (الحد الأدنى): يحدد عدد معين من الشموع التي يجب أن تحقق شروطًا معينة.
    Pushing Candle (الشمعة الدافعة): تشير عادةً إلى شمعة ذات زخم قوي (إما صعودي أو هبوطي) تتميز بجسم طويل مقارنة بالظلال.
    In Previous (في السابق): يعني أن الشموع التي يتم تقييمها هي من الفترات الزمنية السابقة (مثل X عدد من الشموع الماضية).

  12. #12
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    السلام عليكم
    //@version=5
    indicator("AX globals with Impulse Candles", overlay=true)

    // Input settings
    actionBoxLength = input.int(3, title="Action Box Length (Bars)")
    buyBoxColor = input.color(color.new(color.green, 30), title="Buy Signal Box Color")
    sellBoxColor = input.color(color.new(color.red, 30), title="Sell Signal Box Color")
    showActionBoxes = input.bool(true, title="Show Action Signal Boxes")
    wickRatio = input.float(1.0, title="Wick Ratio (e.g., 3 for 300%)")
    bodyToRangeRatio = input.float(0.5, title="Candle Body-to-Range Ratio")
    minPushingCandles = input.int(1, title="Minimum Pushing Candles in Previous") // Start with 1 for testing

    // Candle Properties
    candleBody = math.abs(close - open)
    candleRange = high - low
    upperWick = high - math.max(open, close)
    lowerWick = math.min(open, close) - low

    // Impulse Candle Conditions
    isBullishImpulse = (close > open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))
    isBearishImpulse = (close < open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))

    // Debugging: Highlight Pushing Candles
    bgcolor(isBullishImpulse ? color.new(color.green, 90) : na, title="Bullish Impulse Highlight")
    bgcolor(isBearishImpulse ? color.new(color.red, 90) : na, title="Bearish Impulse Highlight")

    // Count Minimum Pushing Candles in Previous Bars
    bullishPushingCount = 0
    bearishPushingCount = 0
    for i = 1 to minPushingCandles
    bullishPushingCount := bullishPushingCount + (isBullishImpulse[i] ? 1 : 0)
    bearishPushingCount := bearishPushingCount + (isBearishImpulse[i] ? 1 : 0)

    hasEnoughBullishPushing = bullishPushingCount >= minPushingCandles
    hasEnoughBearishPushing = bearishPushingCount >= minPushingCandles

    // Debugging: Plot Counts
    plot(bullishPushingCount, title="Bullish Pushing Count", color=color.green)
    plot(bearishPushingCount, title="Bearish Pushing Count", color=color.red)

    // Vortex Indicator
    length = input.int(6, title="Vortex Length")
    vi_pos = ta.cum(math.abs(high - low[1])) - ta.cum(math.abs(high - low[1])[length])
    vi_neg = ta.cum(math.abs(low - high[1])) - ta.cum(math.abs(low - high[1])[length])
    tr = ta.cum(ta.atr(1)) - ta.cum(ta.atr(1)[length])
    vi_pos_indicator = vi_pos / tr
    vi_neg_indicator = vi_neg / tr

    // Crossover Signals
    vi_crossover = ta.crossover(vi_pos_indicator, vi_neg_indicator)
    vi_crossunder = ta.crossunder(vi_pos_indicator, vi_neg_indicator)

    // Moving Direction EMA Indicators
    emaLength1 = 8
    emaLength2 = 14
    emaSource = hlcc4
    movingDirection1 = ta.ema(emaSource, emaLength1)
    movingDirection2 = ta.ema(emaSource, emaLength2)

    // Moving Direction Cross Signals
    md_crossover = ta.crossover(movingDirection1, movingDirection2)
    md_crossunder = ta.crossunder(movingDirection1, movingDirection2)

    // Combined Buy/Sell Conditions
    buySignal = hasEnoughBullishPushing and vi_crossover and md_crossover
    sellSignal = hasEnoughBearishPushing and vi_crossunder and md_crossunder

    // Debugging: Display Buy/Sell Conditions
    plotshape(series=hasEnoughBullishPushing ? 1 : na, title="Enough Bullish Pushing", location=location.bottom, color=color.green, style=shape.triangleup)
    plotshape(series=hasEnoughBearishPushing ? 1 : na, title="Enough Bearish Pushing", location=location.top, color=color.red, style=shape.triangledown)

    // Plot Buy/Sell Signals
    plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
    plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

    // Alerts
    alertcondition(buySignal, title="Buy Alert", message="Buy signal detected on Impulse Candle with Vortex & EMA confirmation.")
    alertcondition(sellSignal, title="Sell Alert", message="Sell signal detected on Impulse Candle with Vortex & EMA confirmation.")

    // Plot EMA Lines
    plot(movingDirection1, title="Moving Direction 1 (EMA 8, hlcc4)", color=color.orange, linewidth=1, style=plot.style_line)
    plot(movingDirection2, title="Moving Direction 2 (EMA 14, hlcc4)", color=color.purple, linewidth=1, style=plot.style_line)
    الصور المصغرة للصور المرفقة الصور المصغرة للصور المرفقة Screenshot 2025-01-27 185539.png‏  

  13. #13
    الصورة الرمزية Algo_Master
    Algo_Master غير متواجد حالياً مشرف المتداول العربي
    تاريخ التسجيل
    Dec 2011
    الإقامة
    مصر
    المشاركات
    1,634

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة mr_gentle30 مشاهدة المشاركة
    السلام عليكم
    //@version=5
    indicator("AX globals with Impulse Candles", overlay=true)

    // Input settings
    actionBoxLength = input.int(3, title="Action Box Length (Bars)")
    buyBoxColor = input.color(color.new(color.green, 30), title="Buy Signal Box Color")
    sellBoxColor = input.color(color.new(color.red, 30), title="Sell Signal Box Color")
    showActionBoxes = input.bool(true, title="Show Action Signal Boxes")
    wickRatio = input.float(1.0, title="Wick Ratio (e.g., 3 for 300%)")
    bodyToRangeRatio = input.float(0.5, title="Candle Body-to-Range Ratio")
    minPushingCandles = input.int(1, title="Minimum Pushing Candles in Previous") // Start with 1 for testing

    // Candle Properties
    candleBody = math.abs(close - open)
    candleRange = high - low
    upperWick = high - math.max(open, close)
    lowerWick = math.min(open, close) - low

    // Impulse Candle Conditions
    isBullishImpulse = (close > open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))
    isBearishImpulse = (close < open) and (candleBody / candleRange > bodyToRangeRatio) and (upperWick < (candleBody * wickRatio)) and (lowerWick < (candleBody * wickRatio))

    // Debugging: Highlight Pushing Candles
    bgcolor(isBullishImpulse ? color.new(color.green, 90) : na, title="Bullish Impulse Highlight")
    bgcolor(isBearishImpulse ? color.new(color.red, 90) : na, title="Bearish Impulse Highlight")

    // Count Minimum Pushing Candles in Previous Bars
    bullishPushingCount = 0
    bearishPushingCount = 0
    for i = 1 to minPushingCandles
    bullishPushingCount := bullishPushingCount + (isBullishImpulse[i] ? 1 : 0)
    bearishPushingCount := bearishPushingCount + (isBearishImpulse[i] ? 1 : 0)

    hasEnoughBullishPushing = bullishPushingCount >= minPushingCandles
    hasEnoughBearishPushing = bearishPushingCount >= minPushingCandles

    // Debugging: Plot Counts
    plot(bullishPushingCount, title="Bullish Pushing Count", color=color.green)
    plot(bearishPushingCount, title="Bearish Pushing Count", color=color.red)

    // Vortex Indicator
    length = input.int(6, title="Vortex Length")
    vi_pos = ta.cum(math.abs(high - low[1])) - ta.cum(math.abs(high - low[1])[length])
    vi_neg = ta.cum(math.abs(low - high[1])) - ta.cum(math.abs(low - high[1])[length])
    tr = ta.cum(ta.atr(1)) - ta.cum(ta.atr(1)[length])
    vi_pos_indicator = vi_pos / tr
    vi_neg_indicator = vi_neg / tr

    // Crossover Signals
    vi_crossover = ta.crossover(vi_pos_indicator, vi_neg_indicator)
    vi_crossunder = ta.crossunder(vi_pos_indicator, vi_neg_indicator)

    // Moving Direction EMA Indicators
    emaLength1 = 8
    emaLength2 = 14
    emaSource = hlcc4
    movingDirection1 = ta.ema(emaSource, emaLength1)
    movingDirection2 = ta.ema(emaSource, emaLength2)

    // Moving Direction Cross Signals
    md_crossover = ta.crossover(movingDirection1, movingDirection2)
    md_crossunder = ta.crossunder(movingDirection1, movingDirection2)

    // Combined Buy/Sell Conditions
    buySignal = hasEnoughBullishPushing and vi_crossover and md_crossover
    sellSignal = hasEnoughBearishPushing and vi_crossunder and md_crossunder

    // Debugging: Display Buy/Sell Conditions
    plotshape(series=hasEnoughBullishPushing ? 1 : na, title="Enough Bullish Pushing", location=location.bottom, color=color.green, style=shape.triangleup)
    plotshape(series=hasEnoughBearishPushing ? 1 : na, title="Enough Bearish Pushing", location=location.top, color=color.red, style=shape.triangledown)

    // Plot Buy/Sell Signals
    plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
    plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

    // Alerts
    alertcondition(buySignal, title="Buy Alert", message="Buy signal detected on Impulse Candle with Vortex & EMA confirmation.")
    alertcondition(sellSignal, title="Sell Alert", message="Sell signal detected on Impulse Candle with Vortex & EMA confirmation.")

    // Plot EMA Lines
    plot(movingDirection1, title="Moving Direction 1 (EMA 8, hlcc4)", color=color.orange, linewidth=1, style=plot.style_line)
    plot(movingDirection2, title="Moving Direction 2 (EMA 14, hlcc4)", color=color.purple, linewidth=1, style=plot.style_line)
    مجهودك موفق مبارك اخى mr_gentle30

    كل التحيه و التقدير و الاحترام
    توقيع العضو
    قسم البرمجه بمنتدى المتداول العربى
    يرحب بكم
    https://forum.arabictrader.com/f31.html

  14. #14
    الصورة الرمزية Yousf_Alani
    Yousf_Alani غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jan 2025
    الإقامة
    العراق
    المشاركات
    17

    افتراضي

    شكررا لك اخي لكن لا توجد اي اشارة بيع او شراء لماذا؟

  15. #15
    الصورة الرمزية mr_gentle30
    mr_gentle30 غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Aug 2013
    الإقامة
    الأردن
    المشاركات
    124

    افتراضي

    لما طلبت الاضافه صارت الاشارات اقل بس في الصوره فوق في اشاره .انا صورتها الك
    الصور المصغرة للصور المرفقة الصور المصغرة للصور المرفقة Screenshot 2025-01-27 185539 (1).png‏  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17