The AutoExec module allows users to create Automated Execution strategies. This guide focuses on our first available strategy: the Grid. Continue reading for detailed instructions on how to use the module.
Grid strategy
Grid strategy (also known as the "Ladder strategy") automates the placement of buy and sell orders at fixed intervals or price depth within a predefined range based on market volatility.
How it works
The Grid places original buy and/or sell orders on predetermined price levels of a preset depth.
The Grid operates with only one instrument at a time. Pausing the strategy will cancel all placed and working orders.
Where to find it
You can find the AutoExec module in the left-side toolbar of the desktop platform.
AutoExec – Left-Side Toolbar
You can also find it in the upper toolbar. Just click on Trading and choose AutoExec in the drop-down list.
AutoExec – Upper Toolbar
Parameters
The AutoExec module includes a list of your strategies and their parameters: Status, Name, Account, Type, Instrument, CCY, Orders, Filled Orders, Unrealised P&L, and more.
AutoExec – Parameters
Click the Gear icon to add or remove parameters and select or deselect options from the drop-down list.
In the upper toolbar, you can also see your account number, action icons and such parameters as Unrealised P&L, Realised P&L, Position, Orders, and Filled orders.
AutoExec – Parameters
Parameter | Description |
Status Icon | This is the status of your strategy. It can be the following:
active
close
create
edit
edit (disabled)
filter all
filter finished |
Status | The status of your strategy:
|
Name | The name of your strategy |
Account | Your account number |
Type | Currently, only the Grid strategy type is available. |
Instrument Status | This is the schedule status.
active
unknown
delayed feed
expired
offline
schedule break |
Instrument | Your instrument |
CCY | Currency |
Unrealised P&L | Expected Profit and Loss |
Realised P&L | Delivered Profit and Loss |
Position | The quantity of assets pertaining to the strategy |
Orders | All your orders |
Filled Orders | Executed orders |
How to use it
How to create a new strategy
1. Click the “Plus” button in the upper toolbar to create a new strategy.
Upper Toolbar – Create Strategy
If the main module is empty, select Create Strategy.
Empty Module – Create Strategy
2. Drag the desired instrument into the window.
Alternatively, open the Instruments or the Watchlists module, right-click on an instrument, and select “Add Strategy” from the context menu.
AutoExec – Open via Instruments
3. Fill in the fields in the Settings tab and click Save. The example below is for the Grid strategy.
Parameter | Description |
Name | The name of your strategy. By default, it contains the last numbers of the trading account and the instrument name |
Type | Grid by default |
Direction | Buy or Sell |
Price Range | The lowest and highest acceptable prices. It is configurable in the currency of the selected instrument.
Regardless of the chosen direction, the first input of the range is always for the lowest price. |
Depth | The number of active orders in each direction |
Quantity | The Order size for each level of a preset depth |
Step Size | The distance between price levels of a preset depth for placing original orders |
Take Profit | Distance at which the Opposite order will be placed, if the Original one is filled |
AutoExec – Settings
4. Before launching, you will see your potential orders in the Market Depth module and the Strategy Chart.
AutoExec – Market Depth
AutoExec – Chart Button
AutoExec – Chart
5. Click Run to launch the strategy.
Alternatively, run a saved strategy from the module’s main window. Choose it from the list of strategies. Its current status is Paused. Click the Run button in the upper toolbar.
AutoExec – Launching Strategy
The strategy places original Buy or Sell orders on various price levels of a preset depth. When the original order is executed, a new one is placed on the opposite side at a predefined price.
Here’s an example of a Buy-side Grid strategy!
If an Original Buy order was filled at 100, and Take Profit was set to 10, the Robot will place a Sell order at 110 (Original + Take Profit = 100 + 10 = 110).
How to track
Strategy performance
You can track how your active strategy performs using these parameters:
Unrealised P&L
Realised P&L
Position
Fill Ratio*
Active orders
Filled orders
Placed orders
*Fill Ratio is the ratio of successfully filled orders to all orders ever placed by a strategy. If it is low, the strategy may not work as intended.
AutoExec – Tracking Performance
Instruments
You can also track the selected instrument's status, current market price, daily change, and 52-week change.
How to view your strategy history
After running the strategy, you will see its history, including active and inactive orders, on the Activity tab of the strategy window.
AutoExec – Activity
How to edit your strategy
There are three ways to edit your strategy:
1. Choose the strategy from the list and click the Pencil button.
AutoExec – Edit Option
2. Right-click on the strategy and choose Edit.
AutoExec – Edit Option
3. Double-click on the strategy.
All changes take effect after confirmation.
Please note that only paused strategies can be edited.
How to delete your strategy
To delete your strategy, right-click on it in the module’s main menu and choose Delete in the context menu.
AutoExec – Delete Option
Alternatively, you can delete the strategy in the strategy window by clicking Delete in the upper right corner.
AutoExec – Delete Option
Note! When you attempt to delete a strategy, a pop-up window offers two options: close all strategy-related assets or cancel the action and retain the assets in your portfolio.
AutoExec – Confirm Deletion
Use the AutoExec module to run the Grid strategy and optimise your trading activity.