OneAlert (Function)
The OneAlert function is used to limit alerts to one per bar.
Syntax
OneAlert(Criteria)
Returns (Boolean)
Returns true only on the first tick on a bar that also matches the specified Criteria.
Parameters
|
Name |
Type |
Description |
|
Criteria |
True-False expression that must match for the function to return a "true" value. |
Remarks
The function returns true only on the first tick in each bar on which the function is called and on which the statement contained in the input "Criteria" evaluates to true. Returns False when called on subsequent ticks in that bar, regardless of whether "Criteria" evaluates to true or to false on the subsequent ticks. Repeats process with each new bar.
Example
Condition1 = OneAlert(Close > Close[1]);