Thinking Stuff's ATM

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...

Thinking Stuff's ATE

Automated Trading Execution (ATE) is where we run your trading systems for you on our servers. Your system can be exported from ATM, or written in plain English and we'll make it for you. We'll even backtest and suggest improvements if you want us to. This service essentially automates your automated trading.  Learn more...

Thinking Stuff's Groups

Join a group of like-minded individuals, and help each other to trading success. Once you join a group, you will have access to that group's trading systems, ideas, and feedback. And please contribute your own knowledge as much as possible. Or contact us to start your own group.  Learn more...

Orders/Trades

Number Of Units To Purchase

Currency brokers normally only allow a certain multiple of units to be purchased at a time. Some brokers allow multiples of 1000, some of 10,000, and there are still some hold-outs mandating multiples of 100,000. (100,000 units = 1 contract).

Although there is 1 forex broker which allows any number of units to be purchased, that is certainly not the norm. So you can't buy 123,456 units - you would have to buy 123,000 units or 120,000 units or 100,000 units depending on the multiple allowed by your broker.

This is important when it comes to calculating the number of units that ATM will buy. If you enter a percentage of the balance to be used on each trade (in the money management settings), then that percentage is regarded by ATM as the absolute upper limit. ATM only ever rounds-down. The following table gives examples:
 

ATM Wants To Purchase (Units) Oanda Multiple of 1K Multiple of 10K Multiple of 100K
1 1 0 0 0
3,769 3,769 3,000 0 0
9,999 9,999 9,000 0 0
10,000 10,000 10,000 10,000 0
32,769 32,769 32,000 30,000 0
99,999 99,999 99,000 90,000 0
100,000 100,000 100,000 100,000 100,000
132,769 132,769 132,000 130,000 100,000
199,999 199,999 199,000 190,000 100,000
200,000 200,000 200,000 200,000 200,000

To Send Orders Quickly

The Order window has quite a lot of fields to fill in. Starting from scratch, it's slow and cumbersome when you want to send an order to the broker as quickly as possible. But there are 2 ways you can pounce on a trade if need be:

  1. Fill in all the details beforehand, and save it. Keep the status at "New". When it comes time to actually place the order with the broker, you can just click "Edit" and send. Even if you have to change some fields then it's just a couple of clicks.
  2. Copy an existing order that you already sent to the broker. Set the status back to "New". Edit the other fields, send to the broker.

See also:

Statuses Of Orders And Trades

 
For Orders

  • New - before you've sent the order to the broker.
  • Open - you've sent the order to the broker.
  • Entered - the order was taken up, and a trade was opened.
  • Cancelled - you cancelled the order before it was taken up.

 
For Trades

  • Open - the trade is currently sitting with your broker. You have the option of moving the stop loss or take profit. Any profit or loss is only a paper profit or loss at this stage.
  • Closed - the trade was closed, or the stop loss was taken out, or take profit hit. The profit or loss is real.

 
Changing the status

You are free to change the status at any time to any value. But it's best to keep the status in sync with the broker.
 

To Have ATM Place Orders Only (And No Trade Management)

This is good for people who want the entry to be done by a computer, but then want to do the trade management by themselves. Such people may have a mechanical system for knowing when to place orders, but for whatever reason they can't pull the trigger themselves (analysis paralysis, a really complex system with a lot of entry rules, etc). However, once in the trade, they have no trouble looking after it by themselves.

Essentially, you just create a bare-bones trading system - entry rules, entry values, and an initial stop loss value. Once ATM opens the trade, it therefore has no instructions on how to manage it, so you are free to do it yourself.

In this scenario where you want to do the trade management yourself, it might be a good idea to have ATM alert you that it has opened a trade.
 

To Have ATM Do Trade Management Only

This is good for people who want to do the trade entry by themselves, but after that want the trade management to be done by a computer. Such people might have a discretionary system for knowing when to place orders, but the trade management aspect is mechanical. Or maybe you're just at work and see a really good opportunity to buy but you don't have the time to baby-sit the trade once open.

First, you will need a trading system - the one that is going to do the trade management. And, that trading system will require entry rules and values because they are mandatory for a system to do anything at all. The trick is to set the entry rules such that they could never be true. For example, have two trading rules:

  1. the Close must be above SMA(5)
  2. the Close must be below SMA(5)

Both rules could never be true at the same time, so this trading system will never open an order by itself.

