DomDom
- Utilitaires
-
Wasin Thonkaew
I use MQL5 and C++ to develop related tools on MetaTrader 5.
Products in Market - Version: 1.92
- Activations: 10
DomDom is built for exchange-traded instruments such as futures, where the broker streams Depth of Market and real trades. It never invents a book: when the broker sends no size, the size cells stay empty.
The panel at a glance
- Ladder button: hides or shows the panel. Hiding it brings the price chart back, and showing it covers the chart again. Session volume is kept.
- Minus, quantity, plus: the size of the next order. Minus and plus change it by one volume step.
- Mkt Buy and Mkt Sell: a market order for the shown quantity. A second click within half a second is ignored.
- FLT: flatten. Cancels every working order and closes every open position on the symbol.
- X: cancels the working orders on the symbol. The position stays open.
- CTR: centers the ladder on the last price and turns auto-center on. It stays lit while auto-center is on.
- @CLR: clears the @Bid and @Ask columns.
- BA Sess: when lit, Vol, Bid/Ask and Delta count from the session open (see "Reading order flow").
- BA CLR: restarts the Bid/Ask count from now. It works only while BA Sess is off.
- 3m: when lit, @Bid and @Ask clear themselves every three minutes.
- Play and pause: starts or pauses session replay.
- Status: "L2" when the broker sends a book with sizes and "no bk" when it does not, followed by the symbol. The broker's server date and time are on the right.
- N: your note on that price.
- P/L: the result of your whole position if price traded at that row, in money or in ticks. Empty while you are flat.
- Vol: traded volume at each price. The point of control is purple. The 70 percent value area is amber, and its high and low have white edges.
- Price: the row of the last trade is highlighted, with the size of that print colored by side.
- Delta Bid and Bid: the change in resting bid size, and the resting bid size from the broker's book.
- @Bid and @Ask: prints that sold into the bid or bought at the ask since the last clear.
- Ask and Delta Ask: the resting ask size, and its change.
- Bid/Ask: volume traded at the bid and at the ask, as two bars.
- Delta: ask volume minus bid volume at that price.
Why DomDom
- Watch liquidity being added or pulled at each price as it happens, not after the bar closes.
- See whether volume traded at the bid or at the ask, and where the session's value sits.
- Act from the same row: one click for a limit, stop or market order, one more to cancel or protect it.
- Mark the levels you care about with notes that are still there the next time you attach DomDom.
- Study the last session after hours with replay.
How to use DomDom
- Attach DomDom to a chart of the symbol you trade. The ladder fills that chart window.
- Optionally, open a second chart of the same symbol on any timeframe, M1 or M5 for example, and place the two windows side by side.
- That is all. DomDom works on its own; the second chart only adds context.
Before your first trade
- Turn on Algo Trading in the MetaTrader 5 toolbar.
- When you attach DomDom, tick "Allow Algo Trading" on the Common tab.
Reading order flow
Trading from the ladder
- Bid or @Bid: below the ask a buy limit, at the ask a market buy, above the ask a buy stop.
- Ask or @Ask: above the bid a sell limit, at the bid a market sell, below the bid a sell stop.
- Price: sells while you are long and buys while you are short. While you are flat, a row below the ask buys and any other row sells.
- P/L: sets a stop loss or take profit at that price.
- N: opens the note editor at that price.
- Vol, Delta Bid, Delta Ask, Bid/Ask and Delta: no action.
- Ctrl+click on Bid, @Bid, Ask, @Ask or Price: a stop order on that side.
- Shift+click on any column except N: a stop loss or take profit at that price. A price on the profit side of your average, or on the average itself, becomes the target. A price on the loss side becomes the stop. Both need an open position.
- Click a row that holds your own working order to cancel it: Bid or @Bid for a buy, Ask or @Ask for a sell, or Price for either.
- Buy Limit, Sell Limit, Buy Stop, Sell Stop: at that price.
- Set SL and Set TP: at that price. On a row that already holds them they read Cancel SL and Cancel TP. Both need an open position.
- Add note: opens the note editor.
Notes mark a level that mattered, such as a large resting bid, or a point of interest to check later. Click the N cell, or choose Add note, then type up to 80 letters, digits and punctuation. Enter or a click elsewhere saves, Esc cancels, and Backspace or Delete removes the last character. Saving an empty note clears it. Notes are stored per symbol and return when you attach DomDom again.
Keyboard and mouse
- Ctrl+Alt+B: market buy.
- Ctrl+Alt+S: market sell.
- Ctrl+Alt+F: flatten.
- X: cancel all working orders on the symbol.
- C: center on the last price and turn auto-center on.
- L: clear @Bid and @Ask.
- Shift+L: clear Bid/Ask, only while BA Sess is off.
- Plus and minus, on the main keyboard or the numeric keypad: change the quantity. They repeat while held.
- Up and Down arrows: move the ladder one price. They repeat while held.
- Esc: close the right-click menu.
Order types
Position, P/L and account handling
- Netting and exchange accounts: the broker keeps one position per symbol, and a close only changes its size.
- Hedging accounts: DomDom shows one net position. A close reduces the oldest ticket of that side first. Selling more than your long, or buying more than your short, covers it and opens the remainder the other way in the same click. Opposite tickets on the symbol are paired off with Close By, and stop loss and take profit are copied to every ticket.
Session replay
Settings
- Market-book levels per side (12): reserved. The ladder shows every level the broker sends with a size.
- Default order quantity (1.0): the starting order size, rounded to the symbol's volume step.
- P/L column units (DOM_PNL_MONEY): money, or DOM_PNL_TICKS for ticks.
- UI scale (1.25): 1.0 is compact and 1.5 is large.
- Auto-clear @Bid/@Ask every 3 minutes (true): the starting state of the 3m button.
- Bid/Ask aggregated from session open (true): the starting state of the BA Sess button.
- Replay mode, shown as "live book + live ticks only" (the default): live data only. "always drive the ladder from cached M1/ticks" always replays, and "replay when the market is quiet / closed" replays when the last quote is more than 15 seconds old or the symbol is not fully tradable. Replay always uses ticks.
- .tkc symbol (empty = this chart): leave it empty. Replay always uses the chart symbol.
- Max ticks to load from that day's cache (500000): caps how many ticks of the session are loaded, for replay and for the session recap at attach.
- Ticks per timer fire (12.0): the replay speed, up to 80.
- UI / replay timer (ms) (50): the screen refresh and replay step, at least 40.
Requirements and limitations
- MetaTrader 5 with algorithmic trading allowed (see "Before your first trade").
- A symbol for which the broker provides Depth of Market with sizes. To check, right-click the symbol in Market Watch and open Depth of Market. If its volume column is empty, DomDom's book columns will be empty too.
- A feed with real trades. Most forex and CFD symbols have no book and no trade prints, so the book, volume, print and delta columns stay empty.
- One DomDom per symbol. Other symbols can run on other charts at the same time.
