How to exit all positions if the portfolio's changed by a % in a day?
Author: joannakim
Creation Date: 10/19/2010 7:07 AM
profile picture

joannakim

#1
Hi Eugene and Cone. Rich (Richman), my trading buddy, and I here in Boston area have been having difficulty coding a part of our strategy into our WLPs, and we were wondering whether you could help. We are trying to add to our existing strategy the following: exit all positions if the portfolio collectively is down by a certain percentage or more in a given day. Any suggestions?

Joanna
profile picture

Eugene

#2
Long story short, WealthScript doesn't make it easy coding such conditions. One arcane workaround that may work (or may not) for you can be found by visiting this Wiki article:

WealthScript Techniques | Interacting Dynamically with Portfolio Level Equity
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).