Gainium Logo

Global Variables let you define reusable values (text, integer, or float) that can be inserted in your crypto trading bot settings. Instead of updating each bot individually, you can make changes in one place and apply them across multiple bots instantly.

Supported Types

  • Text
  • Integer (numbers with decimals)
  • Float (numbers without decimals)

Note: Boolean (true/false) fields are not supported at this time.

How to Use Global Variables 

  1. Go to Global Variables from your dashboard.
  2. Create a new variable and choose its type (text, int, or float).
  3. When editing a bot, type / in any supported field to open the variable menu.
  4. Select your variable to insert it.

Note: Once inserted, the variable replaces the entire field. You can’t combine it with other values (e.g.,  name + "test" is not valid).

What Happens When a Variable is Changed?

  • All bots using it will reload to apply the new setting.
  • Only new deals will reflect the change.
  • Existing deals are not updated automatically and must be edited manually if needed.

Example: Using a Global Variable for Safety Orders

Let’s say you want all your bots to use the same number of safety orders—6, for example. Instead of setting this manually for each bot, create a global variable called safety_orders and set its value to 6.

image.png

Now, when editing any bot, go to the "DCA Orders" field, type /, and select safety_orders from the list. The field will now use that variable instead of a fixed number.

image.png

 

image.png

If later you decide to change the number to 8, just update the safety_orders variable. All bots using it will reload and automatically start using 8 safety orders in new deals.

Why Use Global Variables?

Global Variables are especially useful for things like trade sizes, number of safety orders, or custom thresholds. They save time, reduce the chance of making errors, and help keep your strategy consistent across bots.

Skyrocket your profits with the most advanced trading bots in the market

Gainium logo

Gainium - Empower Your Crypto Trading: Research, Deploy, Analyze | Product Hunt

Gainium Pte. Ltd.
68 Circular Rd. #02-01 Singapore (049422)

Community

All rights reserved. Copyright © 2025.

Gainium is a publisher of financial information, not an investment adviser. We do not provide personalized or individualized investment advice. Cryptocurrencies are volatile investments and carry significant risk including the risk of permanent and total loss. Past performance is not indicative of future results. Figures and charts are correct at the time of writing or as otherwise specified. Live-tested strategies are not recommendations. Consult your financial adviser before making financial decisions.