//version=5
indicator("يوم الشمعة", overlay=true)

// إعدادات قابلة للتخصيص
posInput = input.string("أسفل", "موقع اليوم", options=["أسفل", "أعلى", "داخل"])
colorInput = input.color(color.gray, "لون اليوم")
offsetInput = input.float(0.5, "المسافة من الشمعة", minval=0, step=0.1)

// تحديد اليوم
day_string = str.tostring(dayofmonth, "#00")

// تحديد الموقع
var ylocation = yloc.belowbar
if posInput == "أعلى"
ylocation := yloc.abovebar
else if posInput == "داخل"
ylocation := yloc.price

// تحديد نقطة Y للنص
y_position = switch posInput
"أسفل" => low - (offsetInput * syminfo.mintick)
"أعلى" => high + (offsetInput * syminfo.mintick)
=> close

// رسم النص
label.new(
bar_index,
y_position,
day_string,
yloc=ylocation,
color=color.new(colorInput, 100),
style=label.style_none,
textcolor=colorInput,
size=size.small
)
Trend Analysis

Juga di:

Pernyataan Penyangkalan