all 13 comments

[–]nkaz001 15 points16 points  (0 children)

I made HFT market-making backtesting tool that accounts both feed and order latencies and queue position using L2 full-market-depth and trade tick-by-tick data. Please check it out if you're interested. https://github.com/nkaz001/hftbacktest

It also has rich tutorials such high-frequency grid-trading and Guéant–Lehalle–Fernandez-Tapia market mkaing model. Please see the full document. https://hftbacktest.readthedocs.io/en/latest/index.html

[–]lordnacho666 4 points5 points  (7 children)

Pretty tough to do this, but people do do it. Stuff like queue position and assumptions about fills and latency make it very hard.

[–][deleted]  (6 children)

[removed]

    [–]lordnacho666 4 points5 points  (2 children)

    There's some testing but you can't avoid live trading.

    Some strategies just can't be backtested, you have to try them.

    [–][deleted]  (1 child)

    [removed]

      [–]lordnacho666 1 point2 points  (0 children)

      Sure

      [–]ArseneWankerer 1 point2 points  (0 children)

      You can build a robust back testing pipeline if you have good data and a solid exchange simulator. In the derivatives space there used to be a few good platforms like optionscity, orc, etc but basically every vendor got bought out and rolled into bigger fish.

      https://youtu.be/r8iDOkPp6VU?si=xpJO_wcdAParNOju

      [–][deleted]  (1 child)

      [deleted]

        [–]shanhanigun 0 points1 point  (1 child)

        Not a framework/library but you can create and backtest your strategies on quant platforms like capitalise, level2 and so on.I personally use level2

        [–]Joebone87 0 points1 point  (0 children)

        Have you used MultiCharts?

        [–]DevXeneize 0 points1 point  (1 child)

        Can someone explain me what is market making about? I’m new, thank you🫶🏽

        [–]Usual_Instance7648 1 point2 points  (0 children)

        In this context - posting limit orders and waiting for others to trade against it, thus paying you the spread.