title: Pine script : barstate and session information for past bars/candles?
body: <p>Is it possible to retrieve barstate and session information for past bars/candles?
  In other words does the following make sense or are you really retrieving barstate and  session for the current candle?</p>
  <pre><code>[sec_close, sec_ismarket, sec_ishistory] = request.security(t3, &quot;1D&quot;, [close, session.ismarket, barstate.ishistory])
  </code></pre>