Back

Khonen Novice FOUNDER
Novice FOUNDER
Hi everyone. I should have posted this yesterday, but I felt tired.

I recently implemented some algorithmic rules for event-based sampling for machine learning, and here's how they look on the chart: the arrows show the bars that are sampled. These arrows do NOT mean "trade" or signal entry/exit points; they simply tell us which bars are used to train the model on the training set or when we make a model prediction on the test set. Because we want to use these events to trade, we don't use future data in our event algorithm.

The goal here is to provide our model pipeline with a relevant event when the question arises: "Should we trade or not?" and avoid market noise that we don't want to take part in. We can make an analogy with poker:

Our events are hands where we have a setup and might choose to play (e.g. pocket pairs, suited connectors, or high cards). We don't want to play every hand like a garbage 7-2 offsuit with no setup, and in the case of financial markets, we don't want to trade every bar. Let's take the example of pocket pairs like 5-5, 8-8, or J-J: we can set mine or play them aggressively pre-flop in a heads-up situation (1v1 situation). The event is the pocket pair, while the strategies are set mining and aggressive pre-flop play. For set mining, we need deep effective stacks and a cheap pre-flop call. For aggressive heads-up play, we generally want our opponent's range to contain many weaker hands and avoid too many opponents entering the pot, where our equity can quickly decrease. The effective stack size, the number of opponents, and the strength of our opponent's range can all be seen as features.

Back to financial markets: as retail traders, we don't have to trade all the time. We want to make informed decisions and trade only when we have a potential edge. Don't be afraid of missing opportunities: there will always be plenty of future hands to play and plenty of future events to trade.

I'm not really satisfied with my events yet. There are multiple event algorithms used on the chart, and I will probably drop some of them. I would like something where I can "play tight", so to speak: not necessarily something with a huge edge, but something with a more consistent edge.

Thanks for reading. The poker analogy might not be understandable for people who don't play poker, so don't hesitate to ask me, ChatGPT, or any other LLM.
Post image
Jun 13, 2026 · 08:01 PM · 103 views · Commons
2 Reposts
3 Likes
4 Replies
@convexity
Convexity Life Mod Acolyte
@convexity · Jun 14, 2026 · 05:02 AM
Acolyte
Really cool!

What percentage of your account do you put into a trade when you have pocket Aces?
Reply
@luwyn · Jun 14, 2026 · 06:47 AM
The chart you provided is interesting. I probably am missing a lot of contexts, but I do see some patterns with the limited data. It looks like the ruleset tends to prefer reversals and breaks in consecutive trend streaks. It looks like it will disregard some wide spreads in the MAs based on some specifics.

It gave me something to think about.

What rules are you using?

After, "Should we trade or not", has been answered by the agent,
how will the agent trade?

What bias will the trade take?
Reply