Motivational Text Table

Standalone Indicator:
- A new, standalone Pine Script v6 indicator that displays a motivational text table directly on the chart.
Customizable Text:
- Users can set their own motivational message through the "Custom Motivational Text" input.
Configurable Appearance:
- Change the text color and background color of the table.
- Adjust the text size by choosing from "tiny", "small", "normal", "large", or "huge".
- Select the table’s position on the chart from multiple preset locations (e.g., top_left, middle_center, bottom_right, etc.).
Static Display:
- The table is drawn on the last bar, ensuring that the motivational text remains static during realtime updates.
User-Friendly Design:
- The interface is simple and easy to customize, making it perfect for users who need a daily dose of motivation directly on their TradingView charts.
Enjoy your motivational boost on every chart!
New “Motivational Text” section
Added top‐level inputs for motivationalText, color, background, size, and position.
Created a one-cell motivationalTable that displays your custom message only on the last bar.
Cleaner default message
Trimmed leading spaces in motivationalText so it looks crisp (“Patience Pays” instead of extra indentation).
Centralized text styling via getTextSize() helper for consistent sizing.
UI grouping & organization
Moved motivational settings into their own “Table Settings” group for clarity.
Separated the motivational table logic from the day-counter and custom-rules sections with clear comment headers.
Keep shining patience and self-control in your code and in life! 🌿
Show/Hide Entry Toggle
A checkbox to turn the entry-price line & its label on or off.
Points vs. Absolute Price Input
Choose whether your “entry” is a fixed price or an offset in ticks from close.
Dynamic P/L Display Mode
Toggle between showing your profit/loss in raw price points or in ticks.
Automatic “+”/“−” Sign & Coloring
Prepends a “+” for gains or “–” for losses and switches text color (green/red/neutral) accordingly.
Custom Handles Counter
A separate label that always shows how many ticks you’re away from entry (“handles”).
On-Chart Offset Controls
dx (bars) and dy (ticks) inputs let you nudge the P/L label anywhere relative to the bar and price.
Label Text-Size Picker
Pick from tiny → huge so the P/L and handles labels scale to your taste.
Box & Font Color Settings
Fully configurable background (“boxColor”/“plBgColor”) and font colors for every label.
Robust Cleanup
Whenever you turn off the entry or P/L toggles (or clear the entry), all lines & labels are immediately deleted to avoid clutter.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.