# Creating ATM Template

Here’s how to set up a basic 1 Stop/1 Target ATM Strategy and save it as a template:

### **Step-by-Step Guide**

1. **Open your ChartTrader or SuperDOM**
2. **Select `<Custom>`** from the ATM Strategy control list.

<figure><img src="https://993090024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI6t5LesvaGZE6r1KML4v%2Fuploads%2FR0pFMXpFI2ObTqMqTqTV%2Fcreate-new-atm.png?alt=media&#x26;token=b35aa347-37d0-4fb0-b618-22ef7caeb8b1" alt=""><figcaption><p>create a new ATM template</p></figcaption></figure>

3. **Define Parameters**:

* **Stop Loss**: Set at 10 ticks.
* **Profit Target**: Set at 20 ticks.

<figure><img src="https://993090024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI6t5LesvaGZE6r1KML4v%2Fuploads%2Fkxfuw5CaZiALJNFP2ALv%2Fprovide-stop-and-targets.png?alt=media&#x26;token=055d2f87-59e7-4a53-88b6-d891a2e2be30" alt=""><figcaption><p>Provide order quantity, stop, and target values </p></figcaption></figure>

4. **Save as Template**: Name the template (e.g., “20 Tick Target”) and press "Save".

<div><figure><img src="https://993090024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI6t5LesvaGZE6r1KML4v%2Fuploads%2FHgc5nb5ZphOigafM25dZ%2Fatm-saving-template-name.png?alt=media&#x26;token=a9289c23-c24e-42bc-9fa4-cd58564da2eb" alt=""><figcaption><p>Save your template</p></figcaption></figure> <figure><img src="https://993090024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI6t5LesvaGZE6r1KML4v%2Fuploads%2FlMTw401MWyKOHSsKStkv%2Fatm-saved-and-ready.png?alt=media&#x26;token=6bf43a3b-8c37-4484-b1c2-536320f4596d" alt=""><figcaption><p>Load your template into ChartTrader or SuperDom</p></figcaption></figure></div>

This ATM Strategy will now automatically submit:

* A Stop Loss order 10 ticks from the entry.
* A Profit Target order 20 ticks from the entry.

Once saved, the template becomes available in all order entry windows.

### Video Example 1 - Multiple Targets

In this video, you'll learn how to establish a multi-step rule with various stops and targets. This showcases how you can build more complex trade management logic for positions with multiple contracts.&#x20;

{% embed url="<https://www.youtube.com/watch?t=37s&v=7gHo-oFlbfg>" %}
NinjaTrader video tutorial on creating multiple stop and target ATM strategies
{% endembed %}

### **Video Example 2 - No Profit Target with Trailing Stop**

In this video, you'll learn how to establish a 1 step Trailing Stop with defined no profit target set. This technique allows your trade to run and utilize a trailing stop to lock in profits as the price moves in your favor.&#x20;

{% embed url="<https://www.youtube.com/watch?t=25s&v=IygD8bjtaxQ>" %}
Video tutorial from NinjaTrader - Configure an Automatic Trailing Stop
{% endembed %}

### Using ATM Strategy Templates with CrossTrade <a href="#using-atm-strategy-templates" id="using-atm-strategy-templates"></a>

This payload will trigger a simple market order for BUY or SELL actions that will use an ATM strategy template and remain in-force for the rest of the trading day. &#x20;

<pre><code>key=your-secret-key;
command=PLACE;
account=sim101;
instrument=NQ 12-25;
action=BUY;
qty=1;
order_type=MARKET;
tif=DAY;
flatten_first=true;
<strong>atm_strategy=your-atm-template;
</strong></code></pre>

{% hint style="warning" %}
Similar to the offsetting scenario when sending a Sell after a Buy, when using an ATM strategy, this ***will create orphaned Stops and Target orders*** as those are not canceled by default. You must send a CLOSEPOSITION or REVERSEPOSITION command before the next directional trade to avoid this.\
\
**The quantity you set inside of your CrossTrade alert will supersede your default ATM quantity**
{% endhint %}
