sgcTrader

User Guide

Version 2026.12.0
2026-12-02
eSeGeCe, https://www.esegece.com
Copyright © 2026 eSeGeCe

1Introduction

sgcTrader is a trading terminal for crypto exchanges on Windows. It shows charts, an order book with a DOM ladder, recent trades, a watchlist, an order entry panel and your account, all in one dockable workspace.

sgcTrader is a free application for 64 bit Windows. It trades spot markets and linear perpetual futures. A built-in paper broker lets you try the terminal on live market data without an exchange account.

Venues

The broker ids of the Broker drop-down list of a broker profile are listed below. Each id has a venue adapter, and the paper broker uses the public market data of one of them. The paper broker itself is not a profile.

Broker idVenueTestnet or demo
binance, binance_spotBinance spotYes
binance_usdmBinance USD-M futuresYes
okxOKX, spot and swap of the unified accountYes, the OKX demo trading
bybitBybitYes
coinbaseCoinbase, Advanced Trade spot onlyNo
kucoinKuCoin, spot and USDT perpetuals of a Classic accountNo
krakenKraken SpotNo
kraken_futuresKraken Futures, PF_ linear perpetualsNo
gateGateYes
deribitDeribitYes
bitgetBitgetYes

Features

  • Charts with several intervals, four chart types, nine indicators and drawing tools.
  • Trading from the chart: place, drag to amend and cancel orders, and set take profit and stop loss from the position line.
  • Order book, depth chart and DOM ladder with your open orders.
  • Trades and watchlist panels.
  • Order entry with order types, time in force, post only, reduce only, leverage and margin mode.
  • Account panel with positions, open orders, order history, fills and balances.
  • Risk limits, confirmations, a double submit lock and a kill switch.
  • A command palette and configurable hotkeys.

System requirements

  • 64 bit Windows 10 or Windows 11.

Getting started

Read Installation, then the Quick Start. The source code is described in Source Code.

2Installation

sgcTrader runs on 64 bit Windows 10 and Windows 11. The application is the single executable sgcTrader.exe, version 2026.12.0, shown in the file properties of the executable. The setup and the application are signed by eSeGeCe.

Downloads

sgcTrader has two downloads. Both are signed by eSeGeCe. The source code is on GitHub.

DownloadWhat it is
https://download.esegece.com/sgcTrader_setup.exeThe installer, recommended. See Installing.
https://download.esegece.com/sgcTrader.zipA zip with sgcTrader.exe and EULA.txt.
sgcTrader-Help.pdfThis user guide, as a PDF.

Installing

Run sgcTrader_Setup.exe. The setup asks whether to install for the current user only or for all users. Installing for the current user is the default and needs no administrator rights. Installing for all users needs administrator rights.

Install forProgram folder
Current user (default)%LOCALAPPDATA%\Programs\eSeGeCe\sgcTrader
All usersC:\Program Files\eSeGeCe\sgcTrader

The setup adds a Start menu shortcut named sgcTrader. A desktop shortcut is an option that is not ticked by default. On the last page the setup offers to start sgcTrader. The setup installs no service and changes no firewall rule.

Uninstall

Uninstall sgcTrader from Settings, Apps. The uninstaller removes the program files and the shortcuts. It keeps your data in %LOCALAPPDATA%\sgcTrader (settings, logs, workspaces and caches), so a later install picks it up again.

Where sgcTrader keeps its data

sgcTrader keeps its data in the folder %LOCALAPPDATA%\sgcTrader. When that variable is not set, the folder is sgcTrader under the home folder of the user.

WhatWhere
Settings%LOCALAPPDATA%\sgcTrader\settings.json
Saved workspaces%LOCALAPPDATA%\sgcTrader\workspaces\<name>.json
Log files%LOCALAPPDATA%\sgcTrader\logs\sgcTrader.log
Crash reports and minidumps%LOCALAPPDATA%\sgcTrader\crash
Watchlistwatchlist.json in the data folder
API keysWindows Credential Manager, not a file

Removing the data

To remove the settings, workspaces and logs, delete the %LOCALAPPDATA%\sgcTrader folder. API keys live in the Windows Credential Manager, so remove them with the Remove button of the Brokers page in Settings before you delete the folder.

3Quick Start

This walk through uses the paper broker, so no exchange account or API key is needed.

1. Start sgcTrader

On the first start the workspace opens with the Classic preset: watchlist, chart, order book, trades, account and order entry. The paper broker uses the public market data of Binance by default. The setting paper.source picks another adapter, and an empty value turns the paper broker off.

2. Choose a symbol

Press Ctrl+K to open the command palette and type a symbol. You can also type a symbol such as ADA/USDT into the add box of the Watchlist and press Enter.

3. Open a chart

