I am wanting a EA that buys or sells on the crossing of 2 weighted moving averages, but I want the transaction to take place twice. For example, the first crossing enters into a buy transaction and then when it crosses again indicating a sell, it closes out of the first trade and goes immediately into a short sell and vice versa. I know there will be some loss on the spread and I'm not sure if it is possible, but I would like to know if anybody can programme this.
Many thanks,
Matt