Skip to content

Commit

Permalink
docs(py): update the examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Sep 14, 2024
1 parent 32e8be8 commit 1d2cd67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Level-3 Backtesting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
"id": "cf051d07-5757-4609-a46b-b4a48be72749",
"metadata": {},
"source": [
"The impact of the difference can vary depending on the characteristics of the strategy; for some strategies, Level-2 estimation may be sufficiently accurate, while for others, it may not be. This comparison is intended to highlight these differences. In markets that only provide Level-2 data, it is important to develop a realistic queue position model based on live trading data. Although Level-3 data offers direct order queue position information, it is still crucial to validate backtesting results against live trading results. For example, in this CME Level-3 backtest, the fill simulation does not account for order fills by implied orders."
"The impact of the difference can vary depending on the characteristics of the strategy; for some strategies, Level-2 estimation may be sufficiently accurate, while for others, it may not be. This comparison is intended to highlight these differences. In markets that only provide Level-2 data, it is important to develop a realistic queue position model based on live trading data. Although Level-3 data offers direct order queue position information, it is still crucial to validate backtesting results against live trading results. For example, in this CME Level-3 backtest, the market depth doesn't include implied orders."
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
" max_position = grid_num * order_qty\n",
" # Our half spread is just half a tick size,\n",
" # but it's considered a round-off error, so we use 0.49, which is slightly less than 0.5.\n",
" # If you set a lower value, the order will tend to stay to the best bid and offer, even when book pressure increases.\n",
" # You can think of it as a threshold for backing off based on book pressure.\n",
" half_spread = tick_size * 0.49\n",
" grid_interval = tick_size\n",
" skew_adj = 1.0\n",
Expand Down

0 comments on commit 1d2cd67

Please sign in to comment.