> For the complete documentation index, see [llms.txt](https://docs.bigbeluga.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bigbeluga.com/main-toolkits/market-core-pro-tm/custom-alert.md).

# Custom Alert()

### How Custom Step Alerts Work

Custom Step Alerts allow you to build a multi-step trading strategy by chaining different technical events together in a specific sequence (e.g., Step 1 -> Step 2 -> Step 3).

{% embed url="<https://youtu.be/kKLVYSPizXc>" %}

Instead of alerting you on a single isolated event, a final alert is only triggered if your selected conditions happen one after the other within a strict, user-defined time limit.

### 1. The Setup Controls

* Use Custom Alerts (Checkbox): Turns the entire multi-step tracking sequence rule on or off.

<div data-with-frame="true"><figure><img src="/files/ntbPg2yZ3ZJmNOFakpB7" alt=""><figcaption></figcaption></figure></div>

* Max Bars Allowed Between Steps: \
  This is your countdown window. Once Step 1 triggers, the script starts counting down candle bars.&#x20;

<div data-with-frame="true"><figure><img src="/files/Ju50KJU3LfvHZBknt43O" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
If the next step in your sequence does not happen within this number of bars, the entire sequence resets back to the beginning.
{% endhint %}

### 2. Understanding the Steps (1 to 5)

You can assign any enabled technical indicator or pattern to a specific order number using the Step input field:

* Sequential Steps (Different Step Numbers): \
  If you set Order Blocks to Step 1 and Market Structure to Step 2, the Order Block event *must* happen first. The Market Structure event must happen at least 1 bar later for the sequence to continue.

<div data-with-frame="true"><figure><img src="/files/LUqSyPnNxHE3gxKwjGEb" alt=""><figcaption></figcaption></figure></div>

* Simultaneous Steps (Same Step Numbers): \
  If you set two different alerts to the same step number (e.g., both on Step 1), both conditions must hit on the *exact same candle bar* to trigger that step.

<div data-with-frame="true"><figure><img src="/files/b6iSot9F7O3itRh6yI0S" alt=""><figcaption></figcaption></figure></div>

### 3. Visual Tracking on Your Chart

The indicator features a visual tracking bar at the bottom of your chart so you always know the status of your setup:

<figure><img src="/files/PVFcfwI0xi0KjovFWyxA" alt=""><figcaption></figcaption></figure>

* The Gray Line (The Buffer Window): As soon as Step 1 is triggered, a gray bar tracking sequence appears at the bottom of the chart. This shows you that the system is actively waiting for your next step(s). It will stay visible for as long as your "Max Bars Allowed" settings specify.
* The Orange Square (The Final Trigger): If all your configured steps successfully trigger in sequence before the countdown runs out, an orange square plots at the bottom of the chart, signaling that the entire custom alert condition has been met.
*

```
<figure><img src="/files/IDJzcZr7wg0DLtsykAIu" alt="" width="563"><figcaption></figcaption></figure>
```

### 4. External Source Condition (Optional)

The External Source option allows you to integrate any third-party indicator or price plot currently loaded on your chart directly into your custom step alert sequence. This lets you build highly tailored multi-indicator filters (e.g., only triggering an alert chain if RSI is below a certain threshold or if price crosses a specific moving average).

**Configuration Settings**

* External Source Toggle: Check this box to activate the external filter as part of your alert sequence.

<div data-with-frame="true"><figure><img src="/files/c6YK0zC8JhqWwJflPCOl" alt=""><figcaption></figcaption></figure></div>

* Source Selector: Choose the specific data stream from your chart that you want to track (e.g., `RSI`, `Close` price, `EMA`, or another indicator's plot).

<div data-with-frame="true"><figure><img src="/files/COTAVmNdnc6z7z9jGI7J" alt=""><figcaption></figcaption></figure></div>

* Condition Dropdown: Define the mathematical or behavioral rule the external source must meet:

  * Equal: Triggers when the source value is exactly equal to your target value.
  * Greater Than / Less Than: Triggers when the source value stays strictly above or below your target value.
  * Crossing Over / Crossing Under: Triggers specifically at the exact moment the source crosses above or below your target value.
  * Crossing: Triggers when the source crosses the target value in either direction.

  <div data-with-frame="true"><figure><img src="/files/Y4tYaH3EOxegJMMCw6Eh" alt=""><figcaption></figcaption></figure></div>
* Value Input: Enter the specific numeric threshold or level for the condition (e.g., `50` for RSI, `30` for oversold conditions, or a specific price level).
* Step: Assign the sequence order for this external condition. For example, if set to `Step 1`, the external source condition must be satisfied first before the script looks for your chosen signal steps (like Trend Signals or FlowTrend).

{% hint style="info" %}
When active, the external source acts as a strict gateway or step within your Max Bars allowed between steps rule. The alert will only fire if the external source meets your chosen condition in the exact step order you have configured.
{% endhint %}

## How to create Custom Alert()

{% stepper %}
{% step %}

#### Set the Maximum Bar Window

In the Max Bars allowed between steps field, enter the maximum number of candlesticks that can pass between each step. If the next step doesn't happen within this window, the whole sequence resets.

<div data-with-frame="true"><figure><img src="/files/B3JHWJ8EAZTlKM6QsGMG" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/U7Ee8Zr6LGSlkZzyk1an" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Assign Your Steps (1, 2, 3...)

Look through the available signals (Order Blocks, Market Structure, Fair Value Gaps, etc.) and assign them a sequence number using the Step inputs:

* Step 1 is the trigger that starts the chain.
* Step 2 must happen after Step 1 (within the max bar limit).
* Step 3 must happen after Step 2, and so on.

<div data-with-frame="true"><figure><img src="/files/Xfv1bqTt9SftsfguXXKm" alt=""><figcaption></figcaption></figure></div>

* Set any signals you don't want to use to Disabled.
  {% endstep %}

{% step %}

#### Add an External Indicator Filter (Optional)

If you want to tie your alert to an outside indicator like RSI or MACD:

<div data-with-frame="true"><figure><img src="/files/PZELWcQ7gL5xBhaAmbFP" alt=""><figcaption></figcaption></figure></div>

1. Check the External Source box.
2. Select your indicator from the dropdown menu (e.g., `RSI: RSI`).
3. Choose a condition (e.g., `Greater Than`, `Crossing Over`).
4. Type in your target value (e.g., `50`).
5. Give it a Step number to decide exactly when this condition needs to be true during your sequence.

{% endstep %}

{% step %}

#### Create the Alert in TradingView

Once your settings look good in the indicator panel:

1. Now, press Alt + A on your keyboard (or click the Clock icon on the right menu bar) to open the official TradingView Alert Creation box. Configure this window exactly like this:

<figure><img src="/files/XEywRuNEQbcJ4BWAibfC" alt=""><figcaption></figcaption></figure>

2. Under Condition, select Market Waves Pro.
3. Choose the **Custom Alert()** option from the secondary dropdown.

<div data-with-frame="true"><figure><img src="/files/GyLO0hyvrhuOtxl9Of8Q" alt="" width="443"><figcaption></figcaption></figure></div>

4. Set your notification Name and Message.

<div data-with-frame="true"><figure><img src="/files/kitsxeazOFTaPimVLEkn" alt="" width="434"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Create alert

Apply name and Message and create alert.
{% endstep %}
{% endstepper %}

### Step Alerts Breakdown Table

Configure your custom sequence using any combination of the following technical triggers:

| **Alert Category**     | **Description & Available Options**                                                                                                                                                                                                           |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Order Blocks           | <p>Triggers based on Order Block interactions.</p><p></p><p>• Options: <em>Any Breakout, Breakout (Bullish/Bearish), Any Touch, Touch (Bullish/Bearish)</em></p>                                                                              |
| Market Structure       | <p>Triggers when key structure shifts occur.</p><p></p><p>• Options: <em>Any BOS, BOS (Bullish/Bearish), Any ChoCh, ChoCh (Bullish/Bearish)</em></p>                                                                                          |
| Fair Value Gaps        | <p>Tracks gaps in price delivery.</p><p></p><p>• Options: <em>Any Breakout, Breakout (Bullish/Bearish), Any Created, Created (Bullish/Bearish), Any Retest, Retest (Bullish/Bearish), Any iFVG Retest, iFVG Retest (Bullish/Bearish)</em></p> |
| SFP Patterns           | <p>Swing Failure Patterns tracking liquidity sweeps.</p><p></p><p>• Options: <em>Any SFP, SFP Bullish, SFP Bearish</em></p>                                                                                                                   |
| Support & Resistance   | <p>Key level updates and breaches.</p><p></p><p>• Options: <em>Any S/R Formed, High Formed, Low Formed, Any S/R Crossed, Crossed Up, Crossed Down</em></p>                                                                                    |
| MTF Cross Alerts       | <p>Higher timeframe level breaches.</p><p></p><p>• Options: <em>Daily/Weekly/Monthly (All, Bullish, or Bearish crosses)</em></p>                                                                                                              |
| Chart Patterns         | <p>Structural breakout boundaries.<br></p><p>• Options: <em>Any Channel Break, Channel Break Up/Dn, Any Wedge Break, Wedge Break Up/Dn</em></p>                                                                                               |
| Liquidity Alerts       | <p>Sweeps, pools, and liquidity expansion metrics.</p><p></p><p>• Options: <em>Created (All/Bullish/Bearish), Grabbed (All/Bullish/Bearish), Bubble (All/Bullish/Bearish)</em></p>                                                            |
| Fibonacci Range Alerts | <p>Price interactions with key macro Fibonacci boundaries.</p><p></p><p>• Options: <em>All, Bullish, Bearish</em></p>                                                                                                                         |
| Session Break Alerts   | <p>Multi-session range or Opening Range Breakout (ORB) expansions.</p><p></p><p>• Options: <em>All, Bullish, Bearish</em></p>                                                                                                                 |

{% hint style="info" %}
⚠️ Note: To link an alert feature into your custom step sequence, ensure its main display toggle is turned on in your primary settings menu, and change its dropdown from ❌Disabled to your desired rule.
{% endhint %}
