BookMap User Guide for NinjaTrader
When using BookMap as a Strategy on NinjaTrader, traders should be aware of several limitations. One major limitation is that BookMap can only display orders and positions initiated during the current session; it cannot display orders and positions from NinjaTrader or from previous BookMap sessions . Another limitation involves the inability to add instruments once BookMap has started, necessitating users to close and reopen BookMap to add new symbols . Furthermore, due to NinjaTrader’s API structure, functionalities like 'flatten all positions' from the NinjaTrader SuperDOM cause BookMap to close . Traders should also be mindful that pending orders on BookMap might automatically be closed if certain NinjaTrader order handling settings are left unchanged . These limitations underscore the need for strategic planning and configuration before using BookMap as a Strategy.
The trades visualization feature in BookMap plays a crucial role in providing a graphical representation of all trades executed during a session for the displayed instrument. This feature presents trades as varying-sized red or yellow circles that appear over the best bid and ask lines . The area of each circle is proportional to the total executed volume, scaled for each instrument, while the center of a circle marks the exact time and volume-weighted average price of trades at given pixel locations. The color gradient from red to yellow indicates whether selling or buying activity predominates; redder circles denote greater selling activity, and yellower circles indicate predominant buying activity . To configure this feature, users can enable trades visualization by selecting 'Market’s trades' in the trading configuration settings . This visualization provides immediate insights into trade flows, aiding traders in evaluating market sentiment and activity.
When closing BookMap and NinjaTrader sessions with open orders or positions, traders might face challenges primarily due to API limitations. Specifically, NinjaTrader’s API does not display orders and positions that were initiated before the current session in BookMap; thus, closing BookMap may inadvertently leave the trader without full visibility over remaining open orders or positions . Additionally, using functionality like ‘flatten all’ through NinjaTrader’s SuperDOM can automatically close BookMap, which creates a risk of executing unintended market actions without prior confirmation . Furthermore, if the order handling settings are not appropriately managed, notably the "Exit on close" option, traders may find their pending orders prematurely closed upon exiting BookMap . These aspects underline the importance of understanding these system interactions and ensuring all data and trading configurations are fully settled prior to closing the session to avoid unintended exposures or market actions.
BookMap enhances a trader's ability to analyze market dynamics by providing a consolidated visualization of past and present market depth along with the evolution of the order book activity. The configurable color scheme allows traders to visualize which aggressors were more dominant at specific price levels over time . This visualization helps traders to assess the strength and weakness of different price levels by displaying the volume of executed orders (buyer vs. seller aggressors), which can indicate potential support and resistance levels. Additionally, the order book's history and color-coded representation of order sizes give traders insights into market trends and liquidity beyond the exchange-provided data . This enables traders to incorporate these insights into timely trading actions using the one-click trading capability in BookMap .
To set up BookMap as a live trading tool on the NinjaTrader platform, follow these steps: First, import the BookMap script as a Strategy into NinjaTrader through File -> Utilities -> Import NinjaScript, then select the appropriate BookMapIndicator.zip file . After importing, open NinjaTrader and connect to a market depth data provider . Create a new chart with an instrument, using 'Seconds' for the time setting and 'Bars' for loading data to expedite the process . Then, right-click on the chart to choose 'Indicators' or 'Strategies', depending on how BookMap was imported, and configure BookMap settings by enabling it as a Strategy if needed . Finally, add any additional instruments to BookMap by entering them into the 'BookMap Symbols' field in the Strategy configuration window . This process ensures BookMap is fully integrated and ready for live trading on NinjaTrader.
BookMap assists traders in estimating market depth beyond the exchange-transmitted range by retaining the history of the order book size at each price level along with the color-coded representation of the order book . When certain price levels go out of the range transmitted by the exchange, such as CME's 10 levels of bid and ask, BookMap keeps a record of the last transmitted size of these levels and updates them when they return to the transmitted range. This historical record allows traders to visualize potential changes in market depth for price levels not currently covered by the exchange data. The brightness of the color shades indicates larger order book sizes, providing an intuitive way to estimate market depth beyond what is currently visible in the market data feed . This capability allows traders to understand liquidity dynamics at deeper levels of the market.
Using FIFO (First-In, First-Out) queue approximations for pending orders in BookMap allows traders to gauge the likely position of their orders in the pending order queue at specific price levels. This approximation employs pessimistic assumptions about canceled orders, enabling traders to understand their order's potential execution priority compared to others . It helps traders assess how likely their orders are to be filled promptly, which can be critical for strategy adjustments in fast-moving markets. The accuracy of this approximation is contingent upon data quality and platform distribution factors. To configure this feature, users click the trading configuration icon and select 'Orders Queue' to activate queue approximations. This representation is visually depicted by white vertical lines overlaid on the order book histogram, illustrating the order's placement relative to current pending order volume . This feature enhances traders’ ability to manage orders effectively within the scope of prevailing market conditions.
The configuration of one-click trading in BookMap significantly impacts order execution by streamlining the placement of buy and sell orders directly from the chart interface. To enable one-click trading, users must access the trading configuration and enable this feature, specifying the number of contracts per order . Once enabled, traders can place orders with a single click at desired price levels. The efficiency gained from this feature comes with certain considerations: traders should ensure that the specified order size aligns with their risk management guidelines and that their trading strategy is adaptable to the fast execution this feature allows. Additionally, care should be taken in the use of click precision and chart configuration to avoid accidental order placements, especially in volatile markets. Traders should also validate that their platform and connectivity settings are stable to ensure that each click reliably translates to timely market action. Such meticulous preparation helps leverage the swiftness of one-click trading without increasing operational risk.
BookMap Replay can be utilized as a powerful tool for enhancing trading strategies without real-time market exposure by allowing traders to analyze and simulate trading actions in a controlled environment using historical market data. Through BookMap Replay, traders can observe the evolution of market depth and price movements for recorded sessions, enabling them to test hypothetical trading strategies without financial risk . This mode enables the same chart features as live mode, facilitating detailed insights into how strategies perform under various market conditions . Traders can pause, rewind, accelerate, or slow down the replay speed to focus on critical moments, evaluate decision points, and refine entry and exit strategies. This process aids traders in identifying strengths and weaknesses in their approach and informs better strategy development before transitioning to a live environment.
It is important for users to initially use BookMap with a live data feed and a paper trading account before transitioning to a live trading account to minimize financial risk. This approach allows traders to familiarize themselves with the features, functionalities, and potential limitations of BookMap without the pressure and risk of real financial loss . By simulating trades using live market conditions, traders can test their strategies, assess the reliability and accuracy of BookMap's market data visualization, and modify their approach as needed. Such a transition period equips users with experience and confidence in using the tool effectively before executing trades with actual money in a live trading account.









