OPEN-SOURCE SCRIPT

Daily Sessions Tehran

114
//version=5
indicator("Daily Sessions Tehran", overlay=true)

// تنظیم تایم زون تهران (GMT+3:30)
timezone = "Asia/Tehran"

// محاسبه زمان 00:00 به وقت تهران که برابر با 20:30 به وقت GMT است
startOfDay = timestamp("Asia/Tehran", year, month, dayofmonth, 0, 0)

// نمایش زمان شروع روز به وقت تهران در چارت (برای بررسی)
plot(time == startOfDay ? 1 : na, color=color.red, style=plot.style_histogram, linewidth=2)

// رسم خط عمودی در زمان شروع روز
if (time == startOfDay)
line.new(x1=bar_index, y1=ta.highest(high, 500) * 1.2, x2=bar_index, y2=ta.lowest(low, 500) * 0.8, width=2, color=color.white, style=line.style_dotted)

// رنگ پس‌زمینه
bgcolor(color.new(color.blue, 90), offset=0, show_last=1, transp=80)

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.