A volatility-adjusted TradingView strategy routed to Binance
Automating the Best SuperTrend Strategy on Binance
SuperTrend acts like an adaptive safety barrier beside price. OHLC4 marks the centre of the road, ATR 7 measures how violently ETH has been moving, and the 4.5 multiplier decides how far the barrier must stand from ordinary market noise.
The difficult part of following a trend is not recognising that price moved. The difficult part is deciding whether the movement was large enough to justify changing direction.
A fixed line cannot answer that consistently. A distance that works during quiet candles may be crossed repeatedly when volatility expands. A wide distance that survives a violent market may respond too late when conditions become calm.
The open-source SuperTrend STRATEGY by KivancOzbilgic solves that problem with an ATR-based trailing boundary. The boundary changes its distance as recent candle ranges change.
This experiment runs the strategy on the Binance Ethereum / TetherUS Perpetual Contract using four-hour candles. TradingView calculates the orders and AlgoWay carries them back to Binance through its API.
SuperTrend moves the barrier when market conditions change
Average True Range measures movement rather than direction. It examines recent candle ranges and gaps to estimate how much the market has been travelling.
In this configuration, the ATR period is 7. On a four-hour chart, the volatility measurement reacts to the most recent seven completed four-hour candles.
The ATR value is multiplied by 4.5. That multiplier determines how far the active SuperTrend boundary stands from its price reference.
Quiet candles narrow the operating space
When recent ranges contract, ATR falls. The calculated SuperTrend distance can move closer to the market.
Wide candles demand more clearance
When recent ETH ranges expand, ATR rises. The boundary receives more distance so that ordinary volatility is less likely to force a reversal.
The barrier changes sides after the trend breaks
When the completed relationship between price and the active boundary changes, SuperTrend moves from below price to above it or from above price to below it.
The safety-barrier metaphor follows the actual calculation. ATR measures how rough the road has recently been. The multiplier converts that measurement into clearance. The indicator does not place the barrier at one permanent distance.
OHLC4 gives every part of the candle a vote
The selected source is (Open + High + Low + Close) / 4, commonly called OHLC4.
Close alone records where the candle finished. OHLC4 also incorporates where it opened and how far it travelled in both directions before closing.
The open establishes the starting point, the high and low record the full excursion, and the close records the final destination. Their average gives SuperTrend a balanced reference for that candle.
This does not make OHLC4 universally superior to Close or HL2. It defines the exact source behind this recorded test. Changing the source changes the historical strategy and requires a new backtest.
The tested SuperTrend inputs
Change ATR Calculation Method is enabled. The strategy author identifies the standard method as RMA and the alternative method as SMA. This test therefore uses the alternative SMA-based ATR calculation.
An SMA-based ATR window treats the seven included volatility observations with equal weight. As an older observation leaves the seven-bar window, the measured volatility can adjust more abruptly than a progressively smoothed calculation.
Show Buy/Sell Signals is disabled, Highlighter is enabled and Bar Coloring is disabled.
Turning the visible Buy and Sell labels off cleans the chart but does not remove the underlying strategy entries recorded by TradingView's Strategy Tester.
Bar-close execution waits until the barrier has stopped moving
A four-hour candle is not final until its four-hour period has finished. During that interval, its high, low, close and ATR contribution can continue changing.
Because OHLC4 includes the current candle's high, low and close, the source can move throughout the unfinished candle. ATR can also change while the candle extends its range.
An apparent crossing during the candle may therefore disappear before the period ends.
Before the candle closes, both the market reference and its volatility allowance remain unfinished. After the close, TradingView can evaluate the completed candle and produce the final strategy state.
Script execution remains On bar close. The resulting Binance order is based on the confirmed four-hour strategy state rather than an unfinished intrabar crossing.
The backtest covers several different ETH regimes
The visible test begins on January 1, 2022 and ends on July 26, 2026.
The period includes prolonged declines, sharp recoveries, compressed sideways phases and renewed directional moves. That variety is relevant because the strategy author explicitly notes that SuperTrend can struggle in sideways markets.
| Test property | Recorded value | Effect on the simulation |
|---|---|---|
| Chart | Binance ETHUSDT perpetual | Supplies the exact candle history used by the strategy. |
| Timeframe | 4 hours | Defines the duration represented by each ATR observation. |
| Initial capital | 100,000 USDT | Provides the starting balance for TradingView's simulation. |
| Order size | 10% of equity | Allows order quantity to change as simulated equity changes. |
| Execution | On bar close | Uses confirmed four-hour strategy states. |
| Historical range | Jan 1, 2022 - Jul 26, 2026 | Defines the exact sample behind the displayed results. |
Historical coverage alone does not guarantee that every market condition has been tested. It does provide a larger sample than evaluating the configuration across only a few weeks of candles.
A 44.54% win rate produced a 23.40% historical return
TradingView recorded 119 trades. Fifty-three were profitable and sixty-six were not. The strategy therefore lost more trades than it won.
SuperTrend is designed to remain attached to directional movement. It may accept multiple small failed changes around a sideways market, then remain positioned through a larger trend.
This behaviour is visible in the relationship between win rate and profit factor. A profit factor of 1.467 means recorded gross profit was approximately 1.47 times recorded gross loss.
Total simulated profit reached 23,395.93 USDT. Maximum drawdown reached 6,110.96 USDT, or 5.39%.
The stronger total return came with a materially larger drawdown than the other low-volatility examples in this laboratory. Profit cannot be separated from the path taken to produce it.
Why the word Best does not remove the need for testing
SuperTrend is one of the most recognisable and widely used public TradingView strategy concepts. The title reflects the position this script holds among practical SuperTrend implementations.
Best does not mean that ATR 7 × 4.5 is optimal for every symbol, timeframe or future period. It does not turn the historical report into a forecast.
The value of this page is reproducibility: the strategy, author, exchange feed, timeframe, source, ATR calculation, multiplier, order sizing and automation route are stated explicitly.
Reverse/Netting follows one SuperTrend direction
SuperTrend alternates between one active bullish state and one active bearish state. The strategy is not attempting to preserve an independent long and an independent short position at the same time.
Hedge mode
Long and short positions can remain separate. That can preserve old exposure after TradingView has already changed its single SuperTrend direction.
Reverse/Netting
An opposite strategy instruction works against the current Binance position. The account retains one resulting net ETH direction.
Flat state
A flat strategy state removes the existing SuperTrend exposure instead of opening another directional position.
The AlgoWay Binance webhook therefore uses Reverse/Netting.
A dedicated Binance API key creates the execution lane
Create a dedicated API key for this AlgoWay route instead of reusing a key shared with unrelated software.
- Open Binance API Management. Create a new API key and give it a recognisable name such as ALGOWAY.
- Enable reading access. AlgoWay needs account and symbol information to validate the connection and prepare orders.
- Enable Futures trading. This test uses the ETHUSDT perpetual market, so the key requires the appropriate Futures permission.
- Keep withdrawals disabled. Withdrawal access is not required for TradingView order automation.
- Store the API secret securely. Binance may display the secret only during creation. It should never appear in an article, screenshot, alert message or public support conversation.
The complete exchange connection procedure is documented in TradingView to Binance Webhook Automation with AlgoWay .
Configuring the Binance webhook in AlgoWay
Open Dashboard >> Trade Webhooks and create a route with TradingView as the source and Binance as the destination.
| Webhook field | Recorded setup | Purpose |
|---|---|---|
| Market Type | Futures/Perpetual | Routes the strategy order to Binance Futures. |
| Margin Mode | Cross | Uses shared cross-margin equity for the position. |
| Trade Type | Reverse/Netting | Maintains one resulting ETH direction. |
| Account Type | Live | Uses the live Binance environment shown in this setup. |
| Trigger Price Type | CONTRACT_PRICE | Uses the Binance contract price for supported trigger logic. |
| Quantity Multiplier | Absolute 1 | Does not intentionally scale the TradingView order quantity. |
| News Filter | No | Does not block the crypto strategy around economic events. |
Enter the dedicated Binance API key and secret, then save the webhook. Symbol Mapping can remain empty while the received TradingView ticker already resolves to the intended Binance market.
Never copy a real API key, API secret or webhook UUID into public documentation. The values shown in a private dashboard belong only to the account owner.
The first Binance order should be a connection test
Before SuperTrend controls the route, open Dashboard >> Webhook Logs and use Test Webhook.
Select the Binance webhook, enter ETHUSDT and use the smallest valid quantity accepted by the selected market.
It does not calculate OHLC4, ATR 7 or the 4.5 multiplier. It confirms that the API permissions, account mode, symbol, quantity and Binance order route are accepted.
Read the Binance response in AlgoWay Webhook Logs and confirm the resulting position in Binance. Close the manual test position before enabling the autonomous TradingView alert.
The final TradingView alert uses the strategy quantity
Return to the Binance ETHUSDT perpetual four-hour chart and confirm the tested inputs:
Create an alert from the SuperTrend strategy order fills and paste this one-line JSON message:
{"platform_name":"binance","ticker":"{{ticker}}","order_contracts":"{{strategy.order.contracts}}","order_action":"{{strategy.market_position}}","price":{{close}}}
{{ticker}}
Inserts the Binance ETHUSDT chart ticker received when the strategy alert fires.
{{strategy.order.contracts}}
Inserts the quantity calculated for the executed TradingView strategy order. A fixed manual-test quantity does not belong in the final alert.
{{strategy.market_position}}
Inserts the resulting strategy state as long, short or flat. Reverse/Netting converts that state into one resulting Binance position.
{{close}}
Inserts the TradingView close available when the alert fires. The actual Binance fill can differ because a market order is executed against the live order book.
Open Notifications, enable Webhook URL and paste the private URL generated by the AlgoWay Binance webhook.
TradingView stores a server-side copy of the strategy when the alert is created. After changing ATR Period, multiplier, source, calculation method or strategy Properties, delete the old alert and create it again.
The first automated reversal must leave three matching records
When the four-hour candle closes with a new SuperTrend strategy order, TradingView replaces the placeholders and sends the completed JSON to AlgoWay.
- Confirm the TradingView order. Check the completed candle, strategy direction and calculated quantity.
- Read AlgoWay Webhook Logs. Confirm the received ticker, order action, contracts and Binance response.
- Inspect the Binance position. Confirm ETHUSDT, the accepted size and the resulting net direction.
A visible TradingView marker proves only that the strategy generated an order. A successful webhook log proves that AlgoWay processed it. The Binance position proves that the exchange accepted and executed it.
The complete SuperTrend route
What this Binance automation experiment establishes
OHLC4 supplies a balanced candle reference. ATR Period 7 measures recent four-hour volatility. The 4.5 multiplier gives ETH a wider adaptive operating corridor before SuperTrend changes sides.
Across the recorded period, the strategy completed 119 historical trades and produced 23,395.93 USDT in simulated profit, a profit factor of 1.467 and maximum drawdown of 5.39%.
AlgoWay connects the confirmed TradingView strategy state to Binance using a dedicated API key, Futures/Perpetual market type, Cross margin, Reverse/Netting and the original strategy order quantity.
The manual test verifies the execution lane. The strategy alert then supplies the real ticker, quantity and resulting SuperTrend direction after each confirmed four-hour order.
Original strategy: SuperTrend STRATEGY by KivancOzbilgic . Binance connection manual: TradingView to Binance Webhook Automation with AlgoWay .
Direct answers
Direct answers about SuperTrend automation on Binance
Can the KivancOzbilgic SuperTrend strategy be automated on Binance?
Yes. TradingView strategy order alerts can be sent to an AlgoWay Binance webhook, which validates the message and routes the resulting order to Binance Futures or Perpetual markets.
Which SuperTrend settings produced this ETHUSDT backtest?
The recorded test used ATR Period 7, ATR Multiplier 4.5 and the OHLC4 source calculated as Open plus High plus Low plus Close divided by four. The alternative ATR calculation method was enabled.
What does ATR Period 7 measure in this SuperTrend setup?
ATR Period 7 measures recent volatility across seven four-hour candles. It determines how quickly the volatility estimate adapts when ETHUSDT candle ranges expand or contract.
What does the SuperTrend multiplier of 4.5 do?
The 4.5 multiplier places the SuperTrend boundary farther from its source than a smaller multiplier would. This gives volatile ETH price movement more room before the strategy accepts a change of direction.
Why does this SuperTrend configuration use OHLC4?
OHLC4 averages the open, high, low and close of each candle. It gives the calculation a balanced candle reference instead of relying only on the final closing price.
Which ATR calculation method is used in the recorded strategy?
Change ATR Calculation Method is enabled. In the original strategy, this selects the alternative SMA-based ATR calculation instead of the standard RMA-based method.
Why is the SuperTrend strategy executed on bar close?
Bar-close execution waits for the four-hour candle to finish before TradingView confirms the resulting strategy state. This reduces the risk of converting a temporary intrabar movement into a real Binance order.
Which AlgoWay Binance trade mode is used for the strategy?
The recorded webhook uses Reverse/Netting. An opposite SuperTrend order works against the current exposure so that the Binance account retains one resulting net ETH direction.
Should the Binance API key permit withdrawals?
No. Trading automation requires the appropriate reading and Futures trading permissions, but withdrawal permission is not required and should remain disabled.
What results did the recorded SuperTrend ETHUSDT test produce?
From January 1, 2022 through July 26, 2026, the historical TradingView simulation produced 23,395.93 USDT in total profit, a profit factor of 1.467, 53 profitable trades out of 119 and maximum drawdown of 6,110.96 USDT.