Backtest a rule

Set a take profit and a stop, and this replays them against the pool a token really traded against, using the same engine that prices a live fill. Every exit is checked at what a real sell would have fetched out of the reserves at that moment, after your own order moved them and after the fee.

Which is why it will sometimes tell you a rule never triggered even though the chart went straight through your level. A chart is a mid price, and nobody trades at the mid.