rottentrade
Member
From what I understand so far, you can find the last bar of the day by using RegularTradingEnd and SecondsTillTime(ClosingTime), etc.
But how do you say "Exit trade 1 bar prior to the close of the day" regardless of what timeframe you look at. So that would be 3:59 on 1 minute chart, or 3:55 on the 5 min and 3:50 on 10 min charts.
But how do you say "Exit trade 1 bar prior to the close of the day" regardless of what timeframe you look at. So that would be 3:59 on 1 minute chart, or 3:55 on the 5 min and 3:50 on 10 min charts.