ProShares UltraPro QQQ
تعليم

كميات

503
//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
)

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

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.