Hello, First post here, this is a great resource but unfortunately I did not find what I was looking for with the search.
I purchased AB several months ago and am getting in to the CBT. I have read the tutorials and help files available and have applied some of the examples I have found. However I am not quite sure what the best solution would be to do the following: I am running a rotational portfolio with: EnableRotationalTrading(); It is always in 3 positions, I want to loop through all open positions and get the average % gain for the entire portfolio. Then when this average passes my specified threshold I want to exit all open positions and go back to waiting for the next entry signals. I think this might yield better results than individually applying profit stops to each position. Instead I would like a Portfolio wide stop. I think I can loop through GetPercentProfit() and store an average for the whole portfolio. But I do not understand how to get CBT to flatten all open positions. Many thanks!
