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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 413
» Latest member: Muktabanu330
» Forum threads: 32
» Forum posts: 45

Full Statistics

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

Latest Threads
Paper Trading Licenses
Forum: News
Last Post: Muktabanu330
6 hours ago
» Replies: 1
» Views: 1,247
FX and Crypto Trading
Forum: Documentation
Last Post: admin
08-28-2020, 01:36 PM
» Replies: 0
» Views: 55
PowerShell CLI for the Al...
Forum: Tools and Plugins
Last Post: admin
08-26-2020, 10:14 PM
» Replies: 0
» Views: 60
Alera Demo with Systemati...
Forum: News
Last Post: admin
08-06-2020, 06:52 PM
» Replies: 0
» Views: 134
ReSet and ReEnter Signals...
Forum: Documentation
Last Post: admin
07-14-2020, 08:45 PM
» Replies: 0
» Views: 206
tracking individual strat...
Forum: Feature Requests
Last Post: admin
07-10-2020, 08:08 PM
» Replies: 1
» Views: 126
too easy to blow away a p...
Forum: Feature Requests
Last Post: admin
07-08-2020, 06:08 PM
» Replies: 1
» Views: 160
Support allocation method...
Forum: General Discussion
Last Post: admin
06-30-2020, 05:34 PM
» Replies: 1
» Views: 202
support for CFD
Forum: Feature Requests
Last Post: admin
06-29-2020, 07:52 PM
» Replies: 1
» Views: 129
LIT orders
Forum: Feature Requests
Last Post: admin
06-29-2020, 07:51 PM
» Replies: 1
» Views: 121

  FX and Crypto Trading
Posted by: admin - 08-28-2020, 01:36 PM - Forum: Documentation - No Replies

FX and Crypto Trading
This guide explains how to trade FX and Crypto with APM. We will refer to both FX and Crypto trading as Currency Trading from here on out.
Available with APM version 3.0.0+

You should be familiar with APM before reading this guide.

How Currency Pairs are Represented
Our goal was to make Currency trading as similar to stock trading as possible, so that you can enjoy all the same features as with stocks. The main idea here is that for an Currency trading strategy, you choose a base currency to trade in, where any currency you trade will be paired with the base currency. For example, you might choose USD as the base currency for your strategy and trade CAD, GBP, and EUR on that strategy. This means you would be trading CAD-USD, GBP-USD, and EUR-USD pairs. Note that some exchanges/brokers use a different convention and call this the "quote" currency, while calling the left currency in the pair the "base" currency.

You should also note that even though your broker might only support the CAD-USD pair (in that order), APM allows you trade both CAD-USD and USD-CAD by automatically converting to the pair supported by your broker. This means that when you view your portfolio for a strategy, you will see all the pairs in the same direction (i.e. XXX-USD when USD is the base currency).

Also note that when you select a base currency for a strategy, that currency can no longer be traded by any other strategy.

Currency Signals
Behavior is very similar to stock signals. Your signals must only contain the non-base pair. i.e., if your base currency is USD, and you want to trade CAD-USD, then the ticker in your signal must be CAD (not CAD-USD).

Also, the unit types are slightly different. Instead of DOLLARS/$ and SHARES, you should use PRIMARY and the currency name itself, respectively. The other unit types remain the same.

# instead of BTO USD 10000 SHARES DAY                       

# instead of BTO USD 500 $   
# other examples
BTO BTC 5 BTC LMT 9000 GTC    # bitcion

Quantity and Price Precision
Since it's possible to purchase fractional quantities with currencies, each currency trading pair has its own unique min tick size designated by the broker. Since the pairs we are trading are fixed, e.g. we can BTC-USD (and not USD-BTC), there is a precision specified on the quantity of BTC (8 decimal places) and a precision specified on price in USD (2 decimal places). You can view both the quantity and price precision for each trading pair in the currency info tab in your account settings (when you are connected to your broker).

