> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# RearmAlert()

## Definition

Rearms an alert created via the **Alert()** method.

A NinjaScript generated alert may need to be rearmed after the alert is triggered depending on the **Alert()** method's **rearmSeconds** parameter.

## Method Return Value

This method does not return a value.

## Syntax

`RearmAlert(string id)`

## Parameters

| Parameter | Description                                          |
| --------- | ---------------------------------------------------- |
| id        | A unique string id representing an alert id to rearm |

## Examples

```csharp
protected override void OnBarUpdate()
{
   //rearms "myAlert" on each new trading session
   if(Bars.IsFirstBarOfSession)
     RearmAlert("myAlert");
}
```