Sky Trader User Manual
How to use every page. The prices and trades in the pictures are examples. Click a picture to make it larger.
Start here
Sky Trader is your own trading desk in the browser. It shows live charts of your stocks, sends your orders to Alpaca, and keeps your notes, alerts and results in one place. It is for one person: you.
The top bar
- Account button (coloured): the Alpaca account in use. Click it to switch. Every order goes to this account.
- Equity, Today, Realized today, Open P&L, Cash, Buying power: live numbers of the account in use.
- Green dot: prices are live. Yellow means connecting. Red means prices stopped; the text beside it says why.
- Clock: US Eastern time. All times in Sky Trader are US Eastern.
- Market window opens the market charts in a new window. Sign out ends your session.
The menu
| Page | What it is for |
|---|---|
| Board | Live charts and trading |
| Positions | What you hold and your open orders |
| Account | Balance, equity chart, activity history |
| Portfolio | Your list of stocks, groups, and which ones are live |
| Scanner | Market movers and your own scan list |
| Options | Option chain, option orders, option positions |
| Alerts | Messages when a price or indicator rule is met |
| Notes | News, reports, research and memos |
| Performance | Your realized results |
| Orders | Order and fill history |
| Safety | Limits and the kill switch |
| Log | Everything that happened |
| Accounts | Your Alpaca accounts |
| Settings | Prices, fast trading, storage |
Windows on several monitors
Open as many windows as you like and move them to other monitors. All windows share one price connection and update together.
Sign in and sign out
- Open Sky Trader in your browser.
- Type your user name and password. Press Sign in.
- Sky Trader sends a 6-digit code to your email. Type the code and press Continue.
- The code works for 5 minutes and for 5 tries.
- Send a new code sends another one (3 codes for one sign-in). The old code stops working.
- A code is asked at every sign-in.
- Press Sign out at the top right when you finish.
Accounts
An account in Sky Trader is one set of Alpaca keys. You can have several, for example a Paper account to practise and a Live account with real money. Each account has its own stocks, layouts, positions, history and Safety limits. Alerts and notes are shared.
Add an account
- In the Alpaca dashboard, make an API key. Copy the key and the secret.
- In Sky Trader open Accounts and press Add account.
- Choose the type: Paper or Live. The trading address fills in by itself.
- Type a name, paste the key and the secret, choose a colour. Press Save.
- The secret is stored encrypted. It is never shown again; only the last 4 letters of the key are shown.
- Test checks the keys again. Edit changes the name, colour or keys. Delete removes the account from Sky Trader; if it has orders or fills it is archived so the history stays. Nothing changes at Alpaca.
Switch the account
Click the coloured button at the top left and pick an account. All open windows change with it.
Board
The Board is the main screen. Each live stock has a tile.
Add, move, hide
- Add a stock: type the symbol at the top and press Add.
- Move: drag a tile by its top line and drop it on another tile.
- Resize: drag the bottom-right corner.
- − hides the tile to the tray at the top. Click it in the tray to bring it back. The stock stays live.
- × removes the stock from the Board and from your Portfolio list. Positions, orders, notes and alerts stay.
- ↗ opens the tile in its own window.
The chart
- The tile starts with a simple price line. Click the buttons under the name to show more: Candle, Volume, SMA 20, EMA 9, VWAP, Bollinger, RSI, MACD, Tape.
- The small box at the top right of the tile sets the time of one bar: 1m, 5m, 15m, 1h or Day.
- Drag the chart to move in time. Use the mouse wheel to zoom.
- Yellow line: your average cost. Green and red lines: your open orders. Small arrows: your fills. Orange dots: your notes.
Layouts
A layout is the place, size and chart choices of all tiles. Press Save as to keep one under a name, and pick it again from the Layout list. Each account has its own layouts.
Live stock limit
The free Alpaca data plan allows 30 live stocks. The Board shows how many you use. To free a place, untick Live for a stock on the Portfolio page.
Market window
Press Market window at the top. It shows ETFs that follow the market: SPY, DIA and QQQ for the S&P 500, the Dow and the Nasdaq 100, IWM for the Russell 2000, and TLT, IEF and SHY for Treasury bonds. These are ETF prices, not index points. Alpaca does not give index points, but the daily percent change is almost the same. The list is the same for all accounts.
Change the Market list
Press Edit at the top of the Market window.
- To add a fund, type its symbol and, if you want, a short name. Press Add. It is added at once.
- To sort, drag a row by ⋮⋮. Or click a row and press the up or down arrow key.
- To change the name under the symbol, type in the name box. Leave it empty to use the name from Alpaca. A name can have letters, numbers, spaces and & . - + (up to 30).
- To keep a fund in the tray, untick Show. Tick it again to bring the tile back.
- To remove a fund, press × on its row.
- Press Save. Cancel keeps the list as it was (a fund you added stays).
| Fund | Follows |
|---|---|
| GLD | Gold |
| USO | Oil |
| UUP | US dollar |
| XLK | Tech stocks |
| XLF | Banks |
| SMH | Chip makers |
Group windows
Give stocks a group on the Portfolio page. The arrow beside a group opens all live stocks of that group in one window.
Trading
Every order follows the same path.
Place an order
- On the tile, type the quantity, or press 1, 10 or 100 to set it.
- Choose the order type.
- Press Buy or Sell.
- Read the review. Press Confirm to send, or Cancel.
| Order type | What it does |
|---|---|
| Market | Buys or sells now at the best price. |
| Limit | Buys at your price or lower; sells at your price or higher. Can also work before and after market hours. |
| Stop | Becomes a market order when the price reaches your stop price. |
| Stop limit | Becomes a limit order when the price reaches your stop price. |
| Trailing stop | A stop that follows the price by a percent or a dollar amount. |
| Bracket | An entry order with a take-profit and a stop-loss. When one of the two fills, the other is cancelled. |
| OCO | A take-profit and a stop-loss for a position you already hold. One cancels the other. |
Day orders end at the close. GTC orders stay until they fill or you cancel them.
Trade from the chart
- Click a price on the chart. A small menu offers Buy limit, Sell limit, Buy stop, Sell stop and Alert at this price.
- Drag an order line up or down to change its price. Sky Trader shows a review before it changes the order.
- Press Cancel beside an order under the chart to cancel it.
Flatten
Flatten closes the whole position of that stock at market, after a review.
Time & Sales
Turn on Tape to see each trade as it happens: time, price and size.
Hotkeys
Turn them on in Settings, Fast trading. Click a tile to select it, then press:
| Key | Action on the selected tile |
|---|---|
| B | Buy with the tile's quantity and order type |
| S | Sell |
| F | Flatten |
| Esc | Cancel that stock's open orders |
Hotkeys do nothing while you type in a box.
One-click mode
Also in Settings, Fast trading. With it on, an order under the value you set goes to Alpaca without the review. Orders above the value, and orders with a warning, still show the review.
If Alpaca does not answer
Sky Trader tells you and never sends the order again by itself. The order may or may not be placed. Look at Positions and open orders first, then decide.
Positions
All positions and all open orders of the account in use, updated live.
- Flatten closes one position at market, after a review.
- Cancel cancels one order.
- Option positions show the contract name and the days left.
Account
- All accounts: every account Sky Trader can use, with combined equity and today's result.
- Balance: equity, cash, buying power, long and short value, and the margin numbers for a margin account.
- Equity: the chart for 1D, 1W, 1M, 3M, 1Y or All. On 1D the line grows during market hours.
- Positions: the same positions as on the Positions page.
Activity history
Everything Alpaca recorded for the account: fills, dividends, deposits and withdrawals, fees, interest, and option events. Choose the timeframe and the kind, or search. Export CSV saves the rows on the screen filter to a file for Excel.
Portfolio
Your list of stocks for the account in use.
- Add a stock: symbol, group (optional), Live or not.
- Group: type a name in the Group box of a row. Click a group button to see only that group.
- The arrow beside a group opens the group in its own window.
- Live: ticked stocks get live prices and a tile on the Board. Alerts work only for live stocks.
- Remove takes the stock off the list. Positions, orders, notes and alerts stay.
Scanner
The Scanner looks at the market once a minute while the page is open.
- Gainers, Losers, Most active: lists from Alpaca.
- My list: up to 100 stocks you choose. It does not use your live stock limit.
| Column | Meaning |
|---|---|
| Change | Price against yesterday's close |
| Gap | Today's open against yesterday's close |
| Volume x | Today's volume against yesterday's, for this time of day. 2x or more is shown in yellow. |
| Note | New high / New low: the day high or low moved since the last check. At day high / At day low: the price is there now. |
To Board makes the stock live and puts it on the Board. To Portfolio adds it to your list, not live.
Options
Buy and sell option contracts, alone or as a spread of up to 4 legs.
Read the chain
- Type the stock and press Show options.
- Choose the expiration date.
- Calls are on the left, puts on the right, the strike price in the middle.
- The line under a row marks the strike nearest to the stock price. Shaded cells are in the money.
- OI is open interest, Vol is today's volume, IV is implied volatility.
- A small blue number shows contracts you hold.
- Prices are read again every 15 seconds. Without the paid Alpaca data plan they are indicative (delayed).
Make an order
- Click an Ask price to buy that contract. Click a Bid price to sell it.
- For a spread, click more prices. Each click adds a leg.
- Set the quantity. Choose Limit or Market.
- For a limit, check the price. Use middle price fills in the middle of bid and ask. With more than one leg the price is the net price, and you choose Pay or Receive.
- Press Review order, read it, then Send order.
The review shows each leg, the cost, and the most you can lose and gain when all legs open and expire on the same day.
- Prices are per share. One contract is 100 shares, so a price of 2.33 is $233 for one contract.
- Option orders are for today only.
- Sky Trader works out by itself whether a leg opens or closes a position.
- Alpaca needs options level 2 to buy options and level 3 for spreads. Your level is shown under the symbol box.
Option positions
- Close puts the opposite leg in the ticket. Check the price and review.
- Exercise turns contracts you bought into shares at the strike price, now.
- Do not exercise tells Alpaca not to exercise the position at expiration.
Alerts
An alert tells you when something happens to a live stock. It shows a message in every open window and plays a sound. It never places an order.
Make an alert
- Press New alert.
- Type the stock and choose what to watch.
- Type the value if one is asked.
- Tick Every time for a repeating alert. Without it the alert fires once and turns off.
- Tick Also send an email if you want one. Press Save.
| Rule | Fires when |
|---|---|
| Price goes up to / down to | the price reaches your value |
| Moves from today's open / yesterday's close by | the price moved that many percent, up or down |
| Price crosses VWAP, SMA 20 or EMA 9 | the price crosses that line on the 1-minute chart |
| RSI 14 goes up to / down to | the 1-minute RSI reaches your value |
| 1-minute volume is this many times the usual | one minute trades that many times its usual volume |
- Quick way: click a price on a chart and choose Alert at this price.
- The switch in the first column turns an alert on or off.
- History lists every alert that fired.
- Turn on desktop messages lets the browser show the alert when the window is in the background.
Notes and chart drawing
Keep news, reports, research and memos. A note can belong to one or more stocks, or to the whole market.
Write a note
- Press New note.
- Type a title. Choose the type and the date.
- Type the stocks, pressing Enter after each. Leave it empty for a market note.
- Add tags, pressing Enter after each.
- Write the text. Use the picture button, or paste or drop a picture.
- Attach a file adds documents such as PDF or Excel files.
- Press Save.
- Filter the list by type, timeframe, stock or tag, or search the text.
- A note with a stock shows as an orange dot on that chart, on its date. The Notes button on a tile opens the notes of that stock.
- Today's market notes show in a strip at the top of the Board.
Draw on a chart
- Press Draw on a tile.
- Choose Line (one click at a price), Trend (two clicks) or Zone (click the top price, then the bottom price).
- Erase, then click a drawing, removes it.
- Press Done or Esc to stop drawing.
Drawings are saved for the stock and show in every window.
Performance
Your realized results for the account in use, worked out from your fills at Alpaca with the average-cost method.
- A trade is counted when a position goes back to zero.
- Win rate is winning trades out of all closed trades. Profit factor is total wins divided by total losses; above 1 means you made more than you lost.
- Profit and loss by time: by day, week or month.
- By stock: the result of each stock.
- Best trades and Worst trades: the ten largest of each.
Orders
Every order and fill Sky Trader saw for the account in use.
- Orders tab: filter by timeframe and status, or search. A refused order shows Alpaca's reason.
- Fills tab: each fill with its price and value.
- Export CSV saves the rows of the filter on the screen.
Safety and the kill switch
Limits that Sky Trader checks on the server before every order, also for one-click, hotkey and chart orders. Orders that only close or reduce a position are never blocked.
| Limit | What it does |
|---|---|
| Largest order value | A bigger stock order that opens or adds to a position is refused. |
| Daily loss limit | When today's loss reaches it (realized and open together), new positions are refused until the next trading day. Nothing is sold by itself. |
| Most option contracts in one order | Counts all legs. |
| Largest option premium paid in one order | The cost of an option order that you pay. |
Limits are for the account in use. Switch the account at the top to set another account's limits.
Kill switch
- Press Stop trading on this account.
- Tick the box first if you also want every position closed at market.
- Confirm.
- The top bar shows Trading stopped until you press Turn trading back on.
- Cancel all orders in all accounts cancels every open order in every account. Positions stay.
Log
Every order, fill, alert, sign-in, safety change, settings change and export, with the time and where it came from.
- Filter by timeframe and kind, or search.
- Click a line marked with … to read the details, for example the reason Alpaca gave.
- Export CSV saves the rows of the filter on the screen.
Settings
Most of these you set once.
| Card | What you set |
|---|---|
| Prices | Which account's keys bring the prices, the data feed (IEX is free; SIP needs the Alpaca $99 plan), and the live stock limit. |
| Fast trading | Hotkeys and one-click mode. |
| Storage | Saving every live trade (tick) to the database, days to keep them, and the largest file in a note. |
| Market window | The list is shown here; change it with Edit in the Market window. |
| Sign-in | Make a password hash and send a test email. |
| About | Version, database size and connection state. |
Change your password
- Press Make password hash and type the new password.
- Copy the hash that is shown.
- Put it in
application.cfgasuser.admin.passhashand restart the site.
Daily care
Backup
Run data\Backup.bat every day with Windows Task Scheduler. It makes a checked backup of the database and deletes backups older than 14 days. Set the server name and the folder at the top of the file once.
app.Settings.encryptkey from application.cfg in a safe place too. Without it the Alpaca keys in a restored database cannot be read, and you type the keys again.Tick storage
Tick storage is off unless you turn it on in Settings. Sky Trader deletes old ticks by itself once an hour. If you lower the days after much was stored, run data\PurgeTicks.bat once.
After an update
- Run the update script that came with it, once.
- Copy the new files over the site and rebuild.
- Close every Sky Trader window and open it again.
Start of the day
- Check the green dot at the top.
- Check the coloured account button.
- Read any expiration window before you close it.
- Look at Safety: are your limits what you want today?
Messages and what to do
| Message | What it means | What to do |
|---|---|---|
| No answer from Alpaca | The order was sent but no reply came. It may or may not be placed. | Look at Positions and open orders. Send again only if it is not there. |
| Alpaca refused the order | Alpaca said no. The reason is shown. Nothing was traded. | Fix the reason, for example buying power or price, and try again. |
| This review ran out of time / That review is too old | More than 90 seconds passed after the review. Nothing was sent. | Review the order again. |
| The account was changed. Reloading. | Another window switched the account. | Wait for the reload and check the account button. |
| Trading is stopped for … | The kill switch is on. | Turn trading back on in Safety. |
| … reached your daily loss limit | The daily loss limit blocks new positions. | Closing is still allowed. Change the limit in Safety only if you mean to. |
| The largest order value … (Safety) | The order is bigger than your limit. | Lower the quantity or change the limit in Safety. |
| The live limit of … stocks is reached | All live places are used. | Untick Live for another stock on the Portfolio page. |
| … is not live now | An alert was saved for a stock without live prices. | Tick Live for the stock on the Portfolio page. |
| Red dot at the top | Prices stopped. The text says why. | Check the internet, then the Alpaca keys of the data account in Settings. |
| Options that expire TODAY | A position expires today. | Close it before the market closes, or decide on exercise. |
| The note could not be saved. Take the letters '; or ;-- out … | The title, stocks or tags hold letters that are not accepted. | Remove them and save again. The note text itself is not limited. |
| The sign-in page opens by itself | Your session ended, or you signed out in another window. | Sign in again. |