Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strategies
#1
Strategies
You can configure the strategies you want to run in the strategy settings, which is the default page that opens once you've created an account.
Your strategies are listed as tabs at the top of the window, and each individual strategy has 3 tabs: settings, logs and portfolio.
This guide will go over the various sections of the settings tab and then explain what the portfolio and log tabs do.
Before you get started, remember that every time you change a setting, you should click Save, otherwise your settings won't be updated.
Also note that most of the information in this guide can be found directly on APM by hovering over the text boxes.

[Image: apm_strategysettings.png]

Strategy
This section is used to configure the where your strategy will get its signals from. Choose a signal provider type from the ones listed and fill out the fields.
There are guides to using the individual signals and screeners that explain the fields in detail.

External Program
The purpose of using external programs is to have the ability to run other software to create signals for APM to process.
The guide here goes in detail over how to do this.

Scheduler
The scheduler section allows you to schedule your strategy. Refer to the cron guide to learn how to fill in schedule fields.
There is also a 'play' button to the right of the schedule, which we will call the run button. It will run the strategy immediately instead of waiting for the schedule to trigger, but it will only be enabled when the account is connected and the strategy is not already running.
You also have the option to disable the scheduler for the strategy by unchecking the checkbox beside Enable Scheduler. Everything else will remain the same, except that the strategy won't run.

Position Sizing
This section allows you to allocate how much money you would like to allocate to each strategy and each trade. Refer to the signals guide for details on Unit types.

Strategy Allocation
  • Choose how much to money to allocate to this strategy, either as total dollar value or a percent of your portfolio
  • If you are connected to your broker, then the dollar value associated with your strategy will appear to the left of the text box
Position Sizing Type
There are three types of position sizing types that determine how large position will be
  • None
    • Use the position size provided by the signal provider if it is provided. Otherwise use the Custom Lot Size
  • Custom
    • Override the position provided by the signal provider and use the Custom Lot Size instead
    • We only override if the Unit type is DOLLARS or SHARES because the other types do not need to be overridden
  • Scaling
    • Scale the position size from the signal provider by a given factor that you specify in the Scaling Factor field.
    • We only scale if the Unit type is DOLLARS or SHARES
Custom Lot Size
Allows you to specify the position you want to take if it is not specified by the signal provider or you choose the Custom position sizing type.
The value you specify will be treated as percent of your Strategy Allocation or a dollar amount. Note that if you are connected to your broker, then the current dollar value of the custom lot size will be displayed to the left of the text box.

Very Important!!
Your Strategy Allocation value does not prevent orders from being placed if they will make the strategy exceed its allocation.
This means if you allocate $100,000 to your strategy, and set the Custom Lot Size to 10% (which is $10,000), and the signal provider gives 20 signals, then the strategy will have a total dollar value of $200,000. You should choose your Custom Lot Size based on how many positions you think you will take. You also have the ability to limit the number of positions your strategy will use with the Max Number of Positions field under the Strategy section (where your signal provider settings are). This way if your Custom Lot Size is 10%, you can set the Max Number of Positions to 10 and put a hard limit on the number of positions you take.

Allow Odd Lots
Check this if you want to allow orders/positions of any size to be placed/held.
Otherwise, all orders will be rounded such that the final position held will be a multiple of 100 shares.

Order Types
This section is used to specify the kind of orders you want placed in the market. Refer to the signals guide for details on Order Types.

Default Market Order Type
If no order type is specified by the signal provider, then the order will be a market order. Here you can specify whether you would like to place a Market (MKT) or Market On Close (MOC) order in this case.
This also applies to screeners as well since they use market orders.

Override Market Order Type
This option allows you to override the market order type specified by the signal provider with the Default Market Order Type. This will only override MKT and MOC orders, not LMT or LOC.

Protect Market Orders
This allows the user to 'protect' their market orders by converting them to limit orders as follows:
  • Buy orders will have a limit price equal to the current bid price PLUS the Protection Offset (as a percent)
  • Sell orders will have a limit price equal to the current ask price MINUS the Protection Offset (as a percent)
This prevents buy/sell orders from executing too far away from the current bid/ask price.
This only works for Market orders and not Market on Close orders.

Note that this is broker dependent and the order may not literally be converted to a limit order. For example, in Interactive Brokers, we use SNAP PRIM orders

