Configure a Signal Bot (Custom Signal)
Set up a Signal Bot for a Custom Signal
This guide will help you set up a Signal Bot that works with your own trading signals, allowing you to receive alerts and execute trades automatically based on your preferred signal sources.
Consider using a DaviddTech Strategy instead for a simpler setup process.
The following instructions apply only to TradingView Strategies. View instructions for DaviddTechStrategies and TradingView strategies.
๐น 1. Create a Signal Bot
Click Signal Bot in the left sidebar
Find the Create Signal Bot form on the right side
Under the Strategy Type menu, select Custom Signal
Click Next to proceed
โ๏ธ 2. Configure Your Bot
Under the General Settings tab:
Select your connected exchange from the dropdown (or click Add New Exchange)
Use the toggle to choose your Coin Pair Type:
Dynamic Pair
The trading pair is defined by the TradingView chart you're viewing. The bot will trade whatever pair is displayed on your chart.
Static Pair
This option specifies a particular coin pair to be traded, which can be selected under the Select Coin Pair dropdown beneath the toggle.
Click the button next to
{{strategy.order.contracts}}to access position settingsSelect your Position Type:
USDT: Trade with a specific USDT amount for each position
% Percentage of Wallet: Use a percentage of your available funds
Dynamic Position: Let your Custom Signal determine position size
Base Currency Value: Specify an amount in the base currency (e.g., 0.1 BTC when trading BTC/USDT)
Configure Leverage Settings:
Set your preferred leverage for long positions
Set your preferred leverage for short positions
Configure Risk Management Settings
Set Take Profit Percentage (optional)
Set Stop Loss Percentage (optional)
Configure Multiple Take Profits if desired
If your Custom signal already includes take profit or stop loss, consider whether you want to use them with these settings, as they may conflict.
Complete General Settings
Enter a memorable Bot Name
Verify that the Start Condition shows "Custom Signal"
Click Next to proceed to the Script Configuration menu
๐ Script Configuration
The Script Configuration menu provides you with the code snippets you'll need to copy into TradingView to configure your Signal Bot.
Click the button to select the right script according to your needs.
For Opening Positions:
Click Open Long to get the script for opening long positions
Click Open Short to get the script for opening short positions
For Closing Positions:
Click Close Long to get the script for closing long positions
Click Close Short to get the script for closing short positions
The Force Close option is used when a signal from a custom source should close an open position. For example, this is useful with strategies like EMA crossovers that generate specific exit signals.
๐ง 3. Configure Signal Bot in TradingView
After copying the script(s) do the following:
Go to TradingView and open your desired DaviddTech Strategy's settings (make sure the strategy is active on your chart, then click the Cog icon)
On the strategy's settings (under the Inputs Tab):

Ensure that the Optimiser Mode ๐ checkbox is Not checked
Scroll all the way down until you reach the LIVE TRADING (IMPORTANT) section.
Check the Live Trading checkbox and set a Starting Date and Time to when you began (or plan to) live trading with the strategy.
You may set the Starting Date to the current date and Time a few minutes into the future
Right below, under the USE SIMPLE BOT BY TRIGGER.TRADE? section, check Use Simple Bot
If desired, check the Use Safety TP and/or Use safety SL to enable your strategy's take profit/stop loss settings
Use Safety TP and Use safety SL won't work if your strategy uses a trailing stop loss.
Click the OK button under the form
๐ 4. Create TradingView Alert
Now that your Signal bot is set up within TradingView, set up an alert to notify you of any trade setups or place trades automatically on your exchange by following these steps:
On TradingView, click Add Alert to open your strategy's Alerts settings (You can do so via the triple-dot menu next to your strategy's name). This will open the Create Alert form.
Paste the script you copied from DaviddTech in step 3 into the Message field of the Create Alert form
Make sure the first dropdown under Condition is set to your strategy's name
Set the second dropdown to one of the following:
Order fills only to have orders placed without being alerted
alert() function calls only to get alerts but no orders placed
Order fills and alert() function calls to have both
Set an alert expiration date (or Open-ended for everlasting alerts)
Name your alert (preferably the same as your Signal Bot)
Click the Notifications tab
Check the Webhook URL Checkbox and paste the Webhook URL you copied in Step 3 into the text field.
Using the Webhook URL is only required to get strategy alerts in DaviddTech. Other options such as App and email notifications are also available
Click Create to finish setting up your Signal bot.
โ
5. Activate Your Bot
After configuring all settings, click the Activate button
Your new Signal Bot will appear in your My Signals list
You can now manage your bot, view trade logs, or make adjustments as needed
๐ Managing Your TradingView Signal Bot
Find your bot in the My Signals list
Click the three dots (โฎ) menu to:
Pause your bot temporarily
View Trade Logs to track performance
Delete your bot if needed
Last updated