oAlert_IsUpperLimit

oAlert_IsUpperLimit

Signatures
oAlert.IsUpperLimit() As Boolean

Purpose
This is a property of an Alert object.  It returns True if the alert is set to “>= At or Above” and returns False if the alert is set to “<= At or Below".

Example
#OmniPilot

Sub OnStartUp
     StartOT
     OmniPilot.OnAlert(AddressOf MyOnAlert)
End Sub

Private Sub MyOnAlert(ByVal oSymbol As SymbolObject, ByVal oAlert As AlertObject)
     LogAction(“An alert has fired on symbol ” & oSymbol.Symbol & ” – Alert is set to ‘At or ” & IIf(oAlert.IsUpperLimit, “Above’”, “Below’”))
End Sub

>