//@version=5
// PipAtlas Economic Calendar Lines — https://pipatlas.com/tools
// Draws dotted event lines (with name labels) at the times you enter,
// plus a 15-minute pre-event alert condition. Enter event times from
// your own calendar source. Education only, never financial advice.
indicator("PipAtlas Economic Calendar Lines", overlay=true, max_lines_count=50, max_labels_count=50)
i_t1 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 1 time", inline = "e1")
i_n1 = input.string("NFP", "", inline = "e1")
i_g1 = input.string("high", "impact (high/med/low)", inline = "e1")
i_t2 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 2 time", inline = "e2")
i_n2 = input.string("CPI", "", inline = "e2")
i_g2 = input.string("high", "", inline = "e2")
i_t3 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 3 time", inline = "e3")
i_n3 = input.string("Rate decision", "", inline = "e3")
i_g3 = input.string("high", "", inline = "e3")
i_t4 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 4 time", inline = "e4")
i_n4 = input.string("GDP", "", inline = "e4")
i_g4 = input.string("med", "", inline = "e4")
i_t5 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 5 time", inline = "e5")
i_n5 = input.string("PMI", "", inline = "e5")
i_g5 = input.string("med", "", inline = "e5")
i_t6 = input.time(timestamp(2026, 1, 1, 0, 0), "Event 6 time", inline = "e6")
i_n6 = input.string("Other", "", inline = "e6")
i_g6 = input.string("low", "", inline = "e6")
impactColor(imp) => imp == "high" ? color.red : imp == "med" ? color.orange : color.gray
drawEvent(t, name, imp) =>
if t > 0
hi = ta.highest(high, 30)
lo = ta.lowest(low, 30)
line.new(x1 = t, y1 = lo, x2 = t, y2 = hi, xloc = xloc.bar_time, color = impactColor(imp), style = line.style_dotted, width = 1)
label.new(x = t, y = hi, text = name, xloc = xloc.bar_time, style = label.style_label_down, color = impactColor(imp), textcolor = color.white, size = size.small)
var bool drawn = false
if barstate.islast and not drawn
drawn := true
drawEvent(i_t1, i_n1, i_g1)
drawEvent(i_t2, i_n2, i_g2)
drawEvent(i_t3, i_n3, i_g3)
drawEvent(i_t4, i_n4, i_g4)
drawEvent(i_t5, i_n5, i_g5)
drawEvent(i_t6, i_n6, i_g6)
soon(t) => t > 0 and time <= t and t - time <= 15 * 60 * 1000
alertcondition(soon(i_t1) or soon(i_t2) or soon(i_t3) or soon(i_t4) or soon(i_t5) or soon(i_t6), "PipAtlas: event within 15 min", "High-impact economic event within 15 minutes")
Overview
Traders manually input up to six event timestamps, event titles (such as NFP, CPI, or GDP), and impact ratings. The indicator draws vertical dotted lines extending across recent price highs and lows, color-coding them by impact level (red for high, orange for medium, and gray for low). It also triggers a pre-event alert 15 minutes before any configured event occurs.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Event 1 time
time
timestamp(2026, 1, 1, 0, 0)
i_t1
i_n1
string
NFP
i_n1
impact (high/med/low)
string
high
i_g1
Event 2 time
time
timestamp(2026, 1, 1, 0, 0)
i_t2
i_n2
string
CPI
i_n2
i_g2
string
high
i_g2
Event 3 time
time
timestamp(2026, 1, 1, 0, 0)
i_t3
i_n3
string
Rate decision
i_n3
i_g3
string
high
i_g3
Event 4 time
time
timestamp(2026, 1, 1, 0, 0)
i_t4
i_n4
string
GDP
i_n4
i_g4
string
med
i_g4
Show all 18 settings
Setting
Type
Default
Variable
Event 5 time
time
timestamp(2026, 1, 1, 0, 0)
i_t5
i_n5
string
PMI
i_n5
i_g5
string
med
i_g5
Event 6 time
time
timestamp(2026, 1, 1, 0, 0)
i_t6
i_n6
string
Other
i_n6
i_g6
string
low
i_g6
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator counts down to a fixed Litecoin halving timestamp in August 2019, using Greenwich Mean Time. It subtracts the current time from that stamp and formats the remaining days, hours, minutes, and seconds. The day, hour, and minute of the target are u
This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-
This indicator identifies and plots key options expiration dates on the price chart. It calculates monthly OpEx (the third Friday of each month), quarterly OpEx (March, June, September, December), and corresponding VIX expiration dates, drawing vertical lines
This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in