Skip to main content

How to create and run a custom strategy

To create a custom strategy, first create a file for it and save it in the ./customStrategies folder. You can use the built-in code editor in the Gunbot interface, or any code editor of your choice. Once you've done this, follow these steps to run your strategy., you can use the built-in code editor for this.

  1. Write a custom strategy.

  2. Select "Custom" as your strategy when adding or modifying a pair.

  3. In the "Filename" field, choose your strategy file.

  4. The "Indicators" tab allows you to control how pre-calculated indicator data is generated. These indicators are accessible in your strategy, but you are not limited to using them exclusively.

tip

It's recommended to disable the global cancel orders option when running a custom strategy.