Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 896
» Latest member: cacuocgame188
» Forum threads: 45
» Forum posts: 114

Full Statistics

Online Users
There are currently 16 online users.
» 0 Member(s) | 16 Guest(s)

Latest Threads
Troubleshooting and Known...
Forum: Bugs and Problems
Last Post: admin
07-25-2021, 04:13 PM
» Replies: 4
» Views: 2,291
Closing a system
Forum: General Discussion
Last Post: admin
07-24-2021, 12:23 PM
» Replies: 1
» Views: 33
Support allocation method...
Forum: General Discussion
Last Post: Marcel
07-15-2021, 06:46 AM
» Replies: 2
» Views: 1,058
Delayed Signals
Forum: Documentation
Last Post: admin
06-17-2021, 03:01 PM
» Replies: 0
» Views: 311
tracking individual strat...
Forum: Feature Requests
Last Post: ivanf
06-09-2021, 09:47 PM
» Replies: 8
» Views: 2,040
Get last used Trade ID fr...
Forum: Feature Requests
Last Post: patelgopesh
06-01-2021, 06:46 AM
» Replies: 2
» Views: 202
Tips and Tricks (Miscella...
Forum: Documentation
Last Post: admin
05-25-2021, 11:03 AM
» Replies: 0
» Views: 229
Strategies
Forum: Documentation
Last Post: admin
05-21-2021, 09:34 AM
» Replies: 2
» Views: 1,960
Custom Stop and Target Or...
Forum: Documentation
Last Post: admin
05-12-2021, 03:00 PM
» Replies: 0
» Views: 248
Features Roadmap
Forum: Feature Requests
Last Post: EbertM
04-28-2021, 07:00 AM
» Replies: 2
» Views: 685

 
  Closing a system
Posted by: Marcel - 07-15-2021, 06:43 AM - Forum: General Discussion - Replies (1)

Is there a simple way, when you want to stop trading a particular system, to set it to turn off any new trades but still accept the closing trades?

Print this item

  Delayed Signals
Posted by: admin - 06-17-2021, 03:01 PM - Forum: Documentation - No Replies

Delayed Signals
Delayed Signals allow you to specify when you want a signal to be processed by APM.

Before reading ahead, make sure you have read the Stock Signals tutorial.

Formatting
A delayed signal is specified by writing AFTER <date> in the signal. The date is formatted as YYYYMMdd hh:mm:ss zzz where zzz is the timezone e.g. 20200108 15:30:00 EST. This is the exact same as the format for GTD (Good Til' Date) orders.

Here are some sample signals

LONG SPY AFTER 20210601 10:00:00 EST
CLOSE AAPL LMT 400 AFTER 20210601 13:00:00 EST
RSN IBM ID 100 AFTER 20210601 13:00:00 PST

Important Notes
  • Any signal can be delayed.
  • You can only have one delayed signal stored at time per ticker. If you place a second delayed signal for the same ticker, it will override the existing one.
  • To cancel a delayed signal, simply write AFTER 0 instead of a date. The Action in the signal doesn't matter. For example,
    LONG SPY AFTER 0
    will cancel an existing delayed signal.
  • Delayed signals can be placed in a strategy for a ticker even if the ticker is not owned by the strategy. At the time that the delayed signal triggers, the signal will be processed as usual.
  • Delayed signals that are not owned by a strategy will show up with the exposure ORPHAN or STR_{ID} in your portfolio tab. This is to indicate whether the ticker is currently orphaned or belongs to a strategy with the id {ID}. The current quantity is also displayed.
  • Delayed signals are highlighted in orange in your portfolio tab.
  • For CSV files the column name you need to use is AFTERDATE. Note that in this column you only need the date and not the keyword AFTER before the date.

Print this item

  Get last used Trade ID from API
Posted by: patelgopesh - 05-27-2021, 02:24 AM - Forum: Feature Requests - Replies (2)

Hi,

I am using Google Sheets to generate orders in csv file and I would like to keep track of the last used trade ID. Is it possible to get that through API in JSON or TEXT ? I can then import the last ID back to my Google Sheet and thus not have to bother with remembering the used IDs. The APM by the way shows that but would be nice to read it through API at the end of day.

Many thanks.

Print this item

  Tips and Tricks (Miscellaneous)
Posted by: admin - 05-25-2021, 11:03 AM - Forum: Documentation - No Replies

Tips and Tricks
This thread has several tips and tricks that may be useful to you. Some of these are listed elsewhere in the documentation as well.
Please feel free to suggest additions to this list by replying to this thread.

Interactive Brokers

Preload Contract Details
You can specify a list of tickers to preload contract details for at APM startup (connection to IB) so that your orders can be placed more efficiently (since sometimes IB provides contract details very slowly). You can place a file called cd_ticker_list.txt in the account level directory with a list of tickers (comma, new-line, or space separated tickers). Note that you need to specify the country of the ticker in the name using the following rules:

  • The format is <ticker>:<country>, for example BHP:AX where AX is the country code for Australia
  • Valid country codes are AX (Australia), US (USA), UK (UK), NS (India)
  • US tickers do not need a country code. You can use SPY and not SPY:US
  • To indicate a CFD, prefix the ticker with @ (e.g. @SPY)
  • This does not work for UK tickers that are not in GBP (or GBX) currency. We will add support for other currencies in the future if there is interest
  • Note that the formatting rules above correspond exactly to the formatting rules you see used in APM for tickers

Order Ref Field
Each order that is placed by APM in IB has an Order Ref field which is set as the ID of the strategy placing the order. This allows you to keep track of all your trades in each strategy through IB Flex reports. You need to specify "Include Audit Trail Fields" in your Flex Query configuration in order for the Order Ref field to be included in your reports. This solution was originally posted by a user in the following thread: https://aleratrading.com/forum/showthrea...601#pid601
[Image: ib_orderref.png]

Print this item

  Custom Stop and Target Orders
Posted by: admin - 05-12-2021, 03:00 PM - Forum: Documentation - No Replies

Custom Stop and Target Orders
As of version 3.3.0, we have added the ability to have APM manage custom Stop and Target orders. These are different from regular signals since APM will manage two orders at once for a given position alongside any regular orders.

Before reading ahead, make sure you have read the Stock Signals tutorial.

Order Types
To distinguish between the custom stop/target orders and regular STP/TGT orders, we use the names Exit Stop (E_STP) and Exit Target (E_TGT). These names (somewhat) intuitively imply that these stop and target prices will be used for exiting positions, essentially functioning as highly customizable bracket orders. It's important to note that E_STP and E_TGT orders are handled by the same system that is described in the Position Management system described in the Strategies documentation. The major difference is that you as a user can specify the STP and TGT prices instead of letting APM choose.

Signals Formats
There are two ways to specify to use custom stop/target orders: directly in signals for regular orders OR as separate signals.

Regular Signals

  • When you want to open (or modigy) a position with an order, you can specify a E_STP or E_TGT price in the signal.
    For example, all of the following are valid signals

    BTO SPY 500 SHARES MKT E_STP 200
    LONG SPY 500 SHARES LOC 300 E_TGT 600
    LONG SPY 500 SHARES LMT 300 E_STP 200 E_TGT 600

  • Once one of the above signals open a position, then E_STP and E_TGT prices will be used to create orders.
  • Note that the signal must be valid in order for the E_STP or E_TGT price to be processed

E_STP and E_TGT Signals
  • When we only want to update the E_STP and E_TGT price, we can use custom signals in the following format:
    [OrderType] [Ticker] [Price]

    For example,
    E_TGT SPY 600
    E_STP SPY 400

  • Note that these signals can only be processed if a position or order already exists for the ticker.

Cancelling Custom Stop/Target Orders
You can cancel a custom Stop and Target order by using a -1 in the price spot of an E_STP or E_TGT signal. For example,
E_TGT SPY -1
E_STP SPY -1
Note that you cannot set the E_STP/E_TGT price to -1 in a regular signal to cancel stop/target orders.

General  Notes
  • Note that the prices specified in the most recent regular signal for E_STP and E_TGT will be used. This means that if you specify a signal without an E_STP (or E_TGT) price, the existing E_STP (or TGT) price will be removed.
  • You can cancel these E_STP and E_TGT orders. If regular STP and TGT orders are enabled, then those will be placed once you cancel the E_STP or E_TGT order.
  • If you close a position, all E_STP and E_TGT orders are cancelled. Furthermore, if you cancel the order associated with an E_STP (or E_TGT) order (and there is no position), then the E_STP (or E_TGT) order will be cancelled
  • Conditional Orders (RSN,REL,RES, etc.) don't place E_STP or E_TGT immediately. The E_STP and E_TGT orders are only registered after the conditional order triggers. This also means that using a different E_STP or E_TGT value than the current one for something like a ReEnter Long (REL) signal will not affect your current E_STP or E_TGT price, until that REL signal is converted to a regular order later.

CSV Signal File Format
Please see the File Formats documentation for details.

Print this item

  trade metrics
Posted by: ivanf - 03-25-2021, 06:49 AM - Forum: Feature Requests - Replies (1)

Would it be possible to have a tab for each strat which shows key metrics such as win/loss % , drawdown, payoff ratio, expectancy etc ( kinda like what is provided in Amibroker as a system report)

Then the same metrics at account level ?

thanks

Print this item

  broker support
Posted by: ivanf - 03-25-2021, 06:43 AM - Forum: Feature Requests - Replies (1)

Hi Alex,

apart from IB I also use SAXO, would be nice if you could suuport them, they have an API but I have heard its pretty shitty ( exactly what shitty means I don't know) 

I think they use something called OpenAPI 

regards
Ivan

Print this item

  Features Roadmap
Posted by: admin - 03-24-2021, 09:46 AM - Forum: Feature Requests - Replies (2)

Features Roadmap
The following is a brief list of features we intend to add to APM. We don't provide a timeline for all of them since our priorities for features may change.

Features currently being developed

  • Custom Stop/Target orders, i.e bracket orders
  • Adding new crypto brokers (Kraken and Coinbase Pro)
Next major features
  • Account P&L + account level portfolio view (this is already done at the strategy level, but would be useful at an account level)
  • More order management functionality, such as orders that are placed after X time plus orders that close positions after X time
  • Futures
  • New stock and crypto brokers (undecided on which brokers)
  • P&L for crypto
Minor features
  • Trade some selected penny stocks
  • Add timezone to cron scheduling
  • More to be added...

Print this item

  Some comments and requests
Posted by: andycare - 03-16-2021, 03:39 AM - Forum: Feature Requests - Replies (1)

I have worked a while with APM now and I like it very much so far. It really solves a key problem to me. I have recognized several things I would like to address:

  • My account currency is EUR. It seems that this is a problem when using the Percent Strategy Allocation. Despite my Demo Account is loaded with 1.000.000 USD which is ~850.000 EUR, a 100 Percent Strategy Allocation shows only $10.14
  • Despite the PnL is showed correctly in the Portfolio Tab for the open positions, the Daily PnL and the Missed PnL in the PnL-Tab is empty. Also, the Adjustment of the Strategy Allocation USD Adj. does not work. It does not adjust anything (maybe because it does not recognize the PnL). I have the feeling, that this is also related to the account currency in EUR.
  • I run APM on my virtual private server. If I connect to the server with my mobile device to fix something, the window of APM is resized to fit to the lower resolution of my mobile device. As resizing is forbidden for the APM window, I am not able to restore the window settings and I can see only half of the items. Even after a fresh restart of APM while being connected to the server with my mobile device, the window shrinks immediately. Only after connecting with a computer which has full resolution, APM opens correctly without being resized. Therefore, it is not possible to maintain the functionality with my mobile device, which is important, when real money gets involved.
  • It seems not to be possible to run a rotational short strategy. I can run a Screener with BUY actions only, a Dual Screener with BUY and SELL actions, but no screener with SELL actions only, which is something, I would like to use.
I'm looking forward to you comments.
Andreas

Print this item

  automatically generate MOC orders for day trades
Posted by: ivanf - 03-13-2021, 06:14 AM - Forum: Feature Requests - Replies (2)

HI Alex,

would it be posible to include a feature whereby any executed trades can be automatically exited with a MOC order ?
I'm looking at a day trading strategy which generates a bunch of limit orders prior to market open , for those that get filled during a session a MOC order is used to close them out. So currently the MOC generation is manual. ( but I'm asleep !)

part 2 of this request would be to incorporate a time setting where any unfilled orders are cancelled . For example I don't want a limit order to get filled 20 mins before close as it will be exited at close with a MOC
Not sure if your On-Trigger-expire feature takes car of this one ?

Do you think these 2 features are possible ?

thanks
Ivan

Print this item