OPEN-SOURCE SCRIPT
vertical marker (latest)

//version=6
indicator("Latest Vertical Line Infinite", overlay=true, scale=scale.none)
// Session input
sess1 = input.float(9.0, "Session Time", minval=0.0, maxval=23.59)
// Color + opacity input
lineColor = input.color(color.new(color.black, 0), "Line Color")
// Fractional minutes
min1 = sess1 - math.floor(sess1)
// Trigger condition
cond1 = (hour == math.floor(sess1)) and (minute == int(min1 * 100))
// Store latest line
var line latestLine = na
// Create new infinite vertical line at the latest session
if cond1
if not na(latestLine)
line.delete(latestLine)
latestLine := line.new(x1=bar_index, y1=0, x2=bar_index, y2=1, xloc=xloc.bar_index, extend=extend.both, color=lineColor, width=1)
indicator("Latest Vertical Line Infinite", overlay=true, scale=scale.none)
// Session input
sess1 = input.float(9.0, "Session Time", minval=0.0, maxval=23.59)
// Color + opacity input
lineColor = input.color(color.new(color.black, 0), "Line Color")
// Fractional minutes
min1 = sess1 - math.floor(sess1)
// Trigger condition
cond1 = (hour == math.floor(sess1)) and (minute == int(min1 * 100))
// Store latest line
var line latestLine = na
// Create new infinite vertical line at the latest session
if cond1
if not na(latestLine)
line.delete(latestLine)
latestLine := line.new(x1=bar_index, y1=0, x2=bar_index, y2=1, xloc=xloc.bar_index, extend=extend.both, color=lineColor, width=1)
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน