Porfolio Backtester Interface Reference
-
long BarsInTrade
bars spent in trade (counting starts from 0)
Note however that the value of zero is available only when trade is just opened in "low-level" approach, so normally you would see numbers >= 1 (all other reporting in AB remains as it was, so enter today and exit tommorrow counts as 2-bar trade)
I came across this documentation in the manual.
- My question is why does the analysis window show 2 bars when it was only 1 bar in trade, I am sure there is a reason that I am just missing?
- Also, is avg bars held using bars in trade number or the # of bars in analysis window?
- Lastly is exposure counting 1 bar in the example above or two?