OPEN-SOURCE SCRIPT
已更新 HPH's SuperKeltner

This indicator combines the Supertrend (to determine the main trend direction) with two Keltner channels (used for add and take profit signals) to construct a trend trading system.
These are the available settings:
General
Visualization
Keltner
Supertrend
Alerts
Enjoy!
These are the available settings:
General
- UseTrendChange ➞ toggle trend change alerts and labels
- UseAdds ➞ toggle add to position alerts and labels
- UseTakeProfits ➞ toggle take profit alerts and labels
- PrematureAdds ➞ toggle adding to position as soon as the add channels are left (default is false, so the add signal will only fire once the channels are re-entered)
- PrematureTakeProfits ➞ toggle taking profit as soon as the tp channels are left (default is false, so the tp signal will only fire once the channels are re-entered)
Visualization
- Show Add Keltner ➞ toggle display of the channels used for adding to the position
- Show TP Keltner ➞ toggle display of the channels used for taking profit
- Show SuperTrend ➞ toggle display of the Supertrend
Keltner
Standard Keltner channels settings except for the fact that there are two different multipliers. The Keltner TP Multiplier should generally be bigger than the Keltner Add Multiplier, as the channels are hit differently in trending markets. I recommend you to use the visualization settings to show the channels and adjust the settings to your liking.
Supertrend
Standard Supertrend settings, nothing to add here.
Alerts
- Use the alert messages to customize what alert text the indicator will send. This makes it possible to use the script to automate trading bots.
- By default, the alerts are sent after the candle has closed. This ensures that no repainting is happening. If you like the risk, you can toggle the corresponding WaitFor[...]Confirmation if you wish to receive the signals earlier (max. once per bar).
Enjoy!
版本注释
Updated the take profit colors to be less confusing版本注释
Added a video tutorial:https://youtu.be/sf-istJnpDs
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。