My current strategy has a calculated entry, which attaches a fixed profit target and stop loss. I want to change this to use an indicator to exit an active trade.
That being said, so I rewrote my strategy that still uses the same entry conditions, calculate the entry and stop loss. I am now stuck on how to add an indicator to exit the position when a certain condition is met.
For instance, let's say I enter a long trade at X price. The order is filled and attaches my calculated stop loss as an OCO. Now let's say price rallies up and close outside of a channel, I want to use that indicator to exit the trade and cancel the OCO order to flatten the position. Secondly, let's say price retraces under a MA the I also want to exit the trade and cancel all other attached orders.
Is this possible through the builder or what will the code look like in the script editor?
thanks
Comment