My bot is based on hedging, and I am looking for a way for it to count the number of consecutive wins - say, close out an order after 3 other orders have hit TP (not closed 'manually' - but use pre-defined TP). I don't know the function to call the current count of consecutive wins - I assume there is one as there is a variable to limit it with the default MACD bot. Any advice?