RearmAlert()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Add On > Alert and Debug Concepts >

RearmAlert()

Previous page Return to chapter overview Next page

Definition

Rearms an existing alert event by the string "id" parameter created via the AlertCallback() method.  A NinjaScript generated alert by may need to be rearmed after the alert is triggered depending on the Alert()'s rearmSeconds parameter.

 

Note:  The NinjaScriptBase has a non-static method implemented with the same name.  Please see the RearmAlert() method for Indicator or Strategies.

 

 

Method Return Value

This method does not return a value.

 

Syntax

NinjaTrader.NinjaScript.Alert.RearmAlert(string id)

 

 
Parameters

id

A unique string id representing an alert id to reset

 

 

Examples

ns

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