title: Pine Script - Strategy analysis only within a specific time of day each already designated trading days
body: <p>I want to 'turn off' the strategy during after mkt sessions or simply to be active only during periods of US mkt hours.  But i dont want my strategy to consider data outside that period.  is that possible?</p>
  <p>this is my code to constrain my trading conditions but it does not constrain the analysis.</p>
  <pre><code>TradingSession = input.session(title=&quot;Trading Session&quot;, defval=&quot;0635-1320&quot;, tooltip=&quot;time period for active trading&quot;)
  TradingSessionShaded = input.bool(title=&quot;Shade Trading Session?&quot;, defval=true, tooltip=&quot;Change the background color based on whether the current bar falls within the trading session?&quot;)
  inSession(trade) =&gt; na(time(timeframe.period, trade + &quot;:23456&quot;, &quot;America/Los_Angeles&quot;)) == false and time &gt;= timestamp(&quot;01 Jan 2021 13:30 +0000&quot;) and time &lt;= timestamp(&quot;1 Jan 2099 19:30 +0000&quot;)
  cantrade = inSession(TradingSession)
  </code></pre>