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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?