The entry value can be anything you like. I guess "enter at market" is easiest, remembering that it will never be triggered. Similarly, set the initial stop loss value to anything simple - maybe entry price minus 50 pips.

You then set up your trade management rules as per your preferences.

Set the auto-trading status of the trading system to be "Trade Mgmt Only". On the Command Centre, start the scheduled processes that download or create the price bars required by your system. And finally, make sure the auto-trading scheduled process is running. You are now free to place orders manually.

From here there are two possible scenarios - whether you can use ATM to place the orders, or whether you're at work or somewhere that you only have access to your broker's platform.

In either case, and this is ** very important ** ensure you always use a stop loss, and ensure a trading system has only one open trade at any time. It is also important to test these strategies in a demo account before proceeding with real money. As you should with any trading system.
 

If you can use ATM to place the orders

When placing your orders or trades manually, do it through the Order window. This lets you specify directly the trading system that opened the order or trade. Also put a tick in the "Handled by ATM" checkbox." Then that trading system (which you have currently auto-trading) sees the trade there and looks after it with its trade management settings.

It's better to use market orders though (which are turned into a trade instantaneously). Because the trading system's entry rules can never be true at the same time, and also because you have the status set to "Trade Mgmt Only", if the system sees an open order there it will want to cancel it.
 

If you can't use ATM to place the orders

In this case, you are restricted to using only one trading system per account to do your trade management (whereas with the above method you can choose from any number of trading systems).

Through the internet, or your broker's trading platform, open a new trade in your account. When ATM downloads the transactions for that account, it will see the new trade there. But because you didn't place the order through ATM, it will not know which trading system to use to manage the trade.

In this case, ATM normally says that the trade was opened by the "Unknown" system. And because the Unknown system doesn't auto-trade, that's the end of the matter as far as ATM is concerned.

However, you can change this so that ATM does not use the Unknown system, but rather uses a trading system of your choice. And this setting can be changed by editing the account (in ATM). Each account has a default trading system setting. Change it to be the system you want to do your trade management.

Now when you open a trade through your broker's platform, ATM will assign that trading system to look after it.
 

Moving A Take Profit That Wasn't There Initially

That is, you don't enter anything in the initial take profit values, but you do use the take profit management rules and values. So when the trade is opened, it doesn't have a take profit. But then at some point later your trading system tries to move it.

Using the take profit management rules and values is always ok if you use it to exit at market. This is because you're not actually moving a take profit - you're just closing the trade.

Otherwise, what's going to happen depends on the broker. Some allow a take profit to be added at a later date even if there wasn't one when the trade was opened. Other brokers don't allow it. Try it in a demo account.
 

Take Profit

Once a trade is opened, a "take profit" is (optionally) set at a particular price so that if the trade goes the right way, the trade will be automatically closed by your broker at a profit.

Whereas a stop loss is mandatory, take profits are optional. The reason is that there are 3 ways to exit a trade:

  1. The take profit is hit, in which case the broker will close your trade automatically at the requested price.
  2. Exit the trade at market - i.e. right now, at wherever the current price is. Whether you make a profit or not on this trade is determined by where the current price is in relation to the entry price.
  3. As the price goes more and more in your favour, you gradually move your stop loss to follow the price (i.e. a trailing stop). The hope is that eventually your stop loss is above your entry price. Once the price turns around and the stop loss is taken out, your broker will close your trade automatically at the requested price.

The other difference between take profits and stop losses is that a take profit can be moved up or down at any time, for both long trades and short. A stop loss may never be moved to a position where you were risking more money than before.

See also::

Stop Loss

Once a trade is opened, a "stop loss" is set at a particular price so that if the trade goes the wrong way, you will only lose a set and pre-determined amount of money.

ATM requires that all orders and trades have a stop loss set, whether orders are being placed manually or automatically. As such, trading systems that do not have anything for the Initial Stop Loss settings will not place any orders.

Because this is automated trading software, and because it's designed so that you can kick it off and go and do other things, it's best that some emergency checks and balances are in place. Should ATM place a trade without a stop loss, and then your Internet connection went down for whatever reason, now your entire account balance is at risk with that trade not being managed by anybody or any thing. And you don't even know what's happening because you're at the beach drinking beers.

And so a stop loss mandatory. However, there is nothing stopping you from putting that stop loss ridiculously far away from the current price - so far away that it's essentially the same as not having a stop loss. This is not recommended, but you can if you want.

See also::