Override Limit Order Type
This option allows you to override the limit order type specified by the signal provider with your own (keeping the same limit price).

Default Time in Force
If a time in force is not specified by the signal provider, then you can specify a default value. Note that MOC and LOC orders are always going to have DAY time in force.
The time in force specified here will be applied to all screeners as well, but we recommend you use DAY orders.

Email
Email settings related to your strategy

Send Email After Strategy Runs
Check this to send an email after you strategy runs. It will contain data relevant to this specific strategy.
If this check box is disabled, then either your email has not been set up or is disabled in your Account Settings.

Position Management
This section allows you do automatically manage stop loss and target orders for your current positions.

Stop Loss Order Type
Allows you to place stop loss orders with the Stop Loss Percent

Trailing
  • A trailing stop loss order will trail by the Stop Loss Percent
  • An update of the percentage amount will trigger an order update as soon as you save the strategy
Stop
  • A regular stop loss order will be placed away from the current price by the Stop Loss Percent
  • An update of the Stop Loss Percent will not trigger any update on existing orders. It will be used only for all newly placed orders.
A change from regular stop to trailing (or from trailing to stop) will cancel all existing stop loss orders and generate new ones based on the current price.

Generate Target Orders
Allows you to place target profit orders with the Target Profit Percentage.
Note that updating the Target Profit Percentage will not update any existing orders, similar to the stop loss orders.

It is important to note that for both Stop Loss and Target Profit orders, the amount of shares will adjust so the position will be closed if all other regular orders that shrink that position were to be executed at once.
This means if we had a 100 shares of AAPL plus an order to sell 30 shares of AAPL, and we enabled both stop and target orders, we would end up with 3 orders in the market, one to sell 30 shares of AAPL, a stop loss to sell 70, and a target profit to sell 70. Since APM continuously monitors all positions, if the order to sell 30 shares of AAPL gets canceled for any reason at a later time, the quantities for both the stop and target orders will be adjusted to 100 shares automatically by APM.
  

Order Limits
This section allows you put limits on the number of shares, stock price, or total dollar value (shares x price) of an order.

Minimums
The Min fields specify that an order that does not CLOSE positions will be ignored if it does not meet the min criteria (the exception to this is Min Price, which only applies to non-shrinking orders)
The reason we do not limit close orders is that we need to be able to close positions even if they have a small number of shares.

Maximums
The Max fields specify that an order that does not SHRINK positions will be ignored if it does not meet the criteria.
This is slightly different than Min because we don't apply the limits to close orders and orders that shrink positions.
Why? Because we want you to be able to shrink positions that are very large without having to close them (think about going from long 1000 shares to 100 shares).
We do, however, want the Min conditions to apply to 'shrinking' orders because you may not want to buy/sell one share. For example, processing a signal LONG AAPL everyday may change the number of shares you hold by 1-2 everyday. You can prevent this behavior by setting Min Shares to maybe 10. This feature is not useful for Min Price, so it behaves the same way as the Max fields.

Order Preview and Skip Orders
APM allows you preview the orders that would be placed in the market by clicking the Order Preview button on the bottom left of the settings page.
This feature allows you to semi-automate your system by having the ability to process your signals automatically, review them, and only then place them in the market.
You will notice that in the order preview window, there is a checkbox beside each order that allows you skip the associated ticker or not. Once you click Update Skip Orders List at the bottom of the order preview window, the tickers associated with the orders you selected will be stored in the Skip Orders text box on the bottom right of the strategy page.
Now whenever your strategy runs (for real), it will skip the orders for the tickers in Skip Orders. You can also manually edit skip orders when the strategy is not running.

[Image: apm_orderpreview.png]

Log
The log tab mainly logs signals as they are being processed and serves as a way to check that your strategy is running correctly.
Any issues that will cause a signal (or order) to not be processed will appear here. If you notice that some signals have not been processed, check the log to find the reason for having unprocessed signals.

Portfolio
The portfolio tab stores a table of the positions you own and any active orders for the strategy. 
You can sort by a specific column by clicking on the column's header. 
You can remove a ticker from the strategy by clicking the Remove button on the right. This will not sell the position, it will simply remove it from the strategy so that another strategy can take it.

Signal Processing
A ticker can only belong to one strategy at a time. When a strategy processes a signal for a ticker, it needs to check that the ticker does not already belong to a different strategy. If it does belong to a different strategy, then the signal is ignored.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)