BITMEX Bybit binance bitstamp Coinbase HUOBI BTC ETH TREND

BITMEX Bybit binance bitstamp Coinbase HUOBI BTC ETH TREND

This is a very effective trend strategy.

Strategy principle

  • Constructs the trailing ATR stop above or below the price, and switches directions when the source price breaks the ATR stop.

  • Uses the Average Directional Index ( ADX ) to switch between ATR multipliers. The higher multiplier is used when the ADX is rising, and the lower ATR multiplier is used with the ADX is falling.

  • This ADX criteria further widens the gap between the source price and the trailing ATR stop when the price is trending,and lessens the gap between the ATR and the price when then price is not trending.

  • The ATR-ADX stop is effectively a double adapative stop that trails the price,by both adapting to the true range of the price, and the average directional change.


  • set long position when a green arrow appears in the chart.
    When the stop is below the price (long trade) the value never decreases until the price intersects the stop, and it reverses to being above the price (short trade)。

  • set short position when a red arrow appears in the chart.
    When the stop is above the price it will never increase until it is intersected by the price. As the true range and ADX change, the stop will move more quickly or more slowly.

  • For the long position and the short direction, you can set the stop profit & stop loss or trailing profit stop & trailing stop loss respectively.
    When a purple arrow appears to close a position, an aggressive trader can go in the opposite direction when it is purple.

Strategy applicability

Using the alert of the indicator, it can work well on the trading robot like Gunbot,autoview, without repaint false signals.


  • 在价格之上或之下构造追踪的支撑压力位并在源价格突破压力位时的切换操作方向,使用平均趋向指数(ADX)与ATR系数之间切换。

  • 当ADX上升时使用上升的ATR系数,而ADX时下降时使用下降的ATR系数。

  • 当价格趋势变化时,ADX参数在价格趋向变大时使源价格止损点与后续ATR进一步扩大,并在价格趋向平缓时减小了ATR与价格之间的差距。

  • ATR-ADX压力线通过适应价格的真实波动范围和平均趋向变动达到跟随价格的双适应性止损目的。当做多时,止损线低于价格,并随价格升高,直到止损线与价格相交,然后反转至高于价格,此时启动空头交易;

  • 当做空时,止损线高于价格,并随价格降低,直到止损线与价格相交,然后反转至低于价格,此时启动多头交易;在图表中出现红色箭头就做空。随着真实波动和ADX的变化,止损线将移动得更快或更慢。

  • 对于多头头寸和空头方向,您可以分别设置止损和止损或尾随利润止损和尾随止损;当出现紫色箭头时平仓,激进的交易者,可以在紫色时就做反方向。

默认设置是针对bitmex交易所 XBTUSD永久掉期合约,BYBIT交易所 BTCUSD永续期货合约,binance币安交易所 btcusdt现货,Bitfinex交易所 BTCUSD现货,bitflyer交易所 BTCJPY现货,bithumb交易所 BTCKRW现货,bitso交易所 BTCMXN现货,bitstamp交易所 BTCUSD现货,bittrex交易所 BTCUSDT现货,Coinbase交易所 BTCUSD现货,deribit交易所 BTCPERP永续期货合约,gemini双子星交易所 BTCUSD现货,Hitbit交易所 BTCUSDT现货,huobi火币交易所 BTCUSDT现货,KRAKEN交易所 XBTUSD现货,OKCOIN OKEX交易所 BTCUSD3M OK BTC季度合约 BTCUSD BTCUSD2W OK BTC次周合约,Poloniex BTCUSDT现货等2小时区间的btc交易。

该指标还适用于ETHUSD ETHBTC EOSBTC BNBBTC交易品种等,只需调整默认配置即可。
Release Notes: Streamlined code
Improve execution efficiency
Release Notes: add small trend alert
add support grid alert
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact bitguys for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it until you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Public Library.

Want to use this script on a chart?

Warning: please read before requesting access.


Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter