Urgent.News

What's breaking now, across thousands of outlets.

Tech

Don't let a new signal engine write fake trades: a warm-up flag for trading alert bots

I run a small trading-alerts project, and this week I added eight new signal engines to a bot that was already running. The code was the easy part. The hard part was making sure the statistics stayed honest. The bug you only see once A signal engine reads recent candles and says "there is a setup". When you deploy a new engine on a live bot, its very first cycle looks at the last few hours of…

A small trading-alerts project expanded to include eight new signal engines for a live bot. The challenge lay in maintaining accurate statistics amidst the introduction of these new engines. The code was straightforward, but ensuring the statistics remained honest proved difficult. Upon deploying the new engine, its initial cycle examined recent candlestick data, identifying past setups that should not have been recorded as trades.

These fabricated trades appeared in the journal, inflated win rates, and skewed comparisons moving forward. The solution involved versioning engines and skipping the first cycle of newly deployed ones. A persistent marker file stored the engine's version, allowing the bot to recognize when a warm-up cycle had concluded. Within the loop, any signal generated by a new engine was disregarded until the warm-up period was complete.

If a signal was deemed stale, it was also ignored. A few seconds after the bot's deployment, it was confirmed that no trades originated from the freshly added engines, despite them being operational. This test proved invaluable and should be automated. Engines reliant on the clock are challenging to test offline. Some engines depend on session openings, making them unsuitable for playback through historical data.

For optimal testing, a fake feed in the correct format is recommended. It is crucial to isolate each engine within its own try/except block. A bug in one detector should only impact that specific detector, not the entire cycle. Additionally, avoid sharing strategy code between bots, as this can lead to unintended consequences. Each bot should possess its own copy of the code.

During engine validation, refrain from enabling alerts until comparisons are thoroughly measured. The presence of fabricated trades in the journal renders comparisons meaningless, regardless of the strategies employed. Measurement hygiene is paramount in this domain. Trading inherently involves risk, and this technical discussion does not constitute financial advice.

This account originates from ICT Edge, a trading-alerts tool, and was drafted with AI assistance, subsequently reviewed and edited by the author.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Edtech Startup API Error Monitoring: Lean Capture Without Replay or Tracing

TL;DR: For an API-only AI tutoring startup operating in the US and EU, start with exception capture plus searchable groups, then attach a small set of cost-allocation fields to every event.

  • Capture exceptions and organize into searchable groups
  • Attach cost-allocation fields to each error event
  • Avoid session replay and tracing until needed

Motorola con GrapheneOS privacidad móvil sin rastreo de Google

Motorola, con GrapheneOS y la privacidad móvil, da un golpe sobre la mesa al romper la dependencia exclusiva que este sistema mantenía con la familia Pixel.

  • Motorola launches GrapheneOS platform to break Google dependency on mobile devices.
  • First devices target high-end segment, excluding foldables to avoid mechanical issues.
  • Seven-year software update commitment surpasses typical Motorola three-year support.

5 Marketplace Checks for Startup SMS Outage API Batch Alerts

Short answer: keep the seller-notification template, its version history, and suppression decisions in your application domain; let the SMS provider own transport.

  • Startup SMS outage API batch alerts system allows delivery method switching.
  • Template control remains with application during SMS delivery unavailability.
  • Stable template rendering, versioning, and consistency across delivery paths required.

More from Friday 9 October →