ProShares UltraPro QQQ
Éducation

كميات

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

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.