OPEN-SOURCE SCRIPT

ka66: Percent Stop Channel

Often used as a dynamic stop loss management tool, this indicator:

  • Takes a source series as input, e.g. a moving average, or close prices.
  • Draws configurable channels, some percentage above and below the source series (e.g. for long vs. short stop losses)


Since long vs. short trade profiles can be different, differing percentage inputs are allowed for the bands.

While in forex or futures we tend to use ATRs (see my other script: ATR Stop Channels), in stocks, a percentage is more the norm, it's still as dynamic as the source series, being a function of it, and may at times be simpler to reason about in terms of money.

An idea might be to set your stop loss at the point of entry where the band currently is (assuming you have observed and set a reasonable percentage).
Bands and ChannelsVolatility Stop

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明