I have attached a strategy which will buy when the MA changes direction and moves up and sell when the MA changes direction and moves down.
To ensure that strategy only trades when the MA changes direction it is currently coded such that when the strategy is first started it ignores the first direction of the MA and waits for the direction to change.
This way it won't buy in the middle of a long MA up sequence, instead it waits for the start of the next MA down sequence.
Problems with this arise and trades can be missed when i restart TS and the strategy after each weekend.
I would like, if at all possible, to be able to specify the allowed side of the first trade to "Buy" or "Sell" and then once the first trade (or any trade) is open the allowed side is set to "Both".
Thanks in advance for any help you might give.