Sorry, we don't support your browser.  Install a modern browser

Admin Metadata Support in Signal Posting Format#735

G

Summary

Allow admins to include non-parsed metadata in Telegram trading signals by ignoring (not parsing) any content written after a hashtag (#). This enables admins to add operational or administrative information (e.g. Trade ID, timestamps) without affecting signal processing.

Problem Statement

Currently, the bot parses the entire Telegram message content when processing trading signals. This prevents admins from adding internal or administrative information (such as Trade IDs, execution timestamps, or audit notes) to a signal message, as any extra text may break parsing or cause errors.

Admins need a safe and predictable way to append metadata to signals without impacting bot behavior so admins can analyse the trades more in detail.

Proposed Solution

Update the signal parser so that:

  • Any line starting with # (hashtag) is ignored by the parser
  • Hashtag-prefixed lines are treated as admin-only metadata
  • These lines are visible in Telegram but excluded from:

    • Signal validation
    • Trade execution logic
    • Error handling

This creates a clear separation between machine-readable signal content and human/admin-readable metadata.

Example Signal Format

PIEVERSEUSDT
Signal: SHORT
Risk Management : 1.00 %
Leverage : 20x
Entry zone: 0.473926 – 0.474400
TP : 0.426985 
SL : 0.485957  

# Score : 0.579
# Time : 2026-02-01 06:01 UTC
# Trade ID : PIEVERSEUSDT_20260201_0500_1769925695

Expected behavior:

  • Bot parses everything above
  • Bot ignores all hashtag-prefixed lines
  • No parsing errors or side effects

Benefits

  • Enables proper trade traceability (Trade ID)
  • Improves auditing & debugging
  • Allows admins to add timing, scoring, or strategy context
  • Zero impact on existing signal format
  • Simple and intuitive rule for admins

Acceptance Criteria

  • Parser ignores all lines starting with #
  • Signals with hashtag metadata are processed successfully
  • Existing signals without hashtags remain unaffected
  • Metadata remains visible in Telegram messages
  • No false positives or parsing regressions
2 days ago