The Chart panel follows the symbol. Pick an interval and a chart type on its toolbar, and add an indicator with the fx button.

4. Place a paper order

In the Order entry panel pick Buy or Sell, an order type such as Limit, type the price and the amount, and send the order. You can also right click the chart plot for items such as "Buy limit @ price", or press Ctrl and click the plot for a limit order on the passive side. The Account panel then shows the order, the fill and the position.

When you are ready for a real venue, see Brokers and API Keys.

4Workspace

The main window is a docking workspace with a slim toolbar and a status bar. Drag a panel by its title to dock it, float it or group it with another one.

Presets

Four presets build the layout. Switch with Ctrl+1 to Ctrl+4, or with the command Workspace: <name> in the palette.

ShortcutPreset
Ctrl+1Classic
Ctrl+2Pro
Ctrl+3Scalper
Ctrl+4Futures

The panels are Chart, Chart 2 (in some presets), Order book, Trades, Watchlist, Order entry and Account.

Saved workspaces

Save workspace as... (Ctrl+Shift+S) saves the layout under a name of 1 to 40 letters, digits, spaces, hyphens or underscores. The file goes to the workspaces folder of the data folder. Reset layout (Ctrl+Shift+R) returns the workspace to the layout of its preset.

A panel can be linked to a colour: None, Red, Green, Blue or Yellow. Panels with the same colour follow the same broker and symbol. New panels start on the default link.

5Chart

Intervals and chart types

The toolbar offers the intervals 1m, 5m, 15m, 1h, 4h and 1D. The chart types are Candles, OHLC, Line and Heikin-Ashi, which the toolbar shows as HA (its hint reads "Chart type Heikin-Ashi"). The chart shows "No data" or "Loading" while a symbol has no candles yet.

Indicators

Click fx to open the Indicators dialog, pick an indicator, set its parameters and click Add. Defaults restores the usual parameters. A chart holds up to 8 indicators and 4 indicator panes, and a period is at most 500. Click the x of an indicator to remove it.

IndicatorParameters and defaults
SMA, EMA, WMAPeriod 20
BollingerPeriod 20, deviations 2 (0.1 to 10)
VWAPNone
RSIPeriod 14
MACDFast 12, Slow 26, Signal 9
StochasticPeriod 14, smoothing 3, signal 3
ATRPeriod 14

Drawings

The drawing tools on the toolbar are Cursor, HLine, Trend and Fib. Cursor selects and moves drawings, Del removes the selected one and Esc cancels. HLine is a horizontal line (click a price), Trend is a trend line (drag between two points) and Fib is a Fibonacci retracement (drag from the first to the second anchor). Drawings are saved per panel.

6Trading from the Chart

Place an order

Right click the chart plot and pick an item such as "Buy limit @ price" or the sell and stop variants for the price under the cursor. A Ctrl click places the limit order on the passive side. A confirmation dialog appears unless the order type is switched off in Settings, Trading, Confirm before sending.

Order lines

Every open order of the chart symbol is a horizontal line. Drag a line to amend the limit price, with the drop snapped to the tick, and the line shows an amending marker until the venue answers. Click the cancel box of the line to cancel the order, after the confirmation "Cancel the order?". The plot menu also offers Cancel order, Delete, Delete all and Move to last price.

Position, take profit and stop loss

An open position is drawn as a line at the entry price with its unrealized PnL. A dotted, locked line marks the liquidation price. Drag the position line to a price to place a reduce only take profit market or stop market order for the whole position. The confirmation reads "Place a ... for the whole position?". Such orders show as text like "TP 0.010 @ 61000.00 +10.00".

One-click trading

Settings, Trading has the switches One-click trading and Chart one click trading, both off by default. Turning one-click trading on shows the warning "Turn on one-click trading?", because an order is then sent without a confirmation.

7Order Book, Trades and Watchlist

Order book

The Order book panel has three views on its toolbar: Book (price levels), Depth (cumulative depth chart) and DOM (price ladder with your open orders). Group the price levels by 1, 2, 5, 10, 25, 50 or 100 ticks. Centre centres the ladder on the mid price, also with the Home key.

Trades

The Trades panel lists recent trades with the columns Time, Price and Size.

Watchlist

The Watchlist has the columns Symbol, Last, Chg, Vol and 24h, with a small sparkline in the 24h column. Type a symbol such as ADA/USDT into the add box and press Enter to add it. The list is saved in watchlist.json.

8Order Entry

ControlValues
SideBuy, Sell
Order typeMarket, Limit, Stop, Stop limit, Take profit, TP limit
TimeGTC, IOC, FOK, Post only
AmountIn the base asset, or in the quote asset with the Quote switch. The buttons 25%, 50%, 75% and 100% use a percent of the available balance.
Post only, Reduce onlySwitches below the amount
Leverage1x to 125x, applied to the symbol with Set after a confirmation (perpetual futures only)
Margin modeCross or Isolated (perpetual futures only)

