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 Board: one tile for each live stock, with its chart and its Buy and Sell buttons.
The Board: one tile for each live stock, with its chart and its Buy and Sell buttons.

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

PageWhat it is for
BoardLive charts and trading
PositionsWhat you hold and your open orders
AccountBalance, equity chart, activity history
PortfolioYour list of stocks, groups, and which ones are live
ScannerMarket movers and your own scan list
OptionsOption chain, option orders, option positions
AlertsMessages when a price or indicator rule is met
NotesNews, reports, research and memos
PerformanceYour realized results
OrdersOrder and fill history
SafetyLimits and the kill switch
LogEverything that happened
AccountsYour Alpaca accounts
SettingsPrices, 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.

Monitor 1: Boardall your live stocks Monitor 2: pop-out chartsone stock or one group each Monitor 3: Market windowSPY, DIA, QQQ, bonds
NoteEvery table has a search box and Prev / Next buttons. Type a few letters to find a row.

Sign in and sign out

  1. Open Sky Trader in your browser.
  2. Type your user name and password. Press Sign in.
  3. Sky Trader sends a 6-digit code to your email. Type the code and press Continue.
Step 1: user name and password.
Step 1: user name and password.
Step 2: the code from your email.
Step 2: the code from your email.
  • 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.
Take careIf you get a sign-in code that you did not ask for, someone knows your password. Change the password.

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.

The Accounts page.
The Accounts page.

Add an account

  1. In the Alpaca dashboard, make an API key. Copy the key and the secret.
  2. In Sky Trader open Accounts and press Add account.
  3. Choose the type: Paper or Live. The trading address fills in by itself.
  4. Type a name, paste the key and the secret, choose a colour. Press Save.
Add account. Sky Trader tests the keys at Alpaca before it saves.
Add account. Sky Trader tests the keys at Alpaca before it saves.
  • 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.

The account list at the top left.
The account list at the top left.
Take careLook at the coloured button before you trade. A Live account uses real money. Give Live a strong colour such as red so you see it at once.

Board

The Board is the main screen. Each live stock has a tile.

One tile.
One 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.

The Market window. Put it on another monitor.
The Market window. Put it on another monitor.

Change the Market list

Press Edit at the top of the Market window.

  1. To add a fund, type its symbol and, if you want, a short name. Press Add. It is added at once.
  2. To sort, drag a row by ⋮⋮. Or click a row and press the up or down arrow key.
  3. 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).
  4. To keep a fund in the tray, untick Show. Tick it again to bring the tile back.
  5. To remove a fund, press × on its row.
  6. Press Save. Cancel keeps the list as it was (a fund you added stays).
The Edit window of the Market list.
The Edit window of the Market list.
NoteA fund in the tray still gets live prices and counts toward the live stock limit. To free a place, remove it. The order and Show are part of the Market layout, so a saved layout you load brings back its own order.
FundFollows
GLDGold
USOOil
UUPUS dollar
XLKTech stocks
XLFBanks
SMHChip 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.

1. YouBuy / Sell on a tile 2. Sky Trader checksSafety limits, price,buying power 3. ReviewYou press Confirm 4. Alpacatakes the order 5. Fillshown at once Blocked: a message tells you why. Nothing is sent. No answer from Alpaca?Sky Trader never sends again.

Place an order

  1. On the tile, type the quantity, or press 1, 10 or 100 to set it.
  2. Choose the order type.
  3. Press Buy or Sell.
  4. Read the review. Press Confirm to send, or Cancel.
The order form. This one is a bracket order.
The order form. This one is a bracket order.
The review. Nothing is sent before you confirm.
The review. Nothing is sent before you confirm.
Order typeWhat it does
MarketBuys or sells now at the best price.
LimitBuys at your price or lower; sells at your price or higher. Can also work before and after market hours.
StopBecomes a market order when the price reaches your stop price.
Stop limitBecomes a limit order when the price reaches your stop price.
Trailing stopA stop that follows the price by a percent or a dollar amount.
BracketAn entry order with a take-profit and a stop-loss. When one of the two fills, the other is cancelled.
OCOA 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.
Click the chart at a price to open this menu.
Click the chart at a price to open this menu.

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.

Tape on.
Tape on.

Hotkeys

Turn them on in Settings, Fast trading. Click a tile to select it, then press:

KeyAction on the selected tile
BBuy with the tile's quantity and order type
SSell
FFlatten
EscCancel 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.

Take careOne-click mode and hotkeys send real orders on the account in use. Keep them off on a Live account until you are sure.

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.

Positions and open orders.
Positions and open orders.
  • Flatten closes one position at market, after a review.
  • Cancel cancels one order.
  • Option positions show the contract name and the days left.

Account

The Account page.
The Account page.
  • 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.

Activity history.
Activity history.
NoteSky Trader copies new activity from Alpaca after each fill and every 3 minutes. Fees and dividends can come a day later. Check Alpaca now asks at once.

Portfolio

Your list of stocks for the account in use.

The Portfolio page.
The Portfolio page.
  • 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.

Top gainers.
Top gainers.
  • Gainers, Losers, Most active: lists from Alpaca.
  • My list: up to 100 stocks you choose. It does not use your live stock limit.
My list.
My list.
ColumnMeaning
ChangePrice against yesterday's close
GapToday's open against yesterday's close
Volume xToday's volume against yesterday's, for this time of day. 2x or more is shown in yellow.
NoteNew 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.

NoteThe lists from Alpaca may need a paid Alpaca data plan. If so, the page shows Alpaca's message and My list still works.

