OPEN-SOURCE SCRIPT

20 Day Moving Average with Profit Targets

354
This Pine Script indicator plots a 20-day simple moving average (SMA) on the chart and displays profit target labels relative to an initial buy price.

The script allows the user to input a custom buy price and calculates profit levels at 10%, 20%, 30%, and 50% above the buy price. Labels are shown on the last bar of the chart for each profit level and the buy price, with the labels offset to the right to avoid overlapping with the price action.

The labels are color-coded based on the profit levels, and the buy price label is blue.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.