Alerts
The Alerts system is one of the most advanced features of the Institutional Liquidity and Price Action Concepts [AlgoAlpha] indicator. It transforms the indicator from a simple visual guide into a fully automated monitoring tool. Instead of watching the charts all day for specific price action events, you can build a precise set of rules and have TradingView notify you only when your exact conditions are met.
The system is built on a flexible, multi-step, multi-condition logic engine. You can combine triggers (events that happen on a single bar) and states (ongoing conditions) from any of the indicator's components—such as market structure, liquidity hits, or trend line breaks—to create highly specific and personalized alert criteria.
The Logic Engine: Steps and Conditions
The alert engine is structured around a sequence of up to 7 Steps. For an alert to fire, all configured steps must be completed in order. Each step, in turn, can be composed of multiple Conditions.
Step: A stage in your alert sequence. Step 1 must be completed before the system starts looking for Step 2, and so on.
Condition: A specific rule that must be met. You can assign up to 12 different conditions to the various steps.
Boolean Operator (AND/OR): Within a single step, you can combine multiple conditions using
AND
(all conditions must be true) orOR
(at least one condition must be true).
Hint: How the Alert Logic Works
The alert system evaluates conditions for any given step in a specific order. Understanding this is key to building complex alerts correctly.
Hierarchy is by Number: The system processes conditions based on their input number (
Condition 1
, thenCondition 2
, then 3, and so on), not the order you enable them.Boolean Chaining: The
AND
/OR
boolean operator for a condition connects it to the logical expression that comes before it in the sequence.First Boolean is Ignored: Because of this chaining, the boolean setting for the very first enabled condition in any step's sequence is always ignored, as there is no expression before it to connect to (this is why
Condition 1
has no boolean input option).
Example: Imagine for Step 1 you enable:
Condition 2
(set toOR
)Condition 4
(set toAND
)Condition 5
(set toOR
)
The final logic will be evaluated as: (Condition 2) AND (Condition 4) OR (Condition 5). The OR
from Condition 2 was ignored. The logic used the AND
from Condition 4 and the OR
from Condition 5.
Example Scenario: High-Confluence Bullish Reversal
Imagine you want an alert for a high-probability bullish reversal after a Change of Character. Your rules might be:
A Bullish Change of Character (CHoCH) must occur, signaling a potential trend shift.
After the CHoCH, the price must pull back and hit a liquidity zone.
The overall market structure must be bullish as a final confirmation filter.
You would configure this as a 2-step alert:
Step 1:
Condition
=Bullish CHoCH [Trigger]
Step 2:
Condition
=Bullish Liquidity Hit [Trigger]
ANDMarket Structure Bullish [State]
The alert will only fire if a Bullish CHoCH occurs, and then on a subsequent bar, price hits a bullish liquidity zone while the overall market structure state is bullish.
Condition Types: Triggers vs. States
It's crucial to understand the difference between a Trigger and a State.
Trigger Conditions: These are events that happen on a single bar. They are "true" for only one moment.
Example:
HH Detected [Trigger]
. This is only true on the exact bar where the Higher High label appears.
State Conditions: These are ongoing conditions that can be true for many bars.
Example:
Market Structure Bullish [State]
. This is true for as long as the indicator's market structure logic remains bullish.
Best Practice: A robust alert often combines states and triggers. Use state conditions in the earlier steps to define the ideal market environment, and use a trigger condition in the final step to signal your entry.
External Conditions
The system allows you to incorporate up to five External Conditions. This powerful feature lets you use data from any other indicator on your chart (or even price itself) as part of your alert logic.
For each external signal, you can define:
Source: The data to be evaluated (e.g., the plot of an RSI, a Moving Average, etc.).
Condition: The comparison type (e.g.,
Greater than
,Lesser than
,crossover
, etc.).Value: The threshold to compare against (e.g., a specific value like 50 for an RSI).
This opens up limitless possibilities for confluence, allowing you to integrate your favorite indicators directly into the ILPAC alert engine.
Setting Alerts on TradingView
After configuring your desired conditions in the indicator's settings, here's how to activate the alert on TradingView.
Click on the Alert icon (clock) on the right-hand side of your TradingView chart.
Under Condition, select "Institutional Liquidity...", and then select
ƒ(𝑥) Any alert() function call
.Click Create.
Tip: You can create multiple, different alerts. First, configure the conditions in the indicator settings, then create the alert following the steps above. After the 'Create' button is pressed, that alert is saved with its settings. You can then open the indicator settings again and change the conditions for your next alert without affecting the one you just created.
Settings Reference: Alerts Group
Show Historical Alerts:
When enabled, the indicator will plot a shaded square at the bottom of the chart to show where your custom alert conditions would have fired in the past. This is an invaluable tool for backtesting and refining your alert rules.
Invalidation Type:
Defines how and when an in-progress alert sequence is reset.
Time Interval
: The sequence resets if too much time (a set number of bars) passes between steps.Strict Sequence
: The sequence resets if a later step triggers before an earlier one.Invalidate on Step 1
: The entire sequence resets if the conditions for Step 1 trigger again before the full sequence is complete.
Reset Timeout (bars):
Used with the
Time Interval
invalidation type. Sets the maximum number of bars allowed to pass between steps before the sequence is cancelled.
Condition 1-12 Settings:
Enable Checkbox
: Activates or deactivates this condition.Condition Type
: The dropdown menu where you select the specific trigger or state from any of the indicator's components or an External Signal.Boolean
: (AND
/OR
) Defines how this condition relates to other conditions within the same step. (ExcludingCondition 1
).Step
: Assigns this condition to one of the steps (1 to 7) in the sequence.
Available Alert Condition Options
Market Structure
Bullish CHoCH [Trigger]
Triggers when the market structure changes from Bearish to Bullish (a previous lower high is broken).
Bearish CHoCH [Trigger]
Triggers when the market structure changes from Bullish to Bearish (a previous higher low is broken).
HH Detected [Trigger]
Triggers when a new Higher High (HH) swing point is confirmed.
LH Detected [Trigger]
Triggers when a new Lower High (LH) swing point is confirmed.
HL Detected [Trigger]
Triggers when a new Higher Low (HL) swing point is confirmed.
LL Detected [Trigger]
Triggers when a new Lower Low (LL) swing point is confirmed.
Market Structure Bullish [State]
Is true as long as the overall market structure bias is determined to be Bullish.
Market Structure Bearish [State]
Is true as long as the overall market structure bias is determined to be Bearish.
Support & Resistance / Liquidity
Bullish Liquidity Hit [Trigger]
Triggers when price interacts with a significant bullish liquidity zone from the Heatmap.
Bearish Liquidity Hit [Trigger]
Triggers when price interacts with a significant bearish liquidity zone from the Heatmap.
New S/R Zone Formed [Trigger]
Triggers on the bar a new Support or Resistance zone is first drawn on the chart.
Trend Lines
Bearish Trend Line Formed [Trigger]
Triggers when a new bearish trend line (resistance) is confirmed and drawn.
Bullish Trend Line Formed [Trigger]
Triggers when a new bullish trend line (support) is confirmed and drawn.
Bearish Trend Line Break [Trigger]
Triggers when price closes below a confirmed bullish trend line.
Bullish Trend Line Break [Trigger]
Triggers when price closes above a confirmed bearish trend line.
FOMO Bubbles
Small Bullish FOMO Bubble [Trigger]
Triggers when a small bullish FOMO bubble appears.
Small Bearish FOMO Bubble [Trigger]
Triggers when a small bearish FOMO bubble appears.
Big Bullish FOMO Bubble [Trigger]
Triggers when a large bullish FOMO bubble appears.
Big Bearish FOMO Bubble [Trigger]
Triggers when a large bearish FOMO bubble appears.
External Conditions
External Signal 1
- External Signal 5
True when the corresponding External Condition you configured in the settings is met.
Last updated