What is the Timestamp field used for?

The Timestamp field in MagicTradeBot is an optional parameter that sets an execution expiry for a manual trade. It ensures that trades do not remain pending indefinitely and helps prevent stale or outdated trade entries.


1️⃣ How It Works

  • When you set a Timestamp, you define the date and time (ISO-8601 format) by which the trade must execute.
  • The bot continuously monitors the trade conditions.
  • If the conditions are not met before the timestamp, the trade is automatically discarded.

2️⃣ Benefits

  • Prevents stale trades: Old trade setups that are no longer relevant to the market are removed automatically.
  • Improves efficiency: Keeps the manual trade queue clean and focused only on actionable entries.
  • Risk management: Avoids executing trades based on outdated market conditions, reducing unintended exposure.

3️⃣ Best Practices

  • Use Timestamp for time-sensitive trades or when market conditions are expected to change rapidly.
  • Combine with ExecuteThresholdPerfect to ensure trades either execute under your conditions or expire safely.
  • Always specify timestamps in ISO-8601 format for accuracy.

Pro Tip

Think of the Timestamp field as a self-destruct timer for your manual trades. It ensures that trades that no longer make sense in the current market are automatically removed, keeping your manual trade list clean and relevant.

📎 Related Topics