OPEN-SOURCE SCRIPT

Descending Candle Strategy

157
//version=5
indicator("Descending Candle Strategy", overlay=true)

// الشموع المرجعية
candle_A_close = close[1]
candle_A_open = open[1]
candle_B_close = close[2]
candle_B_open = open[2]

// الشروط المفترضة من الملف:
descending_condition = candle_A_close < candle_A_open and candle_A_close < candle_B_close

// فتح صفقة بيع إذا تحقق الشرط
enterShort = descending_condition

// مستوى وقف الخسارة - مثلاً أعلى شمعة B
stopLoss = high[2]

// رسم إشارات البيع
plotshape(enterShort, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")

// رسم وقف الخسارة على الشارت
plot(enterShort ? stopLoss : na, title="Stop Loss", style=plot.style_line, color=color.orange)

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.