Skip to content

WealthScript: Market Open and Close Lines

Updated

Plot vertical lines on your charts for market open and close using WealthScript!

Open the WealthScript Code Editor from the main menu, under Research & Analysis Tools > WealthScript.

Paste this into the editor:

[PlotStyle(1, Columns, 5)]
input Futures(false)
if Time == 2200 and Futures then
  plot1(low, "Start of Day", White)
elseif Time == 930 and not Futures then
  plot1(low, "Start of Day", White)
end

Click Save and Compile. Once it compiles, click Apply to chart to put the lines on your chart.

Was this helpful?

Related guides

Still stuck? Contact support — phone, chat or email, staffed while the market is open.

© 2026 WealthCharts™. All Rights Reserved. Trading involves risk.