A venue accepts only the order types its instrument supports. The panel shows an estimated fill ("Est. fill", or "No book yet" until the book is there) and a preview of the order. When the order cannot be sent, the preview says why. Orders pass the checks of Risk and Safety first.

The Order entry panel has no take profit or stop loss fields. Set take profit and stop loss from the position line of the chart, see Trading from the Chart. The order types Take profit and TP limit send a take profit order.

The commands Buy at ask and Sell at bid of the command palette use the size, time in force and reduce only setting of this panel, see Command Palette and Shortcuts.

The order size presets of Settings, Trading (10, 25, 50 and 100 percent by default) set the sizes of the percent presets.

9Account

The Account panel follows a broker and shows the KPI cards Equity, Unrealized PnL, Margin ratio and Funding <symbol> (the funding countdown). When the panel is too small, the values are shown in one line instead of the cards.

Below the cards are the tabs Positions, Open orders, Order history, Fills and Balances. A tab that holds rows shows their number in its title, for example Positions (2). Cancel all <symbol> cancels the open orders of the symbol. The title of the broker box reads "Broker <key> (change)", and a click on it picks another broker.

10Brokers and API Keys

Add a broker profile

Open Settings... (Ctrl+Shift+O) and select the Brokers page. Click Add... and fill in the dialog Add broker profile.

FieldMeaning
BrokerA drop-down list of the brokers sgcTrader can create: binance, binance_spot, binance_usdm, okx, coinbase, bybit, kucoin, kraken, gate, kraken_futures, deribit and bitget. An id of an older or hand edited settings file that is not in the list still loads and is shown. See Introduction for the venues.
ProfileA name for this account, for example main. 1 to 32 letters, digits, hyphens or underscores. A profile name is unique per broker.
Testnet or demoOn for the test network of the venue, off for the live account. Coinbase, KuCoin, Kraken and Kraken Futures have no test network, so a profile of those brokers with this switch on gets no broker.
API key and API secretType both, or leave both empty.
PassphraseOnly for brokers that ask for one.

The list on the Brokers page shows the columns Broker, Profile, Network (Testnet or demo, or Live) and API key. The key is shown masked. Edit... changes a profile or replaces its key, and Remove removes the profile and its key. Changes apply when you click OK.

Where the keys are stored

API keys are written to the Windows Credential Manager only. They are never written to the settings file, and the log masks the key headers of the venues.

Key permissions

Note. The Settings dialog warns: "Use API keys WITHOUT withdrawal permission: sgcTrader only reads and trades. Restrict a key to your IP address when the exchange offers it." The warning is a fixed text. sgcTrader does not check which permissions a key has, so make sure the key you create has no withdrawal permission.

11Command Palette and Shortcuts

Ctrl+K opens the command palette, where you search for a symbol or a command. Every action is a command with a shortcut you can change on the Hotkeys page of Settings.

ShortcutCommand
Ctrl+KCommand palette
Ctrl+1 to Ctrl+4Workspace: Classic, Pro, Scalper, Futures
Ctrl+Shift+SSave workspace as...
Ctrl+Shift+RReset layout
Ctrl+Shift+TToggle dark or light theme
Ctrl+Shift+NShow notifications
Ctrl+Shift+OSettings...
Ctrl+Shift+LLock trading

In the chart, Ctrl click places a limit order, Del removes a drawing and Home centres the order book ladder.

Trading commands

The commands Buy at ask, Sell at bid, Cancel all orders, Flatten position and Unlock trading have no default shortcut. Bind them on the Hotkeys page of Settings. Buy at ask, Sell at bid, Cancel all orders and Flatten position run only while the active broker is Live and trading is not locked.

CommandWhat it does
Buy at askSends a limit order at the best ask with the size, time in force and reduce only setting of the Order entry panel. It passes the same risk checks and confirmations as the Buy button of the panel.
Sell at bidSends a limit order at the best bid, in the same way.
Cancel all ordersCancels every open order of every symbol on the active broker, after the question "Cancel all orders?" with the buttons Yes and No.
Flatten positionCloses the whole position of the symbol of the Order entry panel with a reduce only market order, with the same checks as the Close button of the Positions tab. A spot symbol is refused with the message "A spot symbol has no position to flatten".
Unlock tradingAllows new orders again after the kill switch. It needs an active broker and asks first.

When a command cannot run, a notice with the title of the command gives the reason, for example "Open an order entry panel first".

Change a shortcut

On the Hotkeys page select a command, click the Shortcut box and press the new keys, then click Assign. Clear removes the shortcut, Default restores it and Reset all restores every shortcut. A shortcut without Ctrl or Alt does not work while you type in a text field.

