TheTradingParrot

TTP Intelligent Accumulator

The intelligent accumulator is a proof of concept strategy. A hybrid between a recurring buy and TA-based entries and exits.

Distribute the amount of equity and add to your position as long as the TA condition is valid.

Use the exit TA condition to define your exit strategy.

Decide between adding only into losing positions to average down or take a riskier approach by allowing to add into a winning position as well.

Take full profit or distribute your exit into multiple take profit exists of the same size.

You can also decide if you allow your exit conditions to close your position in a loss or require a minimum take profit %.

The strategy includes a default built-in TA conditions just for showcasing the idea but the final intent of this script is to delegate the TA entries and exists to external sources.

The internal conditions use RSI length 7 crossing below the BB with std 1 for entries and above for exits.

To control the number of orders use the properties from settings:
- adjust the pyramiding
- adjust the percentage of equity
- make sure that pyramiding * % equity equals 100 to prevent over use of equity (unless using leverage)

The script is designed as an alternative to daily or weekly recurring buys but depending on the accuracy of your TA conditions it might prove profitable also in lower timeframes.

The reason the script is named Intelligent is because recurring buy is most commonly used without any decision making: buy no matter what with certain frequency. This strategy seeks to still perform recurring buys but filtering out some of the potential bad entries that can delay unnecessarily seeing the position in profits. The second reason is also securing an exit strategy from the beginning which no recurring buy option offers out-of-the-box.
版本注释:
- Solved bug with add only in profit (now the option is in the reverse order "add only when in a loss")
- Added time window for backtesting independently bear and bull markets.
- Avg position price line now is hidden if there's no position currently open.

I'm tempted to test this using a signal bot directly. Let me know in the comments if you have already and if you experienced any issues.

Enjoy 🦜
版本注释:
- Fixed bug: taking partial profits was never able to close the full position. Now when the left over is below the min tick we "force close" all the remaining position.

Join our membership to gain access to the private scripts.
www.thetradingparrot.com
开源脚本

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?