Hi, If you're doing low level backtest, then either:
- you're the one entering the trade, in which case just take note of what bar you're on when you do. - or you're calling ProcessTradeSignals(i) at the end of each bar, in which case just call GetFirstOpenPos(); when it returns non null that'll be the first trade bar. Mike --- In [email protected], "Markus Witzler" <funny...@...> wrote: > > Hello, > > I need to retrieve the bar number of first trade in CBT (low level)., i.e. > when first trade was opened. > > Any clue how to accomplish this? > > The only thing I know is I must do this in closed trade list. > > Thanks > > Markus >
