CANDLE EFFECT
TRADING SYSTEMS
School / AstraBit
AstraBit

Connect Strategy Lab

Strategy Lab decides when to trade, on TradingView. AstraBit places those trades on your exchange. To link the two, you create a personal strategy bot on AstraBit, copy its secret into Strategy Lab, and set up one TradingView alert that sends every signal to AstraBit.

What you need

AstraBit
An account with your exchange connected. Getting Started walks through it.
Strategy Lab
On your chart, set up and backtested the way you want to trade it.
TradingView
A plan with webhook alerts. Which Plan You Need explains which ones have them.

Four steps

1

Create a personal strategy bot

On AstraBit, go to Trade on your own, then Personal Strategy Bot, and choose Standard, Basic or Advanced. This is the bot that will take your Strategy Lab signals.

2

Fill in the bot

1Bot Name
Any name you'll recognise, like "BTC Strategy".
2Entry Type
Dollar-cost Averaged Entry.
3Exchange and pair
Your connected exchange and the same coin Strategy Lab runs on.
4Equity Allocation
How much of your balance this bot is allowed to use.
5Leverage
The leverage for this bot.
6DCA Entries
One entry for every order your strategy can place. A strategy with a base order and one safety order (BO + SO1) needs two entries, and each extra safety order needs one more. Split the percentages the way Strategy Lab sizes its orders: with a $100 base order and a $200 safety order, that's 33% and 67%.

Take profit and stop loss are set in Strategy Lab, which sends the exit when it happens. If you also set them on the bot, use exactly the same values.

3

Copy the secret into Strategy Lab

Your bot comes with a secret: the code that tells AstraBit which bot a signal is for. It's shown between quotes. Copy only what's inside them, without the quotes.

In Strategy Lab's settings, open the Webhook group, tick Enable, and paste it into Secret.

4

Create the TradingView alert

With Strategy Lab on your chart, create a new alert and set it up like this:

Condition
Strategy Lab.
Message
Replace whatever is in the box with this, so each alert carries the order Strategy Lab just made:
{{strategy.order.alert_message}}
Webhook URL
Under Notifications, tick Webhook URL and paste:
https://signal-gateway.astrabit.io/public/signal
Name
Anything you'll recognise, then create the alert.

From now on, every order Strategy Lab makes on this chart goes to your AstraBit bot.

Common mistakes

Quotes copied
The secret is only what's between the quotes. With the quotes included, AstraBit won't recognise it.
Too few entries
Fewer DCA entries on the bot than orders in Strategy Lab, so the last safety orders have nowhere to go.
Two different exits
A take profit or stop loss on the bot that doesn't match the one in Strategy Lab.
Wrong chart
The alert made on a different coin or timeframe than the one you tested.

Start the first bot with a small allocation. Watch one full trade go through, from the first entry to the exit, and check the sizes are what you meant before you give it more.