Record the window behind the close
Imagine two reports with the same gold symbol label and calendar date. One records a close at the end of a session defined by its provider. The other uses a custom window with a different cutoff. If a price move occurs between the two cutoffs, it can appear on different dates in the reports. Before comparing the numbers, find the underlying instrument, the feed and the hours each report includes. Compare spot and futures prices with the instrument in view and record the different timestamps attached to an alert.
Check the session separately from the display
TradingView distinguishes the chart’s display time zone from the exchange time zone used by default for relevant Pine Script time calculations. Its session documentation explains how scripts can specify a time zone for time-based session checks.[1][2] Changing the labels you see on a chart therefore does not by itself change the time calculations in a script. Check the symbol, the script settings and the actual timestamps assigned to the bars you are comparing.
Make the rule reproducible
Suppose your written rule asks whether the daily bar closed above a threshold. Save one example with the full symbol, the opening and closing timestamps and the session definition. If you test a second session, keep the original result and report the second as a separate test. Record any historical data gaps and whether the last bar in the sample had closed. A comparison of the two tests can show how sensitive your rule is to that choice. It provides no prediction about the next session.

The Gold Trader’s Code
Continue the study of rules and professional trading decisions.
Discover the book ↗Read the book overview →Sources & further reading
Sources consulted 12 November 2026. Editorial frameworks and illustrative examples are identified within the text.



