OPEN-SOURCE SCRIPT

20 Day Moving Average with Profit Targets

415
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.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.