Topic: Designing more complex strategies

I want to code a strategy that closes half of all positions when a rule is triggered. Is it possible to code this using the strategy builder. I think that automated strategies in general are best represented using state machines. So is it possible that the public also has access to the source code of the strategy builder (not just the indicators).