Deep Pattern Builder is the most advanced indicator within the DeepCharts suite. It enables you to build fully customized trading logic using relational conditions and to automatically backtest those conditions through the built-in simulation engine.
To properly understand this indicator, we must first understand the core concepts behind condition building and how multiple conditions are combined to form complex trading logic.
Each condition in Deep Pattern Builder is built using:
Let’s break these down step by step.
There are three types of inputs:
This input type allows you to reference different components of a candle, including:
Open, Close, High, Low, Bid Volume, Bid NT, Ask Volume, Ask NT, Total Volume, Total NT, Delta Volume, Delta NT, Low–High Ticks, Open–Close Ticks, POC Price %, POC Total Volume, POC on Shadow, Cumulative Delta Volume.
This input type allows you to dynamically fetch values from another indicator applied to your chart (explained later in this article).
A predefined numerical value that you manually enter.
The available mathematical operators are:
+ (Addition)/ (Division)Logical operators define the relationship between two calculated values:
> Greater Than>= Greater Than or Equal To= Equal To<> Not Equal To< Less Than<= Less Than or Equal ToLet’s begin with a simple example using constant inputs.
Assume:
We can evaluate:
You can use up to four inputs in a single condition:
Example:
With four inputs and operator combinations, hundreds of logical structures can be created.
Now let’s apply the same logic using real market data.
Assume:
Condition:
A − B = 10
If a candle opens at 100 and closes at 90:
100 − 90 = 10
The condition becomes True.
This means we just defined a rule that detects a 10-tick bearish candle. Based on this condition, we can plot a marker (circle, square, etc.) on the chart.
We can also fetch values from another indicator.
For example:
Condition:
A = -30
This condition becomes true whenever a candle has −30 delta, indicating aggressive selling. A marker can then be plotted on the chart whenever this occurs.
Deep Pattern Builder allows combining multiple conditions using:
If:
Combination = Condition1 OR Condition2
Result = True
(Only one condition needs to be true.)
Combination = Condition1 AND Condition2
Result = True only if both conditions are true.
You can combine up to four conditions:
Combination = (Condition1 OR Condition2) AND (Condition3 OR Condition4)
If:
Then:
(True AND False) OR (False AND False)
False AND False
Result = False
There are 4 Conditions you can set
Enables the condition.
Each condition allows four inputs.
Click the settings icon beside each input to configure:
Options:
When Reference is selected, you can choose:
Open, Close, High, Low, Bid Volume, Bid NT, Ask Volume, Ask NT, Total Volume, Total NT, Delta Volume, Delta NT, Low–High Ticks, Open–Close Ticks, POC Price %, POC Total Volume, POC on Shadow, Cumulative Delta Volume.
If enabled, the value will be loaded from the previous candle instead of the current one.
Allows dynamic data retrieval from another indicator.
Example:
To load Delta from Deep Stats:
Allows manual entry of a predefined numeric value.
Located between the AB block and CD block.
Defines the final comparison between the two calculated results.
Located under Combination Settings.
All enabled conditions are combined using OR.
Example with 3 conditions:
Condition1 OR Condition2 OR Condition3
Condition1 AND Condition2 AND Condition3
Allows custom grouping using the Advanced Combination section for mixed logic structures.
If enabled, conditions are evaluated only after the candle closes.
The configuration is similar to the Imbalance Tracker indicator.
Defines how many historical days to calculate.
Select marker or background color.
Adjust background transparency.
Before using alerts:
The Simulation section allows you to backtest your custom logic automatically.
Activates simulation.
Choose Buy or Sell.
If enabled, new signals can open additional positions even if one is already active.
If set to 2, for example, the order must fill within the next 2 bars. Otherwise, it is cancelled.
Fixed stop-loss in ticks.
Activates trailing stop.
Defines how many ticks in profit before trailing activates.
Distance in ticks between price and new stop after activation.
You can configure multiple targets:
Color: Set the color of the bid marker
2 Color: Set the color of the ask marker
Subgraph style: you can select any style of the marker from here
Once all settings are configured:
The simulation will run and generate a performance report.
You can: