Skip to main content

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 test phase 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.sh directly

๐Ÿ”„ 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:

  1. Validate all files are synchronized
  2. Generate fresh tv-description.txt from README.md
  3. Create publication checklist
  4. 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.