A trend filter in front of the grid

The failure mode is always the same: the grid is fine until the range stops being a range. So put something in front of it that notices. The simplest version I've tested: only allow new buy levels to fire while price is above a long moving average. When it falls below, existing levels still sell as price recovers, but no new buying happens. The grid winds down instead of loading up into a decline. # BUY — grid level fires only while the longer trend is intact # second half is your grid level - Sma(60)*0.995 stands in so this parses if Price > Sma(3600) and Price <= Sma(60) * 0.995: Buy()This costs you the bottom of every real dip, which is exactly where the best grid entries are. That's the trade. You are paying a real price for not being loaded up at the start of a decline, and whether that's worth it depends entirely on how often your market trends versus oscillates. Measure that on your own instrument before deciding. Mine oscillates more than I assumed and the filter cost me more than it saved.
Q
QuietVol
13 posts · 0 followers
+ Follow

Related reading

4 replies

DataDrivenDee· Jul 2026 ago
Reporting that the filter lost you money is more useful than reporting that it worked. Thank you for the direction of the result.
CryptoKarl· Jul 2026 ago
Mine went the other way on perps. Same filter, opposite conclusion, which probably says the answer is instrument-specific rather than universal.
MLcurious· Jul 2026 ago· edited Aug 2026 ago
ok dumb question. How did you actually measure "oscillates vs trends" on your instrument? like is there a number you computed or did you just backtest with and without the filter and compare? i keep wanting to classify regimes first but every time i try i end up just fitting the label to whatever made the backtest look good
I
IndicatorSkeptic· Aug 2026 ago· edited Aug 2026 ago
So the fix for a grid loading into a decline is... a 3600 period average telling you about a decline that already happened. Very timely. I'm not saying don't do it, you did the honest thing and reported it cost you, but half of these filters are just "be flat after the move" wearing a hat. Curious if you tried just capping how many levels can be open at once instead, same wind-down, no lag to argue with.
Sign in to reply →
← All automated trading