Market profile day type is the gate for "only trade after a trend day", or after any of the other day types traders read from a market profile. It works the same way in Backtest, in the Bot, on your chart and in the script you copy to TradingView.
What it reads
A market profile of a time window you state, such as 9:30am to 4:00pm New York time. The window is cut into 30-minute periods from its start. Its first hour, the first two periods, is what every day type is measured against.
The day types
- Normal: the day stayed inside its first hour, and that hour was at least as wide as your number of ticks.
- Non-trend: the day stayed inside a first hour narrower than your number of ticks.
- Normal variation: the day broke out of its first hour on one side only, and its whole range is less than your trend multiple of the first hour.
- Trend: the day broke out on one side and its range reached your trend multiple. A double-distribution day counts as a trend day.
- Neutral center: the day broke out on both sides and closed inside its first hour.
- Neutral extreme: the day broke out on both sides and closed beyond its first hour.
What you set
- The window: a clock, a start and an end, each on a quarter hour. The window must be longer than its first hour.
- Each day type: yes or no. Choose at least one.
- Direction: either way, only the trade's way, or only against it. A normal variation or trend day goes the way it broke out, and a neutral extreme day the way it closed. The other three types always count.
- Narrow first hour, in ticks: needed when you choose normal or non-trend days.
- Trend multiple: needed when you choose normal variation or trend days. 2 means the day's range is at least twice the first hour's width.
Every setting is yours. None has a value until you type one.
When it reads the day
Once the window's end time has passed. So after a 9:30am to 4:00pm profile, today's day type counts from 4:00pm on. Before that, the gate reads the day before's profile.
When it blocks
- The last finished profile was not one of your day types, or went the other way.
- The profile is not whole: its first candle did not open at the window's start, or a 30-minute period had no candles. A holiday's short session is one example. Every entry waits for a whole one.
- A setting is missing. The builder flags it before you save. A strategy that reaches the Bot with one missing takes no trades.
Where you see it working
On the Everything else tab of Activity. When the gate refuses an entry, it says why there.
On your chart
Your strategy's chart only marks setups after the day types you chose, and so does the script you copy to TradingView. The chart's candles must be 1, 3, 5 or 15 minutes, so each sits inside one 30-minute period, and the window's start and end must fall at the start of a candle.
What can go wrong
A day type is a label for a finished day. It says what happened, not what comes next.