Question

Assume you want to "keep" your limit order to buy "MSFT" always $0.10 cheaper than current Offer.

So if Offer moves you should move your order as well.

For example if Offer was moved from 30.10 to 30.11, you have to move your order from 30.00 to 30.01

The problem is that if by some reason Offer moves frequently between 30.10 and 30.11 you will also move your order frequently. It's too bad because stock exchange "charges" for extra transactions and so we should keep number of transactions as small as possible.

So I want to make my series more "stationary". I.e. i want to replace such series "30.00 30.01 30.00 30.01 30.00 30.01 30.02" to probably such series "30.00 30.00 30.00 30.00 30.00 30.01 30.02"

I don't know how exactly "Offer" will change, but I need to "limit" number of movements of my order.

So I would suggest to use such simple Solution1: if order moves from Price1 to Price2 then it's prohibited to move this order to Price1 for the next period of time (1 second or something). This will cover all cases. For example:

  1. Price1 -> Price2 - allow
  2. Price2 -> Price3 - allow
  3. Price3 -> Price1 - decline if not enough time elapsed

I can also suggest Solution2:

Instead of "current Offer" use "minimal Offer for last period of time". For example "minimal Offer for last second" will not change too often.

In "Solution1" i immediately react on up/down change but filter out "repeated" change. However I will still move "once per period".

In "Solution2" i react with "delay" on up change and immediately react on down change but I will not move at all even sometimes, because every time lowest Offer repeat my "stopwatch" will be "reset" and "tick again for one second". So if "lowest offer" repeat once per second or more I will just stay at some point without any movements.

What do you think what can you suggest?

No correct solution

OTHER TIPS

Not sure why you want a fixed offset (0.10 in this case). I would go for (0.10-x, 0.10+x) range. The selection of x would depend on the transaction fee. I will let you worry about the relation between transaction fee, x and your expected profit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top