oAlert_IsTrendLineAlert | Nirvana Systems Inc.

oAlert_IsTrendLineAlert

oAlert_IsTrendLineAlert

Signatures
oAlert.IsTrendLineAlert() As Boolean

Purpose
This is a property of an Alert object.  It returns the True if the alert type is set to Trendline, otherwise it returns False.  Trendline alerts are set by right clicking on a drawn trendline (or support/resistance) and choosing the option “Set as Alert Line”.

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 & ” – Trendline Alert? =” & IIf(oAlert.IsTrendlineAlert, “Yes”, “No”))
End Sub

 

>