All the examples so far have had Long rules only, the theory being that you're smart enough to understand how to apply the same techniques for Short trades as well.
This example shows a mirrored system.
| Rule Type | Description |
| Long - Entry Rules | Close Below Simple Moving Average (Period=100) |
| Long - Entry Values | Simple Moving Average (Period=100) |
| Long - Init. S/L Values | 10 Pips Below Entry |
| Long - Init. T/P Values | 50 Pips Above Entry |
| Long - S/L Mgmt Rules | Close Above Simple Moving Average (Period=100) |
| Long - S/L Mgmt Values | Simple Moving Average (Period=100) |
| Short - Entry Rules | Close Above Simple Moving Average (Period=100) |
| Short - Entry Values | Simple Moving Average (Period=100) |
| Short - Init. S/L Values | 10 Pips Above Entry |
| Short - Init. T/P Values | 50 Pips Below Entry |
| Short - S/L Mgmt Rules | Close Below Simple Moving Average (Period=100) |
| Short - S/L Mgmt Values | Simple Moving Average (Period=100) |
If the close of the most recently completed bar falls below the SMA of period 100, then a long order will be placed at the value of that SMA. The initial stop loss is set 10 pips below the entry, and the initial take profit is set 50 pips above.
Let's say the price moves up far enough to get us in that long trade. Should the close of that bar end up still above the SMA, then the stop loss for the long trade will be moved to wherever the SMA currently is (remember it was 10 pips below it when the trade was opened).
Also, an order to go short will be placed at the value of that SMA. The initial stop loss is set to 10 pips above the entry, and the initial take profit is set to 50 pips below.
That's right - we're in a long trade, and we also have a short order set.
Whenever the close ends up above the SMA, the long stop loss will be adjusted so it remains level with the SMA (remembering that the stop loss will never move down, to a position of increased risk though).
Should the price ever fall below the SMA, then the long stop loss is taken out, and we are out of that long trade. Also the short order is taken up, and we are in a short trade.
Be very careful
You need to make sure that your system can not want to be in both a long trade and a short trade at the same time. It's ok to have a long trade and a short order, or vice-versa, but not 2 open trades at once.
This is because (a) most brokers do not allow hedging in the one account; and (b) Thinking Stuff can't handle hedging in the one account. You can get around both (a) and (b) by having 2 accounts - one is used for short trades only, and the other is used for long trades only. Please read the "How To Hedge?" section of the "
Trading Systems Window" help page.
When the stop loss of the long trade is at the same value as (or higher than) the short order's entry, that means the system is "safely" mirrored.
But you can see in this system, the initial stop loss for the long trade is set 10 pips below the SMA, whereas the entry value for the short order is at the SMA. It's only when a bar closes above the SMA, that the long stop loss is moved up to that SMA.
Here's where some thinking is required. Is there any possibility that this system could be in both a long and short trade at the same time?
Let's start with a blank sheet. And assume that the prices are currently below the SMA. So, at the start, only a long order will be in place.
The price then rises through the SMA, and the long order turns into a long trade. The initial stop loss is 10 pips below the SMA. The bar which got us in to the trade then closes above the SMA, so the stop loss is moved to the SMA, and the short order is also placed at the SMA.
Ok, that scenario checks out. But what if the bar that gets us in to the long trade, reverses and closes below the SMA?
In this case, the stop loss will not be moved, so it remains 10 pips below the SMA. On the other hand, no short order will have been placed. This scenario checks out as well.
So, fortunately for us, this system seems "safe". But be careful. If there's any doubt, I think you should use the 2 different accounts - one for long trades, and one for short trades.
From my backtesting, I have found that prices rarely behave the same going up as they do coming down. So it's entirely feasible that you would have different settings for your long and short trades. In this example, the SMA of period 100 is used throughout. More likely it would be something like an SMA of period 100 for the longs, and an SMA of period 80 for the shorts. This leads to an even greater chance that you could be in both a long and short trade at the same time, and therefore you should use the 2 accounts method.