Hi there, can IsFirstBarofSession be true more than once, during a single trading day?
If the reference code, I see snippets such as:
if (Bars.IsFirstBarOfSession && IsFirstTickOfBar) {
lastThreeTrades = 0;
priorSessionTrades = SystemPerformance.AllTrades.Count;
}
However, on some markets, it seems like the IsFirstBarofSession can be true for the first 1-3 hours after the market re-opens. Therefore, this piece of code which should only run once, at the very start of the trading session, can get executed multiple times.
Your thoughts? Thanks,

Comment