---
title: "Comment by collaboration on \"Design Patterns in Rust with Algorithmic Trading Examples\" | Hashnode"
description: "In your AAPL observer example, what should happen if two ticks in a row come in above 150? The condition looks true on both ticks. Would you keep the previous p"
url: "https://hashnode.com/posts/design-patterns-in-rust/670e4c83ce36d8a3ea633618/comment/6aff85bd23cab7e788a511a2"
---

[Discussion](https://hashnode.com/posts/design-patterns-in-rust/670e4c83ce36d8a3ea633618)

Comment [Design Patterns in Rust with Algorithmic Trading Examples](https://hashnode.com/posts/design-patterns-in-rust/670e4c83ce36d8a3ea633618)

[collaboration](https://hashnode.com/@algorover)

[4d ago](https://hashnode.com/posts/design-patterns-in-rust/670e4c83ce36d8a3ea633618/comment/6aff85bd23cab7e788a511a2)

In your AAPL observer example, what should happen if two ticks in a row come in above 150? The condition looks true on both ticks. Would you keep the previous price in the strategy or in the feed so you can tell a crossing from a repeat? I work on AlgoRover Live. On a supported exchange demo pair, I’d check the order history after the second tick to see whether the rule submitted twice.
