INVITE-ONLY SCRIPT
Quarterly Divider [Coded]

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © TheClairvoyant_Trader
//version=6
indicator("Quarterly Divider", overlay=true)
// Input for customizing line color and thickness
lineColor = input.color(color.blue, title="Line Color")
lineThickness = input.int(2, title="Line Thickness", minval=1, maxval=5)
// Define the quarter start dates (1st of Jan, Apr, Jul, and Oct) from 2025 onward
startYear = 2015
quarters = array.new_int(4)
// Add timestamps for each quarter in 2025 and beyond
for year = startYear to year(timenow)
array.push(quarters, timestamp(year, 1, 1, 0, 0)) // Q1
array.push(quarters, timestamp(year, 4, 1, 0, 0)) // Q2
array.push(quarters, timestamp(year, 7, 1, 0, 0)) // Q3
array.push(quarters, timestamp(year, 10, 1, 0, 0)) // Q4
// Loop through the array and draw vertical lines at the start of each quarter
for i = 0 to array.size(quarters) - 1
quarterStartTime = array.get(quarters, i)
if (time >= quarterStartTime) and (time[1] < quarterStartTime)
// Draw vertical lines
line.new(x1=bar_index, x2=bar_index, y1=low, y2=high, color=lineColor, width=lineThickness, extend=extend.both)
// Plot quarter labels below the vertical line (near the timestamp)
quarterLabel = i % 4 == 0 ? "Q1" : i % 4 == 1 ? "Q2" : i % 4 == 2 ? "Q3" : "Q4"
label.new(bar_index, low - (high - low) * 0.1, text=quarterLabel, color=color.blue, style=label.style_label_up, size=size.small)
// © TheClairvoyant_Trader
//version=6
indicator("Quarterly Divider", overlay=true)
// Input for customizing line color and thickness
lineColor = input.color(color.blue, title="Line Color")
lineThickness = input.int(2, title="Line Thickness", minval=1, maxval=5)
// Define the quarter start dates (1st of Jan, Apr, Jul, and Oct) from 2025 onward
startYear = 2015
quarters = array.new_int(4)
// Add timestamps for each quarter in 2025 and beyond
for year = startYear to year(timenow)
array.push(quarters, timestamp(year, 1, 1, 0, 0)) // Q1
array.push(quarters, timestamp(year, 4, 1, 0, 0)) // Q2
array.push(quarters, timestamp(year, 7, 1, 0, 0)) // Q3
array.push(quarters, timestamp(year, 10, 1, 0, 0)) // Q4
// Loop through the array and draw vertical lines at the start of each quarter
for i = 0 to array.size(quarters) - 1
quarterStartTime = array.get(quarters, i)
if (time >= quarterStartTime) and (time[1] < quarterStartTime)
// Draw vertical lines
line.new(x1=bar_index, x2=bar_index, y1=low, y2=high, color=lineColor, width=lineThickness, extend=extend.both)
// Plot quarter labels below the vertical line (near the timestamp)
quarterLabel = i % 4 == 0 ? "Q1" : i % 4 == 1 ? "Q2" : i % 4 == 2 ? "Q3" : "Q4"
label.new(bar_index, low - (high - low) * 0.1, text=quarterLabel, color=color.blue, style=label.style_label_up, size=size.small)
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Alpha_002에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
quarterly
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Alpha_002에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
quarterly
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.