# Implementing Orders with Interval Estimates

There's a better chance that stock price reaches an interval, say between \$16.91 and \$16.97, then a single price, say \\$16.95. Hence, I generate an interval for a target price, instead of a single price.

Since there are multiple target prices in the interval, you'll need n target orders. You can't generate an order for each price in the interval as that would be too many.

What's the optimal value for n, and what should be each order's price?

• This is unclear to me. Can you provide more background/references? Commented Nov 3, 2013 at 19:52
• See the edit please. Commented Nov 3, 2013 at 20:18

Optimal value of n should be calculated based on how much amount you want to invest in that decision, that can be for example 200 000 of base currency, and minimum order size is 10 000 of base currency then you should have 200 000 / 10 000 = 20 orders in my opinion that are targeted at hotspots where is most single price points inside interval.

EDIT: When you have one target interval, I suggest split price range by orders amount.

When you want target interval: .

$$lr = 16.91; rr = 16.97; n = 20;$$

$$r = rr - lr = 16.97 - 16.91 = 0.06$$

$$step = r / n = 0.06 / 20 = 0.003$$

$$Order [Idx] =Idx * step + lr$$

$$eg. Order [2] = 2 * 0.003 + lr = 16.916$$

• Thanks. Could you elaborate on how to find 20 prices in your example? Commented Nov 6, 2013 at 21:49
• @TomTucker: edit. Commented Nov 7, 2013 at 11:30