What Is the Supertrend Trading Strategy?

Contents:

What is the Supertrend Trading Strategy?

The Supertrend strategy is based on the Supertrend technical indicator. The Supertrend indicator is an automatic trailing stop loss indicator based on N times Average True Range(ATR), which intuitively provides a trend indicator for buying and selling signals. . Breakthrough of the ATR channels defines pivot [hl/2], up [hl/2 + N*ATR(M)], and down [hl/2 – N*ATR(M)]. If the closing price falls below the down, the trend turns downward, then go short-selling; if the closing price breaks through the up, the trend turns upward, then go long-buying.

Calculation of ATR indicator

ATR (Average True Range) measures the amplitude of price fluctuations over time, using the average value as the result. And here the size of amplitude is based on the largest of the following three:

  1. The distance between the highest and lowest point of the day
  2. The distance between the previous day’s closing price and the day’s highest price
  3. The distance between the previous day’s closing price and the day’s lowest price

The calculation formula of the Supertrend strategy:

  • When going long:

Supertrend = (highest price + lowest price)/2 – N*ATR(M)

In the drawing, this value only moves up but not down, the recent highest value is taken.

  • When going short:

Supertrend = (highest price + lowest price)/2 + N*ATR(M)

where N = 3, M = 10

How to start a bot with the Supertrend strategy?

1. Log into your AntBot account and find [Supertrend ] in the [Robot] of the [Trades] interface and click the button on the right to enter the parameter setting page.

2. Choose crypto based on personal criteria and preferences.

3. Set [Initial Positions].

  • [Initial Positions]: The position amount of the robot’s first open position. Beginners are advised to keep the default values.

4. Set [Running Mode][Direction][Leverage] [Profit] and [Loss].

  • [Running Mode]: It is divided into cycle and single. Cycle means that the robot will repeat the next round of opening positions after each take-profit and closing position, and the robot will only stop when it reaches the profit or loss conditions preset in the [optional]. Single means that the robot will automatically terminate the operation after closing the position and taking a profit.
  • [Auto]: Going long when a long position signal is released, and going short when a short position signal is released according to the trading signal.
  • [Long]: Only run long position signal.
  • [Short]: Only run short position signal.
  • [Leverage]: Using leverage can be regarded as borrowing funds from the exchange to hold positions. The multiple of this position funds relative to the principal is the leverage, and increasing leverage will magnify profits and losses. It is recommended to keep the default value of 5x leverage for beginners.
  • [Take-Profit]
  1. [AI Tracking] is the default value, the robot calculates the signal every 30 minutes. When the signal reverses, it will take profit and close the positions, and the robot will enter the next cycle.
  2. If there is a preset ratio value, the robot will close the position and take profit when the rate of return of the robot’s position reaches the preset value, and the robot will enter the next cycle.
  • [Stop-Loss]
  1. [AI Tracking] is the default value, when the robot builds a position, it pre-embeds the stop loss ratio according to the real price fluctuation of the 30-minute period. When the position loss rate reaches this preset value, it will close the position and stop loss, and the robot will enter the next cycle.
  2. If there is a preset ratio value, the robot will close the position and stop the loss if the loss rate of the robot’s position reaches the preset value, and the robot will enter the next cycle.

5. Click [Launch] to successfully create a Supertrend robot.

Advantages and risks of the Supertrend strategy

Supertrend has a very good trend following, but there are few signals and the transaction is not flexible enough. On the basis of the original strategy, we added orbit-like algorithms and mobile opens, which are suitable for 30-minute periods or time periods below the daily line, suitable for running with small funds, and this strategy has no future functions and no price-stealing problems.

Optimization of the Supertrend strategy

In the face of a slow and continuous unilateral market, the classic Supertrend strategy will not be able to perceive the price breakthrough signal, leading to continuous losses in the account, which is a relatively large psychological burden on traders. AntBot records the opening price for each order of the Supertrend strategy. When the price continues to reach a range of 3 times ATR on one side, it will close the position and stop the loss.

The Supertrend strategy backtest

Timeframe: 30 minutes
Parameters: ATR M=10, N = 3
Go long in an upward trend, and close when it falls below; only long positions;
The entry amount is $1,000, and the amount of each entry transaction is 100% cash;
Trading range: Jun. 1, 2022 to Nov. 17, 2022
Symbol: ETHUSDT
Fees: 0.04%

References:

https://fintastic.trading/wisdom_box/supertrend-指標

https://elearnmarkets.com/blog/supertrend-indicator-strategy-trading

https://www.tradingview.com/script/r6dAP7yi/