OPEN-SOURCE SCRIPT

baguette by multigrain

已更新
Rationale
The rationale behind this indicator is that: when the price of an asset reaches an extreme, regardless of the trend, there is a (maybe not equal but) opposite reaction.

Settings
The default settings will not be the best for whatever timeframe you choose. I personally believe a longer than 'normal' JMA Length is best.

  • JMA Source: The source in which the Jurik Moving Average calculations are based off of.
  • JMA Length: Controls the length of the Jurik Moving Average.
  • JMA Phase: A lag controller of sorts. Increasing the phase increases overshoots but reduces lag, decreasing the phase decreases overshoots but increases lag.

  • ATR Length: The length in which an average true range value will be calculated with.
  • ATR Multiplier: This multiplier controls the 'width' of our envelope or our extreme bands.


Credits
  • gorx1 for the improved and more accurate (?) Jurik Moving Average calculations.
  • RedKTrader for the ATR envelope calculations.

版本注释
  • included alerts for long and short indications.
版本注释
  • realigned input code.
Bands and ChannelsjurikMoving Averages

开源脚本

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

想在图表上使用此脚本?

免责声明