Hi,

I have a rather simple strategy which I am trying to backtest to understand the Zorro platform.
It basically has a entry-condition and when met it enters a trade using the enterLong-function with a Stop and Profit set. (done in the run() function of course)

So far working as expected and enters new trades when it should, but my question is how I can capture when the Stop or Profit is hit in a bar-cycle.
I know I can use the ThisTrade to get access to the recently entered trade, but how can I find trades that was closed by hitting the Stop or Profit in the same bar-cycle?

Do I have to write my own TradeManagementFunction, do I have to loop through all closed trades, or is there another way?

/Daniel