This n8n workflow lets your bot dynamically:
- Add new trading pairs based on Gainium screener criteria
- Auto-calculate TP (Take Profit) per deal based on recent candle data
- Edit the TP for new or stale deals to improve exit logic
How to use
- Create a multi-pair bot
- Set your default config (ASAP entry, default TP, etc.)
- Copy your Bot ID into the workflow
- Test the workflow manually or schedule it to run periodically
What it does
Screener-Based Pair Updates
- Uses the Gainium screener API to find pairs that match your criteria (e.g., volume, volatility)
- Aggregates results and replaces the botβs current pair list via the
change_bot_pairs
endpoint
Deal Management
- Pulls all open deals for the bot
- Filters:
- Deals that havenβt been modified yet
- Deals that have been open for over 24h (optional re-evaluation)
Candle Data Collection
For each filtered deal, it:
- Fetches recent OHLCV candle data from Bybit (1D, 4H, 1H)
- Sends it to an AI agent that:
- Evaluates price action
- Calculates an optimal TP
- Returns structured output
Edit Deal with New TP
- Applies the new TP using
update_dca_deal
via Gainium API
Optional Wait Time
You can increase the wait time between adding pairs and fetching deals to give the bot more time to place orders before deals are processed.
Download workflow
Screener_Trading_Agent.json (20.7 KB)