nickbarcomb

Take Profit

This simple indicator shows gains/ losses and profit taking opportunities for a strategy that consists of regularly investing a static sum to an asset (ex: adding $25 to BTC every week).

White = Investment (new money)
Green = Take-profit
Purple = Total Gains / Losses on + investment
Blue = Total Gains / Losses on + investment - take-profit
Red = Total Gains / Losses on - investment
Orange = Total Gains / Losses on - investment - take-profit

RedBG = Orange < 0
GreyBG = Weekend

Settings:
- Amount to invest each week
- Day of the week to invest (1 = Sunday, time is defaulted to 12:01 AM of that day)
- Amount at which to take profit
- Start time (This is calculated in weeks since UNIX Epoch; increasing the number by 1 means moving the start time forward 1 week)

Enjoy!
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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?