TradeIndex is the BarIndex when either a trade is a) opened, b) closed.
At every new operation the TradeIndex is shifted one place. If it’s a Stop & Reverse (exit followed by a new open), two places are shifted and both the Exit of the previous trade and the open of the new one share the same BarIndex, despite they will have a different TradeIndex ID due to the sequential occurrences.
The 4 attached pics should make it clear what the process is like.
2 users thanked author for this post.