Min Currency Quantities for Positions
In Currency trading, it is often not possible to completely close your position in a currency (i.e. it's hard to make your position exactly 0). However, when you close your position, APM will consider your position neutral if the final balance is small enough. For Crypto trading, this threshold is when your position is less than $1 USD. For FX trading in IB, this threshold is when your position is less than $50 USD.

Note that sometimes in IB, a close order may not be able to shrink a position past this $50 threshold. This is rare, but when it does happen, you will have to enter another CLOSE or close the position manually in order to free up the ticker from the strategy.

Interactive Brokers
  • You can use the same IB gateway as for stock trading, just make sure the client IDs are different in APM if you want to trade both stocks and FX at the same time. By default stock trading has client ID 0 and FX has client ID 1.
  • Base currencies: USD, AUD, EUR, GBP, CAD

Binance and Binance US
  • Only non-margin trading as of now
  • STPLMT and LIT orders are converted to LMT orders if the target price is already met. Otherwise, Binance rejects these orders if we leave them as STPLMT/LIT
  • Alera STP and TGT orders cannot both be in the market at the same time because of margin restrictions. To resolve this, APM will swap between STP and TGT orders depending on which is closer to being executed.
  • No fee for cancelling orders, so we can get around any potential problems caused by the above points by internally managing orders
  • Base currencies: USD (only Binance US), EUR (only Binance), USDT, BTC

Print this item

  PowerShell CLI for the Alera API
Posted by: admin - 08-26-2020, 10:14 PM - Forum: Tools and Plugins - No Replies

PowerShell CLI
You can download a PowerShell script from here to connect to the Alera API. You will need to run

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
in PowerShell to give permissions to ps1 files to run.

You will want to make sure you set the port and strategy id to match the strategy you want to connect to through the API. You also want to make sure to enable the API in APM (in the account settings). If it doesn't work, restart APM and ensure the API is enabled.

This script was built in conjunction with Systematic Investors Group. You can see a demo of the script at https://www.youtube.com/watch?v=ZH3D7duJABo (starting at 33:00).

Print this item

  Alera Demo with Systematic Investors Group
Posted by: admin - 08-06-2020, 06:52 PM - Forum: News - No Replies

Thank you to Dave from Systematic Investors Group for hosting us last Thursday (July 30) on his webinar!
Here we explained how you can use the Alera Portfolio Manager (APM) to do anything and demoed several use cases.

Print this item

  ReSet and ReEnter Signals (Conditional Signals - REL/RES/RSN)
Posted by: admin - 07-14-2020, 08:45 PM - Forum: Documentation - No Replies

ReSet and ReEnter Signals
These signals allow users to automatically place orders that will enter and exit positions given certain conditions.

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

ReSet Signals
The idea behind these types of signals is that you can preemptively specify the type of close order you want for a position. This is very useful for positions that you want to automatically close at the end of the day. For example, in the morning you can place a BTO LMT order and then a RSN MOC order to automatically close all your positions at the end of the day (if they were opened).

ReSet to Neutral (RSN)

  • Signal to close a long position as soon it opens
  • If the current position is long, this signal will become a CLOSE order immediately
  • Requires a signal ID to be processed
  • An existing RSN order can be cancelled by sending a RSN order with quantity 0 (MUST specify 0 SHARES; something like RSN SPY ID 200 won't cancel the order)
The following will place a CLOSE AAPL MOC DAY order if the initial AAPL position opens

ReEnter Signals
The idea behind these types of signals is that you can preemptively place an order to re-enter the market once the original position in a stock is closed. This may be useful if you want to maintain a long-term position in a stock, but you think it will go down. Hence, you can put a CLOSE LMT order to close the position and a REL LMT order to re-enter the position at lower price.

ReEnter Long (REL)
  • Signal to re-enter a long position as soon as it is closed
  • If the current position is not long, this signal will be ignored
  • Requires a signal ID to be processed
  • An existing REL order can be cancelled by sending a REL order with quantity 0 (MUST specify 0 SHARES; something like REL SPY ID 200 won't cancel the order)
ReEnter Short (RES)
  • Signal to re-enter a short position as soon as it is closed
  • If the current position is not short, this signal will be ignored
  • Requires a signal ID to be processed
  • An existing RES order can be cancelled by sending a RES order with quantity 0 (MUST specify 0 SHARES; something like RES SPY ID 200 won't cancel the order)
Suppose we are currently long AAPL. Then placing the order
will place an order BTO AAPL LMT 350 when our position in AAPL is closed.

Conditional Order Expiration Time
Since it may be desirable to have REL/RES/RSN orders automatically cancelled after sometime, we have added a Conditional Orders section that allows you to do this in the Strategy Settings.

Note that when you specify a Time In Force (TIF) in a Conditional Signal, that TIF is for the order that will be placed, not the Conditional Signal itself. That means if you place
then IF the limit order is placed, its TIF will be DAY. The Conditional Signal itself is not cancelled unless you specify a cancellation time.

The expiration time format is simply hh:mm:ss zzz where zzz is the timezone, e.g. 15:30:00 EST

  • The signals you place with RSN/REL/RES actions work exactly the same as regular signals. That means that all parameters (like price, order type, TIF) will be stored and passed onto the signal that may eventually be placed as an order.

Print this item

  tracking individual strat trades
Posted by: ivanf - 07-09-2020, 07:59 PM - Forum: Feature Requests - Replies (1)

Hi ,

is it possible with IB with submit some sort of tag or order ref which could contain the strat name ?
I'm looking for ways to easily identify individual trades from statements  so I can monitor ongoing performance of strats 


Print this item

  too easy to blow away a portfolio position
Posted by: ivanf - 06-30-2020, 10:03 PM - Forum: Feature Requests - Replies (1)


by accident I just hit the "X" which removed a symbol from my portfolio.

There should be a secondary challenge such as " do you really want to do this ?"

There should also be a way of reverting or restoring a symbol / position .

With multiple stategies it is very difficult to currently reconcile symbols against the account & strategy  so if you accidently remove a symbol it may not get picked up for quite a while.

Needs to be more protection in place

thanks !

Print this item

  Support allocation method in order for IB Master Account
Posted by: sgarytong - 06-30-2020, 04:42 AM - Forum: General Discussion - Replies (1)

For IB Master Account, it support place order in allocation method/Account Profiles. Do existing Alera portfolio manager support this type of order?

Print this item

  support for CFD
Posted by: ivanf - 06-29-2020, 06:30 AM - Forum: Feature Requests - Replies (1)

Here in Australia we have access to CFD's via the IB platform .

I would like to see this instrument supported in APM.   Orders are placed using the underlying symbol however they are of type CFD rather than STK.

One possible issue could  be that the symbol IB use in its reporting ( and maybe API) has the suffix "n" to signify its a CFD 

eg   IBM  underlying   IBMn is CFD 

so when placing an order we use IBM CFD  but the API might return IBMn as the executed symbol.  Not sure on this as I don't have much knowledge of the API but I do see the suffix used in their flex reports 

CFD's are used to overcome margin restrictions and provide leverage greater than REG-T so many people use them

Print this item

  LIT orders
Posted by: ivanf - 06-29-2020, 06:22 AM - Forum: Feature Requests - Replies (1)

I would like to see support for Limit if Touched orders ( LIT) 

This  especially important for IB non margin accounts so users can queue  more orders than available slots in the account. ( which is a real problem with using LIMIT orders)

Here is Australia most retail investors do not have access to IB margin due to govt restrictions placed on IB

Print this item

  support for CFD
Posted by: ivanf - 06-26-2020, 08:10 AM - Forum: General Discussion - No Replies

HI, I trade CFD's with IB, does Alera support CFD's as an instrument ?

Print this item