Hello,
I am working on a script that has both counter-trend and trend-follower component ALGOs. Not infrequently the trend-follower wants to start buying before, or at the same time as, the CT ALGO wants to sell. So it would be desirable to hand off lots between the ALGOs without buying/selling to market. While preserving Zorro's profit statistics for each ALGO. (I.e., as if there had been a cost-less sell/buy at the average bar price)

So the question: is it possible (or advisable) to try to handle this by selecting an open TRADE of the lot-holding ALGO and decrementing its lots, and then entering (or lot-incrementing, if open) a TRADE of the lot-receiving ALGO. (Or if that won't work directly, cancelling an existing TRADE and entering an altered one.) And then what components of the modified TRADE structs will Zorro update for me, and what do I have to figure out & also update manually (open/closed flags, profit, entry/exit prices, etc.) to preserve profit stats and otherwise not mess things up?

Thanks in advance for any insights!

Last edited by Jack_Zodiac; 01/15/23 16:03. Reason: clarifying