Skip to main content

Trading Settings

The Trading Settings page lets you explore trading pairs across connected exchanges and manage settings for new and running pairs. You can preview the market on charts with key stats.

You can set up a new trading pair with a strategy in a few clicks. The settings page also lets you save strategy presets for reuse.

Info

A trading pair consists of two currencies that are traded against each other, for example, BTC/USDT. Strategy presets are saved configurations that can be quickly applied to new pairs.

Search New Pairs to Trade

Gunbot trading settings interface showing searchable list of trading pairs with market statistics

Select pairs from a searchable list, along with key stats for each market.

Preview Charts

Gunbot preview chart interface for analyzing potential trading pairs

You can check preview charts for any pair you're about to trade with Gunbot.

Strategy Configuration

Gunbot strategy configuration interface with real-time statistics overview

Configure trading strategies and review key stats in the overview on the right.

Custom Editor Templates

Gunbot custom editor template showing Quanta G-type strategy configuration

You can completely customize the strategy editor. The example shows the custom template for the Quanta G-type custom strategy.

How to Create Editor Templates

With custom editor templates, you can tailor the editor to how you configure Gunbot.

Use templates to configure custom strategies or any other buy/sell method. For example, you can hardcode settings you never change and show only the ones you adjust often.

Templates are saved in a file in the Gunbot root folder, called customStratEditor.json.

Config Format for Editor Templates

{
"Your strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures",
"exchangeBlacklist": [
"bybit",
"okex5"
],
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
},
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
},
"Another strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures",
"exchangeBlacklist": [
"bybit",
"okex5"
],
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
},
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
}
}

Config Format (Commented)

{
"Your strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures", // set the market type the strategy is for ("spot", "futures", "delivery", etc)
"exchangeBlacklist": [
"bybit",
"okex5"
], // strategy will not show on these exchanges. optional, omit or leave empty if not needed
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
}, // hardcoded parameters always get saved to strategy in config.js, settings here should not be user configurable. optional, omit if not needed
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": { // parameter name in config
"label": "Some label", // readable name in frontend, can be the same as parameter name
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting", // can be omitted
"inputType": "string" // creates a text field input
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range", // creates a slider input
"step": 0.01, // step size precision for slider and input field
"rangeLowHigh": [
1,
5
], // slider input boundaries
"rangeInput": [
0.01,
500
] // input field boundaries
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean" // creates a toggle input
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select", // creates a dropdown selection input
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
], // array of options to show in dropdown
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"separator": {}, //inserting a separater creates a new row
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"separator1": {}, // separator names in the same category need to be unique, and always start with 'separator'
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
}
}