+1 888 340 6572

CheckAlert

From MultiCharts

Returns True if the alerts have been turned on in Formatting Studies > Alerts. True/False is returned on the last bar only.

For the bars other than the last False is always returned.

Usage

CheckAlert

Notes

  • There is a difference between AlertEnabled and CheckAlert. AlertEnabled checks the status on all the bars while CheckAlert does so for the last bar only.
  • Alerts are only generated for the last bar.

Example

The example below shows how CheckAlert can help eliminate redundant calculations on historic bars as well as in cases when alerts are not turned on:

If CheckAlert Then Begin 
    If Volume >= 2 * Average(Volume, 10) Then Alert ("Volume is going up"); 
End;