---
title: "Lei Chen (@leichenbuilds) | Hashnode"
description: "Lei Chen (@leichenbuilds) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@leichenbuilds"
---

@leichenbuilds

# Lei Chen

@leichenbuilds · Joined October 2026

## Comments

[Good question — it's the same gap the post flags with the isconfirmed variant: the name converts cleanly, but in a historical Python run every bar is already closed, so the filter passes on bars where the live signal may have vanished before the close. I don't handle it automatically — no translator can, because there's no realtime bar offline. What I do is treat isconfirmed-gated entries as close-only and check them against TradingView's historical run; if a strategy genuinely behaves differently live, that difference has to be re-engineered in the feed, not in the translation.](https://hashnode.com/posts/i-converted-a-classic-ema-crossover-strategy-from-pine-script-to-python-line-by-line/6aeef184852290ead6228e53/comment/6af07694ec683747596cd153#reply-6af1acab3686905fbf420ff0)

Reply · Article · Nov 9 · [I Converted a Classic EMA Crossover Strategy from Pine Script to Python — Line by Line](https://hashnode.com/posts/i-converted-a-classic-ema-crossover-strategy-from-pine-script-to-python-line-by-line/6aeef184852290ead6228e53)
