Deal Entry Profile
- Indicatori
-
Kim Seongyu
I approach investing by asking what drives an investment’s return, what could undermine it, and what evidence would change my view. - Versione: 1.1
- Attivazioni: 5
Review where an entry landed relative to the prices that attracted activity earlier in its session. Attach Deal Entry Profile to an MT5 chart and select one of your account’s entry deals on that symbol. The panel reconstructs the price distribution using only the broker records that precede the deal. The chart marks the entry price and time.
Read a profile
The gold histogram row contains the point of control (POC), the busiest displayed price row. Teal rows form a contiguous value area containing at least 70% of the selected activity. The panel gives its low (VAL), high (VAH) and the entry’s position inside, above or below that range. Outside the area it also gives the distance to the nearest boundary in quote points or trade-price increments. Hover over a bar for its lower price and weight.
Automatic source selection follows the symbol’s chart mode. Bid charts count each flagged Bid or Ask update once at the prevailing Bid. Last charts use flagged trade records at Last, weighted by the positive trade size the broker reports. The Profile source input lets you choose either explicitly. A quote update count measures feed activity. The two sources are calculated separately. Trade mode withholds the profile if a trade event lacks a usable Last or size.
Choose the reference
- Entries opens the latest matching deal. The arrow buttons move one fill at a time. Set a lookback of 1–365 days, filter by magic number or enter an exact deal ticket in Inputs. Buy and sell entries and netting reversals qualify ( DEAL_ENTRY_IN and DEAL_ENTRY_INOUT ). Each partial execution has its own deal ticket. The display identifies the side, ticket and magic number. For a reversal, the reference is the recorded reversal deal price.
- Last bar uses the opening time of the latest chart bar. On a regular MT5 chart, Pick bar lets you click a price candle. Its opening time becomes the cutoff and the clicked chart price becomes an explicitly selected reference. In Inputs, Server time accepts a past broker time, millisecond offset and optional reference price. A reference input of zero uses the last qualifying record before the cutoff.
- Find bar centers the market chart on the chosen time. Return restores the previous position and automatic scrolling preference. Refresh reloads the current selection.
- Example opens an isolated sample that uses fixed illustrative prices and quote counts. It leaves the market buffers empty. On first attachment to a visual Strategy Tester with the default unfiltered entry selection and no qualifying deals, the indicator displays this labeled sample. Choose Last bar to inspect the tester’s price history, or Entries after the tested EA has opened a simulated position. If playback is paused, resume it so the next tick can process the button. For historical comparisons, choose real ticks when available.
Time, coverage and calculation
Set the daily session opening hour and minute in broker-server time. An entry before that clock time belongs to the session that began on the previous server date. The left endpoint is included. The cutoff and every tick sharing the entry millisecond are excluded, including ticks that may have preceded the trade within that millisecond.
Choose a maximum of 4–20 equal-width price rows. The indicator fits those rows to the observed range on the source price grid. The final row ends at the highest observed tick. The POC price is the central tick of its row, rounded to the lower tick when necessary. Ties for the busiest row go to the lower row. The value area expands from the POC one adjacent row at a time, adding the heavier neighbor first and the lower neighbor on a tie.
For completed minutes before the cutoff, the indicator checks the available M1 tick count against the raw tick history. A shortage, a failed history query or unsynchronized data produces a reason in the panel. Gaps absent from both broker histories and any missing records within the unfinished cutoff minute cannot be established from these checks. The supported load is 240,000 raw ticks per session and fewer than 8,192 raw ticks in a single millisecond. If the full account query is too large, narrow its lookback or select an exact entry ticket.
The Data Window and iCustom expose POC (buffer 0), VAL (1), VAH (2) and the entry or reference price (3) on the selected real-history chart bar. Other bars and the isolated example return EMPTY_VALUE . Deal Entry Profile reads local MT5 market and account history and never places, modifies or closes orders.
Gallery
The simulated-entry screenshot follows a Strategy Tester buy on ticket 2. With the session set to 01:03 broker time, 14 quote updates preceded the fill at 01:03:07.887. The simulated fill of 3991.58 was 20 quote points below the value area at 3991.78–3992.02. Counting the quote in the fill millisecond would move the lower boundary to 3991.53 and place that same fill inside the area. To review your own case, set your session start in Inputs and select Entries on a chart with a matching entry deal. The server-time screenshot uses historical quotes from a dedicated demo feed. The chart-pick screenshot uses a reference selected with the mouse. The example screenshot shows the fixed illustrative dataset.