Options

Buy and sell option contracts, alone or as a spread of up to 4 legs.

The option chain and the order ticket.
The option chain and the order ticket.

Read the chain

  1. Type the stock and press Show options.
  2. 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

  1. Click an Ask price to buy that contract. Click a Bid price to sell it.
  2. For a spread, click more prices. Each click adds a leg.
  3. Set the quantity. Choose Limit or Market.
  4. 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.
  5. Press Review order, read it, then Send order.
The review of a call spread.
The review of a call spread.

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.

$0stock price at expiration Strike you buy (190)Strike you sell (195) Most you can lose: what you paid ($233) Most you can gain: $500 - $233 = $267 break even
  • 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

Option positions with the days left.
Option positions with the days left.
  • 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.
Take careAlpaca exercises a contract by itself at expiration when it is in the money by $0.01 or more. Sky Trader shows a window when a position expires today or tomorrow, and a flag stays in the top bar. Close the position before the market closes if you do not want the shares. A Do not exercise can only be taken back by Alpaca support.
NoteExercise and Do not exercise are refused by Alpaca between the market close and midnight.

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.

The Alerts page.
The Alerts page.

Make an alert

  1. Press New alert.
  2. Type the stock and choose what to watch.
  3. Type the value if one is asked.
  4. Tick Every time for a repeating alert. Without it the alert fires once and turns off.
  5. Tick Also send an email if you want one. Press Save.
New alert.
New alert.
RuleFires when
Price goes up to / down tothe price reaches your value
Moves from today's open / yesterday's close bythe price moved that many percent, up or down
Price crosses VWAP, SMA 20 or EMA 9the price crosses that line on the 1-minute chart
RSI 14 goes up to / down tothe 1-minute RSI reaches your value
1-minute volume is this many times the usualone 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.
NoteAlerts work only while Sky Trader is running and the stock is Live. A repeating alert waits at least 1 minute between messages.

Notes and chart drawing

Keep news, reports, research and memos. A note can belong to one or more stocks, or to the whole market.

The Notes list.
The Notes list.

Write a note

  1. Press New note.
  2. Type a title. Choose the type and the date.
  3. Type the stocks, pressing Enter after each. Leave it empty for a market note.
  4. Add tags, pressing Enter after each.
  5. Write the text. Use the picture button, or paste or drop a picture.
  6. Attach a file adds documents such as PDF or Excel files.
  7. Press Save.
The note editor.
The note editor.
  • 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

A line, a trend line and a zone.
A line, a trend line and a zone.
  1. Press Draw on a tile.
  2. Choose Line (one click at a price), Trend (two clicks) or Zone (click the top price, then the bottom price).
  3. Erase, then click a drawing, removes it.
  4. 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.

The Performance page.
The Performance page.
  • 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.
NoteOpen positions are not counted until they close. An option that expired, or was exercised or assigned, is closed at $0 on that day; the shares you get are a new stock position at the strike price.

Orders

Every order and fill Sky Trader saw for the account in use.

The Orders page.
The Orders page.
  • 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.
NoteOrders made while Sky Trader was not running are not on this page. They are in the Account activity history.

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.

The Safety page.
The Safety page.
LimitWhat it does
Largest order valueA bigger stock order that opens or adds to a position is refused.
Daily loss limitWhen 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 orderCounts all legs.
Largest option premium paid in one orderThe 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

Stop tradingon this account Every open order is cancelled If you ticked the box:every position is closed at market New positions are refused Still allowedclosing positions, cancelling orders
  1. Press Stop trading on this account.
  2. Tick the box first if you also want every position closed at market.
  3. Confirm.
Stop and flatten asks first.
Stop and flatten asks first.
  • 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.
Take careThe kill switch stops Sky Trader from opening positions. It does not stop orders you place in the Alpaca dashboard or another program.

Log

Every order, fill, alert, sign-in, safety change, settings change and export, with the time and where it came from.

The Log.
The Log.
  • 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.

The Settings page.
The Settings page.
CardWhat you set
PricesWhich account's keys bring the prices, the data feed (IEX is free; SIP needs the Alpaca $99 plan), and the live stock limit.
Fast tradingHotkeys and one-click mode.
StorageSaving every live trade (tick) to the database, days to keep them, and the largest file in a note.
Market windowThe list is shown here; change it with Edit in the Market window.
Sign-inMake a password hash and send a test email.
AboutVersion, database size and connection state.
Fast trading.
Fast trading.
Storage.
Storage.

Change your password

  1. Press Make password hash and type the new password.
  2. Copy the hash that is shown.
  3. Put it in application.cfg as user.admin.passhash and restart the site.
NoteOne price connection serves all accounts and all windows. If you buy the Alpaca $99 data plan, choose SIP and raise the live stock limit.

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.

Take careKeep the value of 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

  1. Run the update script that came with it, once.
  2. Copy the new files over the site and rebuild.
  3. 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

MessageWhat it meansWhat to do
No answer from AlpacaThe 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 orderAlpaca 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 oldMore 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 limitThe 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 reachedAll live places are used.Untick Live for another stock on the Portfolio page.
… is not live nowAn alert was saved for a stock without live prices.Tick Live for the stock on the Portfolio page.
Red dot at the topPrices stopped. The text says why.Check the internet, then the Alpaca keys of the data account in Settings.
Options that expire TODAYA 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 itselfYour session ended, or you signed out in another window.Sign in again.
NoteThe Log keeps the full text of every refusal and error. Click the line to read it.