I don't want to interfere here, but it sounds very much like an EA I posted here, go look at the Spider RSI, it takes trades on the arrow signals, (it is obviously not the same as what you want, but the priciple of opening multiple trades at different levels, and closing all (the basket) when a certain profit target is reached.
Else you can also look at Blanco's Simple System post, I am busy coding that now, also very much the same as your penultimate post.