TradingView Description Generation - When and How
๐ When tv-description.txt Gets Generatedโ
The tv-description.txt file is NOT automatically generated during regular commits. It is only created during specific workflow phases:
โ NOT Generated During:โ
- โ Regular commits - No tv-description generation
- โ Pre-commit hook - Only validation, no file generation
- โ
Post-commit hook - Runs
testphase only (no tv-description) - โ
one-command.sh test- Prepares for testing, no tv-description
โ Generated During:โ
- ๐
one-command.sh publish- Creates tv-description.txt for publication - ๐
workflow.sh pre-publish- Called by publish phase - ๐ Manual conversion - Using
convert-to-tv.shdirectly
๐ Workflow Phasesโ
Phase 1: Test (one-command.sh test)โ
Purpose: Prepare for TradingView testing Automatic: Yes (via post-commit hook) Files Generated:
- โ Pine script version updates
- โ README.md version badges
- โ changelog.md entries
- โ testing-checklist.md
- โ NO tv-description.txt
Phase 2: Publish (one-command.sh publish)โ
Purpose: Prepare for TradingView publication Automatic: No (manual command) Files Generated:
- โ All Phase 1 files
- โ tv-description.txt (converted from README.md)
- โ publication-checklist.md
Phase 3: Complete (one-command.sh complete)โ
Purpose: Post-publication archival Automatic: No (manual command) Files Generated:
- โ Archived tv-description files
- โ Git tags
- โ Final documentation
๐ ๏ธ Manual Generationโ
To manually generate tv-description.txt:
# Option 1: Full publish workflow
./tools/one-command.sh indicators/trend/macdrsi-plus 2.6.0 publish
# Option 2: Direct conversion
./tools/convert-to-tv.sh indicators/trend/macdrsi-plus/README.md indicators/trend/macdrsi-plus/docs/tv-description.txt
๐ฏ Current State (July 4, 2025)โ
MACDRSI+ Indicator Status:โ
- Current Version: v2.6.0
- Last Test Phase: โ Completed (auto-generated via post-commit)
- Publication Phase: โ Not run (tv-description.txt manually updated)
- Ready for: TradingView testing
To Prepare for Publication:โ
./tools/one-command.sh indicators/trend/macdrsi-plus 2.6.0 publish
This will:
- Validate all files are synchronized
- Generate fresh tv-description.txt from README.md
- Create publication checklist
- Prepare all files for TradingView publication
๐งน Artifacts Cleaned Upโ
Removed Files:
- โ
tv-description-backup.txt(outdated backup) - โ
tv-description-final.txt(redundant version) - โ Duplicate changelog entries in Pine script
Updated Files:
- โ
tv-description.txt- Updated version history to v2.6.0 - โ
macdrsc.pine- Cleaned up duplicate changelog entries - โ All documentation now reflects current state
๐ก Key Takeawayโ
The post-commit hook only runs the TEST phase, which prepares files for testing but does NOT generate the TradingView description. The tv-description.txt must be generated manually when you're ready to publish on TradingView by running the PUBLISH phase.