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.
Release Notes:
- 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 🦜
Release Notes:
- 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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?