Operations > Advanced Trade Management (ATM) > ATM Strategy >

Tutorial: ATM Strategy Example #2

Print this Topic Previous pageReturn to chapter overviewNext page

playVideo

 

ATM Strategy Example

Following is an example of an ATM Strategy that will automatically submit 2 Stop Loss and Profit Target brackets once the originating entry order is filled. This ATM Strategy includes a Stop Strategy that will automatically adjust the Stop Loss orders using Auto Breakeven and Auto Trail strategies.

 

Advanced_Trade_Management_21

 

1. Set the order quantity to 2 contracts

2. From the ATM Strategy control list select <Custom>

3. Select "2 Targets"

4. Set "Order qty" fields to 1 contract each (that represents 1 contract for the first Stop Loss/Profit Target bracket and 1 for the 2nd)

5. Set the Stop Loss values to 5 ticks (you can set the 2nd Stop Loss to a wider value)

6. Set the first Profit Target to 8 ticks and the 2nd Profit Target to 12 ticks

 

Advanced_Trade_Management_22

 

7. Select <Custom> from the Stop Strategy control list under the first target.

 

Advanced_Trade_Management_23

 

A Stop Strategy parameters dialog window will appear. This is where you will define the automation strategies for automatic Stop Loss adjustment.

 

8. Set the Auto Breakeven "Profit trigger" value to 6 ticks. This will automatically adjust our Stop Loss order to breakeven once the ATM Strategy has 6 ticks in profit.

9. Set the Auto Trail "Profit trigger" to 8 ticks

10. Set the Auto Trail "Stop loss" to 4 ticks

11. Set the Auto Trail "Frequency" to 1 tick

 

The auto trail parameters will automatically start adjusting our Stop Loss order once we have 8 ticks in profit (9) to 4 ticks back (10) and adjust it for every 1 tick (11) in profit gain.

 

Advanced_Trade_Management_24

 

You can save the Stop Strategy as a template by pressing down on your right mouse button within the Stop Strategy parameters box and selecting the menu name "Manage Stop Strategy Templates..."

 

Advanced_Trade_Management_25

 

12. Enter the name "Basic Stop"

13. Press the "Save" button

 

Once you press the Save button, a template is created for this Stop Strategy and it will become available in all Stop Strategy control lists. Press the "OK" button on the Stop Strategy parameters dialog window to exit.

 

Advanced_Trade_Management_26

 

14. Select the Stop Strategy we just created (Basic Stop) in the 1st and 2nd Stop Strategy control lists. This sets the 1st and 2nd Stop Loss orders to the same Stop Strategy so that Stop Loss 1 and Stop Loss 2 will adjust in unison.

 

You can now save this ATM Strategy (Stop Strategies included) as a template by pressing down on your right mouse button within the background of the SuperDOM or Basic Entry windows or within the ATM Strategy parameters box of the FX Pro or Chart Trader windows, and selecting the menu name "Manage ATM Strategy Templates..."

 

Type in the Name "2 Target" and click the "Save" button.  We now have a 2 target strategy template that can be selected from the ATM Strategy control list at any time. Doing so will update all of the parameter fields automatically based on the information we have entered in this example.

 

You can now place an order which once filled will automatically trigger the ATM Strategy to submit the Stop Loss and Profit Target brackets. In the image below, an order was submitted and filled at 1461.25 as depicted by the brown colored cell.

 

Advanced_Trade_Management_27

 

15. The first Profit Target order was submitted at 1463.25 which is 8 ticks from our entry, the 2nd Profit Target was submitted at 1464.25 which is 12 ticks from our entry and finally, our 2 Stop Loss orders were submitted at 1460.00 which is 5 ticks from our entry. You can tell we have 2 orders at the Stop Loss level because the Size Marker has the "s" suffix indicating that we have multiple orders consolidated at the price 1460.00.

 

16. An active ATM Strategy named "* Active Strategy 8" is created and listed under the ATM Strategy control list. The significance of 8 is that we had 7 active ATM Strategies created before.

 

If under SuperDOM properties you have "ATM Strategy selection mode" set to "SelectActiveATMStrategyOnOrderSubmission", NinjaTrader will automatically set the ATM Strategy control list to the newly created ATM Strategy. The importance of this is if you place another order, any fills resulting from the order will be applied to the existing Stop Loss and Profit Target orders. As an example, if we were filled on an additional contract, our Stop Loss and Profit Target orders would automatically be modified from 1 contract to 2 contracts. Both Stop Loss and Profit Target orders are tied via OCO which means if one of the orders is filled, the other will automatically be cancelled. If the option in the first sentence was not checked, the ATM Strategy control list would be set to the original ATM Strategy template we created. Any subsequent orders would create an additional ATM Strategy that would submit another set of Stop Loss and Profit Target orders.