oAlert_LimitValue

oAlert_LimitValue

Signatures
oAlert.LimitValue() As Single

Purpose
This is a property of an Alert object.  It returns the value of a level based alert such as Last or Net Change.  If the alert is not level based such as New Pattern or New Signal it will return a value of 0.

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 Level=” & oAlert.LimitValue)
End Sub

>