Rule builder quick start

We designed the Trality Rule Builder to let you turn your strategy ideas into a trading bot without the need to write a single line of Python code. Simply drag and drop strategies from a curated list of templates and link them with boolean logic.

Designing a trading bot with the Trality Rule Builder is a four-step process:

1. Create a new bot

name

chose a name for your bot

bot type

"Rule" sets up a template for the Trality Rule Builder

exchange

chose from the available exchanges to trade on

quoted asset

select the quoted asset to be traded against

2. Select base assets

You can currently select up to 10 assets with which to trade against your quoted asset.

Make sure that the base assets to be traded by your bot have enough volume on the respective exchange so that orders are can be executed properly.

3. Select trading strategy/strategies

Click on "add new" and select a strategy from the drop down. For a detailed description of available pre-defined strategies, visit indicators

Simply adding a strategy as a buy or sell strategy will take the default parameters as defined in indicators, opening the expert settings will alow you to adjust these accordingly. The following parameter can be depending on the respective strategy:

parameter

description

values

interval

candle size, ranging from 1 minute to 1 day

1m, 5m, 15m, 30m, 1h, 6h, 12, 1d

period

the number of candles, which the strategy calculation is based on

integer

input

the candle data, which the strategy calculation is based on

open, high, low, close, volume

strategy specific parameters

parameters depending on the strategy as explained in the relevant sub-section

keep signal

relevant only when trading on multiple intervals. Keeps a signal for multiple periods in order to stay valid

integer

You can select as many strategies as you like and use them as either "Buy" or "Sell" signals. They can be arranged according to boolean logic either individually or as groups. -you can drag and drop strategies onto each other to form a group -groups can either be of "and" or "any" logic, pertaining to the boolean logic within each group -for both, buy and sell strategies, you can select how many strategies need to apply at least in order for a signal to be produced -groups are considered as one strategy -each strategy or group can be forced to have to apply, for this the little lock symbol can be activated next to the strategy

Evaluation of strategies always happens inside - out, meaning first all and/any logics are solved, then the number of buy and sell logics.

If different strategies send mixed buy/sell strategies, the signal with the larger amount of confirming strategies is accounted for.

4. Set trading parameters

General settings

settings

description

values

Maximum open positions per coin

Maximum amount of positions a bot can open before it has to close positions first

integer

Maximum open orders per coin

Maximum amount of positions per coin which a bot can open before it has to close positions first

integer

Buy settings

settings

description

values

Buy amount

Exact size of buy orders

absolute value (integer) or relative value of portfolio size

Maximum buy amount

Maximum size of buy orders

absolute value (integer) or relative value of portfolio size

Minimum buy amount

Maximum size of buy orders

absolute value (integer) or relative value of portfolio size

Expiry Duration

Maximum duration a buy order is kept open before expiring if not filled

time in ms, s, m, h

Cooldown

Minimum duration during which no new position for the same asset is opened after an old position has been closed

time in ms, s, m, h

Sell settings

settings

description

values

Expiry Duration

Maximum duration a sell order is kept open before expiring if not filled

time in ms, s, m, h

Take profit

Profit at which a position is automatically closed once it is reached

Real number between 0 and 1

Stop loss

Loss at which a position is automatically closed once it is reached

Real number between 0 and -1