Settings
Strategy Lab hands you the whole engine rather than a preset with a few dials on the front. What opens a deal, how the orders are built underneath it, how much each order commits, where the target sits, and when to walk away, all of it is yours to set.
This page explains what each of those controls does, in the same order as the panel in TradingView.
How a deal runs
A deal opens with a base order. If price moves against it, the tester adds safety orders on the way down, each one usually larger than the last. Those fills drag the average entry down toward price, and since the target is measured from the average, the target comes down with it. The deal then closes on a bounce that never has to reach the price it opened at.
The money is the same either way. One entry spends it all at the top and then waits for price to come all the way back. Averaging down spends the same amount on the way down, usually with the biggest order last, so break even sits lower and a small bounce is enough to close in profit.
Charts on this page are examples drawn to show the idea, not real results.
The settings decide when those extra orders fire, how big they get, how many you are willing to take, and how far price has to come back before the deal closes.
Signal source
RSI settings
Base order signals
Safety order signals
Exit signals
Settings
This is the main group, and it is where the shape of the orders is decided. The rows below fall into three jobs: which direction the tester may trade, how big each order is, and how far apart they sit.
The same 2% step, measured both ways.
CE Adaptive
Candle Effect exclusiveInstead of a percentage you choose, the step distance comes from what the market has actually been doing. These five controls shape that reading.
Take profit
Three ways to close a deal in profit. Pick the mode first, then fill in the group that belongs to it. The other groups sit there doing nothing.
Take profit, Fixed
Take profit, CE
Candle Effect exclusiveTake profit, Signal Exit
An exit signal on its own does not care whether the deal is up or down. These two switches let you insist that it is up before the signal is allowed to act.
Stop loss
Date filter
Webhook
Visuals
None of these change a single trade. They decide what you can see while you are reading the chart, and turning things off is the usual cure for a backtest that has become unreadable.
Creating the alert in TradingView
Everything above shapes what the tester does. This last step is what carries those decisions out of TradingView and onto your exchange, through your AstraBit bot.
The tester writes the whole order message itself, so there is nothing to compose by hand. Your job is to create one alert and tell TradingView where to send it. You need a paid TradingView plan for this, since webhook alerts are not on the free tier.
Switch the webhook on
In the Webhook group above, turn on Webhook and paste your AstraBit bot ID into Secret. With the switch off the tester builds no message at all, and the alert you create next will arrive empty.
Open the alert dialog
With the chart in front of you, click the clock icon in the TradingView toolbar.
Set the condition to the tester
In Condition, choose Candle Effect – Strategy Lab from the list. Picking the strategy rather than the chart is what makes the alert fire on the tester's own orders.
Replace the message
Clear whatever TradingView has put in the Message box and type this, exactly as written:
This is the step people get wrong, and it fails quietly. The tester has already built the full order message and handed it to TradingView under that name. Anything else in this box gives you alerts that fire on time and orders that never reach your exchange.
Point it at your bot
Open the Notifications tab, tick Webhook URL, and paste the address AstraBit shows on the bot you want this strategy to drive.
Set the expiry and save
Give the alert an open-ended expiry so it keeps running, name it something you will recognise in a list of twenty, and save. From here the tester trades on its own.
Check it before you trust it
Watch the first order go all the way through before you walk away. The alert fires in TradingView, the message reaches AstraBit, the order appears on your exchange at the size you expected. Three places to look, and a problem in any one of them is silent until you check.
A wrong message field, a webhook pointed at the wrong bot, or a size you misread all look identical from the chart, which is to say they look like nothing happening.
Before you change anything
Three settings decide how much money a deal can ever ask for: the order sizes, the Volume Multiplier and Max SOs. Change any one of them and the worst case changes with it, usually by more than people expect. A 1.5 multiplier across five safety orders is not five times the base order, it is closer to eleven times.
Work that number out before you run anything live, and make sure you are happy holding it. A backtest that never filled the last order tells you nothing about the day it does.