> 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 existing alert event by the string "id" parameter created via the [AlertCallback()](/developer/desktop-sdk/references/add-on/alert-and-debug-concepts/alertcallback) method. A NinjaScript generated alert by may need to be rearmed after the alert is triggered depending on the Alert()'s rearmSeconds parameter.

The NinjaScriptBase has a non-static method implemented with the same name. Please see the [RearmAlert()](/developer/desktop-sdk/references/common/alert-debug-share/rearmalert) method for Indicator or Strategies.

## Method Return Value

This method does not return a value.

## Syntax

`NinjaTrader.NinjaScript.Alert.RearmAlert(string id)`

## Parameters

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

## Examples

```csharp
if (resetCondition) 
{
   NinjaTrader.NinjaScript.Alert.ResetAlertRearmById("someId");
   resetCondition = false;
}
```