Automated Trading Machine (ATM) makes it simple to remove fear and greed from your trading. Automated trading is no longer just for the rich or nerdy. Our revolutionary software runs on your computer, using your trading rules, but none of your emotions. There's just one requirement - you know how to use a mouse. Learn more...
Using An Overlay For The Entry Price
To keep things simple, normally in these examples we just explain in terms of Long trading. And that will continue here. But also for the purposes of keeping things simple, we also normally just use "Enter At Market" for the entry values - as soon as the entry rules are true, ATM will immediately open a trade using a market order.
ATM can also place limit orders, which allow a slightly different trading style. Here's an example of how they are different:
- open a long trade if the close is above the moving average
- open a long trade as soon as the price hits the moving average
The first style lends itself to market orders. A new price bar comes along, we do the moving average calculation, and if the CLOSE is above that average then we open a trade.
The second style lends itself to limit orders. It's kind of like setting a trap. With the current price below the moving average, we place a long limit order at that moving average. While the current price stays below the moving average, we adjust the order so it stays in-line with the moving average. And if the price ever happens to hit the moving average, our trap is sprung, and the broker will automatically turn our limit order into a trade.
So here's an example of the latter. Our entry price is going to be at the moving average. We will set the stop loss 50 pips below that average, and the take profit 75 pips above.
| Direction | Rule Type | Rule Family | Line 1 | X / Line 2 |
| Long | Entry Rules | Line 1 is below Line 2 | CLOSE | SMA(20) |
| Entry Values | SMA(20) | |||
| Initial S/L Values | SMA(20) - 0.0050 | |||
| Initial T/P Values | SMA(20) + 0.0075 | |||
| Short | Entry Rules | Line 1 is above Line 2 | CLOSE | SMA(20) |
| Entry Values | SMA(20) | |||
| Initial S/L Values | SMA(20) + 0.0050 | |||
| Initial T/P Values | SMA(20) - 0.0075 |
Perhaps you see the moving average as a moving resistance level. If so, you wouldn't care so much that the price hits the moving average - you would see that as normal behaviour. If it was acting as resistance then the price would hit the moving average and bounce off. So you would be more interested in the price breaking through the average. In that case use SMA(20) + 0.0010 (or whatever) for the long entry value - the price would have to break through the moving average by 10 pips for the long limit order to be hit.
Using limit orders to confirm upward/downward pressure
When explaining about the different scenarios that best suit market orders vs. limit orders, we used this one for market orders: "open a long trade if the close is above the moving average".
Limit orders can also be used here. Instead of entering at market whenever the close is above the average, you can set a limit order to confirm upward pressure.
In our example using market orders, a new price bar comes along, we do the moving average calculation, and if the CLOSE is above that average then we open a trade.
But change the entry value to CLOSE + 0.0010 to use a limit order instead. A new price bar comes along, we do the moving average calculation, and if the CLOSE is above that average then we place a long limit order 10 pips higher than the current price. Only if the price continues to rise a further 10 pips does the trade get opened.
Which method works better? Only backtesting knows the answer.
- Login to post comments
Recent blog posts
- New Release: v3.0.3 - Everything Except Autotrading
- Mid July 2010 Update
- Start of June 2010 Update
- New Release: v3.0.2 - Copy, better error message, more options
- New Release: v3.0.1 - The Stabilise-ening
- Ah, The First Bug [Fixed in v3.0.1]
- New Release: v3.0.0 - The Rewrite
- Start of February 2010 Update
- End Of 2009 Update
- New Release: v2.0.10

Recent comments
21 weeks 2 days ago
36 weeks 3 days ago
42 weeks 1 day ago
42 weeks 1 day ago
48 weeks 5 days ago
50 weeks 11 hours ago
1 year 4 weeks ago
1 year 4 weeks ago
1 year 7 weeks ago
1 year 12 weeks ago