oAlert_Timeframe | Nirvana Systems Inc.

oAlert_Timeframe

oAlert_Timeframe

Signatures
oAlert.Timeframe() As String

Purpose
This is a property of an Alert object.  It returns the timeframe that the alert fired on.  The string will match what is shown in the Periodicity drop down.

I.E. – “1 Minute”, “5 Minutes”, “Daily”, or “Weekly”

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

>