Files
spark/testing/manual/algos/join_controlled.txt
T
2019-05-04 11:53:12 -04:00

33 lines
1.5 KiB
Plaintext

Test Author: Taha
If it breaks: Pedro
The goal of the join order is to watch the opposite-inside market and join when the market flips and
has at least threshold size. (flip is when the best offer becomes the best bid, or the market trades
away from you (the line moves up in the gui))
0. This needs sim market data **not** to be merged with replay (or cert), so we can create our own markets.
Also make sure you have limits to trade SI Future
1. Bring up a ladder, lets say in SIN1 (does not matter which security)
2. Create both sides of the market by entering 10 lot limit orders at 15.550 and 15.575
(if there are no markets use the M View and the ticket to enter)
3. Enter a 5 lot buy Join order with an abs threshold of 1 at 15.525. When the Join order is placed
it takes a snapshot of where the top of the book was. Since its a buy, it will wait for the top of the buy side
to advance to where the ask is AND for qty >= threshold
4. Verify that a limit order is sent at where the Join is.
5. Now move the ask market up a tick and the bid market to where the ask was (15.575). Verify that the Join
moved its Child limit order to 15.575 ie it joins the bid market.
6. Cancel all orders and put the market to where it was (step 2.)
7. Now an enter a Join order with threshold 15, again at
15.525. Repeat step 5. except that the Join order will not join since
the top of the bid qty threshold of 15 is not met.
8. Increase the top of the bid qty by adding on1 limit order there at a time. When the qty
reaches 15 it should join.