Run a live trading session using an existing open-source strategy and follow the progress over the charts.

Running a live trading session is very similar to running a backtesting session. The two main operational differences are:

  • Live sessions—this includes paper trading and forward testing sessions—require all of the trading system’s dependencies to be up to date and running. In this context, dependencies are the bots that provide information to the trading system for strategies to make decisions. In the case of Weak Hands Buster, this means that all Masters bots and Sparta’s EMA must be running and up to date.

  • An exchange account key must be set up to log into your account at the corresponding exchange.

Start Here

Set Up Your Exchange Account Key

1. Go to the crypto ecosystem hierarchy and expand it.

Click to learn how to find a hierarchy

In brief: To find a hierarchy, access the design space map with a right-click of the mouse, and left-click on your desired destination.

The image illustrates points 1 and 2 below.

1. Access the design space map.

Right click anywhere on the design space to access the design space map.

2. Left-click on your desired destination.

That should take you to the exact point you clicked on the map.

For your information, the design space is organized over a square perimeter around the workspace node, and each hierarchy is located on one of the cardinal directions. Hierarchies feature an ever-present white ring. The ring hints the direction in which a hierarchy is located.

Hierarchy Cardinal Direction Direction Keyboard Shortcut (Windows only)
Sparta Data Mine North Ctrl + Alt + S (S for Sparta)
BRR trading System North East Ctrl + Alt + W (W for Weak Hands Buster)
WHB Trading System East Ctrl + Alt + B (B for Bull Run Rider)
Super Scripts South East Ctrl + Alt + Z (Z for, well…)
Network South Ctrl + Alt + N (N for Network)
Crypto Ecosystem South West Ctrl + Alt + E (E for Ecosystem)
Charting System West Ctrl + Alt + C (C for Charting System)
Masters Data Mine North West Ctrl + Alt + M (M for Masters)

The image illustrates points 1 to 5 below.

2. Find the Tested crypto exchanges node on the right-hand side.

3. Find the Binance crypto exchange node.

4. Find the exchange account key node under exchange accountsuser accountuser keys.

5. Select Configure Key on the menu and carefully enter your API Key and Key Secret as instructed on the message featured on the configuration bubble. Make sure you don’t leave any character foreign to your keys between the double quote marks—only the exact sequence of characters in the key should go there.

"codeName": "Paste your exchange API name or label here",
"secret": "Paste your exchange API secret key here. To keep you exchange keys safe, never share data structures you may download from the system, as downloads contain all information in the data structure, including personal information such as exchange keys. Use the share option on the menu instead. The share option strips sensitive information and outputs a file that is safe for sharing."

Enter your keys carefully.

Start Data Mining

1. Go to the network hierarchy and find the Masters Binance BTC/USDT task manager under Network Node → Data Mining → Binance.

2. Select Run All Tasks on the menu.

3. Expand the Sparta Binance BTC/USDT task manager next to it and start the EMA task.

4. Wait until all indicators are at 100%.

Run the Live Trading Task and Session

1. Find the production environment node.

The image illustrates points 1 to 5 below.

2. Find the Fwd & Live Sessions Binance BTC/USDT task manager under the Binance exchange tasks node.

3. Find the Live Trading WHB task.

4. Find the Live Trading WHB live trading session and its parameters.

5. Go to the base asset parameter and select Configure Base Asset on the menu.

Base asset configuration.

6. Decide if the default setting for the initialBalance is correct and change it if you wish.

"initialBalance": 0.001,
"minimumBalance": 0.0001,
"maximumBalance": 0.1

Click to learn more about base assets

In the context of trading sessions, the base asset is the asset in the pair on which capital stands when out of a trade. In other words, it is the asset you wish to accumulate.

The base asset must reference an exchange account asset under exchange accountsuser account of the corresponding crypto exchange in the Crypto Ecosystem hierarchy.

The exchange account asset referenced must be one of the assets in the pair of the specific market and the specific crypto exchange that the trading session is associated with.

Adding a Base Asset Node

To add a parameter that may be missing, select Add Missing Params on the parameters node menu.

Configuring the Base Asset

Select Configure Base Asset on the menu to access the configuration.

"initialBalance": 0.001,
"minimumBalance": 0.0001,
"maximumBalance": 0.1
  • initialBalance is the amount of capital you wish to allocate to the trading system.

  • minimumBalance is the threshold of accummulated losses that switches off the session; when your overall balance (balanceAssetA + balanceAssetB) drops to this value, all trading stops; think of the minimumBalance as a general safety switch.

  • maximumBalance is a similar concept as with the minimumBalance but on the high side of the initialBalance.

7. Click Run on the Live Trading WHB task menu.

8. Click Run on the Live Trading WHB session menu.

Monitor the Live Session on the Charts

Live trading sessions feature the same visualization capabilities as backtesting sessions. Make sure you use the Live Trading layer manager instead of the Backtesting layer manager.

Click to learn more about live trading sessions

A live trading session is a trading mode by which the trading bot instance reads a live market data feed, applies the rules as defined in the associated trading system, places the corresponding orders at the associated exchange, and stores the defined data products.

A live trading session node must reference a trading system to gain access to the trading logic to be applied during the session. Other considerations framing the session come from the set of parameters attached to it.

Adding a Live Session Requirements Node

To add a live trading session, select Add Live Trading Session on the trading process instance node menu. When a session is added, it is created with the full set of parameters.

Configuring the Live Session Requirements

Select Configure Session on the menu to access the configuration.

"folderName": "Session-Name"
  • folderName allows you to set a significant name to the folder in which the data products—and logs—generated by the session are stored. If left blank, the system names the folders with the session id. This may be handy when you intend to consult the raw data generated by the session, as, otherwise, the folder would be hard to identify.