How can I automate a strategy that has both a defined exit as well as a stop-loss? For example, I have a ADX/DMI strategy in which I go long if ADX>25 and DI+ > DI-, I put a stop loss of 2.5% but I also have a defined exit: DI+ < DI-. If I only use stop loss, I can use CO, but modifying/cancelling CO through API Bridge is hard. I cannot use BO as I don't know when DI+ will cross below DI-. Not using CO will send at minimum three orders per trade, which I want to avoid. Any suggestions? (I use API Bridge with AmiBroker)

2 replies