12Risk and Safety

Limits

Settings, Risk checks every order before it is sent. A value of 0 turns a limit off. Values are in the quote currency of the symbol (USDT for BTCUSDT).

SettingMeaning
Max order valueLargest value of one order
Max position valueLargest position value
Confirm orders aboveOrders above this value ask for a confirmation
Max distance from marketLargest distance of the order price from the market price, in percent
Block a repeated orderThe same order is blocked again within this many milliseconds (double submit lock)

Confirmations

Settings, Trading, Confirm before sending has switches for Market orders, Limit orders, Stop orders, Cancel all orders and Flatten a position.

Kill switch

Trading locked (kill switch) on the Risk page, or the command Lock trading (Ctrl+Shift+L), cancels every order and blocks new orders. The app asks first with "Lock trading on <broker>?". The command Unlock trading asks "Unlock trading on <broker>?". Both commands need an active broker. Unlock trading has no shortcut. While trading is locked, the commands Buy at ask, Sell at bid, Cancel all orders and Flatten position do not run.

13Settings Reference

Open Settings with Ctrl+Shift+O. Changes apply with OK, Cancel discards them all. The pages are General, Brokers, Trading, Risk and Hotkeys.

General

ControlValuesKey
ThemeDark, Lightui.theme
Accent colour#RRGGBB, or empty for the Windows accentui.accent
Frame rate30 or 60ui.frameRate
DensityCompact, Comfortableui.density
Price coloursGreen and red, Blue and orange (colour-blind)ui.colorPreset

Brokers

The Broker field of a broker profile is a drop-down list of the brokers sgcTrader can create (binance, binance_spot, binance_usdm, okx, coinbase, bybit, kucoin, kraken, gate, kraken_futures, deribit, bitget). See Brokers and API Keys. Keys: brokers.count, brokers.p<n>.broker, .profile and .testnet.

Trading

ControlKey
Confirm before sending: Market orders, Limit orders, Stop orders, Cancel all orders, Flatten a positiontrading.confirm.market, .limit, .stop, .cancelAll, .flatten
One-click trading (off by default)trading.oneClick
Chart one click trading (off by default)trading.chartOneClick
Order size presets 1 to 4, percent of the available balance (10, 25, 50, 100)trading.sizePreset1 to 4

Risk

ControlKey
Max order valuerisk.maxOrderNotional
Max position valuerisk.maxPositionNotional
Confirm orders aboverisk.confirmAboveNotional
Max distance from marketrisk.maxPriceDeviationPct
Block a repeated orderrisk.doubleSubmitWindowMs
Trading locked (kill switch)risk.tradingLocked

Other keys

paper.source is the adapter whose public market data the paper broker uses (default binance, empty turns the paper broker off). Hotkeys are stored as hotkeys.<commandId>. The Hotkeys page lists the columns Command, Category, Shortcut and State, with the buttons Assign, Clear, Default and Reset all.

14Connection States and Troubleshooting

Connection states

The broker selector of the status bar shows the broker key with a badge for its state.

StateMeaning
StoppedThe broker is not started
ConnectingOpening the connections
AuthenticatingThe private channel signs in
SyncingReconciling the account state
LiveMarket data and account are up
DegradedSomething is wrong, see the reason

Reasons

While trading is blocked, the reason is one of these texts:

  • Stopped
  • No API key
  • Authentication failed (with the venue error)
  • Connecting account channel
  • Authenticating
  • Reconciling account
  • Reconcile failed (with the error)
  • Market data down
  • Market data degraded (with the cause)
  • Rate limited
  • Market data stale, when a quiet public connection delivers nothing for too long. The connection is closed and reconnects by itself.

Reconnects

sgcTrader reconnects on its own. The state returns to Live after fresh data arrives, and notices appear in the inbox (Ctrl+Shift+N).

Log file

The log is %LOCALAPPDATA%\sgcTrader\logs\sgcTrader.log. When it grows too large it rotates to sgcTrader.1.log, sgcTrader.2.log and so on. API key headers are masked.

Safe mode

Start sgcTrader.exe /safe to open with the Classic preset and the default window placement, without reading saved layouts.

Crashes

After an unhandled exception sgcTrader writes a minidump (sgcTrader-<yyyymmdd-hhnnss>.dmp) and a .txt summary to the crash folder of the data folder. When the previous run did not shut down cleanly, the log records it.

15Source Code

The source code of sgcTrader is published under the MIT License on GitHub: https://github.com/esegece-com/sgcTrader. The README of the repository explains how to build it.

To build sgcTrader from source you need the sgcWebSockets sources and the sgcUI sources, version 2026.12.0 or later, in addition to the sgcTrader sources. They are not part of the repository. sgcTrader is a Delphi 13 VCL application for Win64.