Техническое задание
I've built the bot as a single-page app that runs the three-step workflow you described. Since the page can't pull live broker data, it runs on simulated 5-minute candles or on a CSV you paste in.I've published the trading bot page. I haven't opened or run it, so I can't confirm the logic behaves as intended. It runs on simulated 5-minute candles (or a CSV you paste in) and builds the 4H and 30M charts from them.
How it follows your workflow
-
4H direction: it finds swing highs and lows. Higher highs with higher lows means bullish, and lower highs with lower lows means bearish. If the structure is mixed, it uses a break of structure. The bot only takes trades in the 4H direction.
-
30M points of interest:
- Supply/demand zones: the last opposite candle before a strong move that breaks structure.
- FVG: a three-candle gap.
- IFVG: an FVG that a candle has closed through, so it now acts in the opposite direction.
- IDM (inducement): a minor swing in the pullback that gets swept by a wick.
-
5M entry: it waits for four things in order:
- Price taps an aligned 30M zone.
- A 5M IDM sweep.
- A CHoCH (change of character, a close through the last swing).
- An entry at the midpoint of the 5M FVG, or at the CHoCH retest level if there is no FVG.
The stop goes beyond the sweep extreme, with take profits at 1:2 and 1:3.
What you can do on the page
- Switch between 4H, 30M, and 5M charts, each with its zones and levels drawn on.
- Click Find setup to generate data that has a live signal, or New data for a random scenario.
- Click Live sim to stream new candles and watch the checklist update.
- Paste your own CSV (time, open, high, low, close) to analyze real prices.
Limits
- Nothing in trading is perfect, and the rules above are one common way of coding these ideas, not a guarantee of profit.
- The page can't pull live broker data, so for real markets you'd export candles and paste them in.
- It generates signals only and doesn't place orders. Test it on a demo account first. This is educational, not financial advice.