The Custom Text Display (CTD) indicator allows users to display customizable text entries in chosen positions directly on their chart. Each text entry can be individually configured with its own content, color, size, and style, providing a clean and organized way to keep notes, reminders, or labels on your trading interface without clutter.
2. Logic
The script utilizes Pine Script dynamic tables to render text onto the chart. It manages six distinct screen positions (Top Left, Top Center, Top Right, Bottom Left, Bottom Center, and Bottom Right). The indicator evaluates which text blocks are enabled and checks their assigned positions. When multiple active text blocks are assigned to the exact same screen location, the indicator intelligently stacks them together in a single unified table. The tables are continuously refreshed and cleared on the last bar to prevent visual overlapping and ensure a perfectly updated display.
3. Settings & Options
The indicator supports up to six independent text blocks (Text 1 through Text 6). Each block is organized into its own group with the following customizable settings:
Show Text: A simple toggle to display or hide the specific text block.
Text Input: A text field to write your custom note or label.
Position: Choose from six predefined locations on the chart (Top Left, Top Center, Top Right, Bottom Left, Bottom Center, Bottom Right).
BG (Background Color): Choose the background color for the text box. Default colors vary for visual distinction (Green, Blue, Red, Orange, Purple, Gray).
TXT (Text Color): Choose the color of the text itself (White by default).
Size: Adjust the font size (Small, Medium, Large, Huge).
Style: Modify the text formatting (Normal, Bold, Italic, Bold Italic).