Click or drag to resize

IndicatorBase Methods

The IndicatorBase type exposes the following members.

Methods
  NameDescription
Protected methodAddBars(BarType)
Add a secondary series of the specified barType. Instrument, Start date, End date, Session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.)
Protected methodAddBars(String)
Add a secondary series for the specified instrument. BarType, Start date, End date, Session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.)
Protected methodAddBars(String, BarType)
Add secondary bar series Start date, end date, session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.)
Protected methodAddBars(String, BarType, DateTime, DateTime, Session, BackfillPolicy)
Add a secondary bar series
(Inherited from SharpScriptBase.)
Protected methodAddBars(String, BarType, DateTime, DateTime, Session, Boolean)
Adds a secondary bar series
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(ISeriesDouble)
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(Object)
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(ISeriesDouble, Object)
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddLine
Add a new line
(Inherited from SharpScriptBase.)
Public methodAddPlot
Add a new Plot
(Inherited from SharpScriptBase.)
Protected methodAlert(String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(AlertPriority, String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, String, TimeSpan)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(AlertPriority, String, Brush, Brush)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, AlertPriority, String, Brush, Brush, TimeSpan)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlertScanner
Alert message to be sent when the indicator is applied via the Market Scanner with Alert option checked. This method is evaluated only if the method is overriden by user.
Public methodCalculateMinMax
Calculates the minimum and maximum values of the axis
(Inherited from SharpScriptBase.)
Public methodCalculatePriceFromY
Calculates the price from Y point
(Inherited from SharpScriptBase.)
Public methodCalculateXPoint(Double, Int32)
Calculates the x point
(Inherited from SharpScriptBase.)
Public methodCalculateXPoint(ChartStyle, Double, Int32, Int32)
Calculates the x point
(Inherited from SharpScriptBase.)
Public methodCalculateYFromPrice
Calculate the Y point from price
(Inherited from SharpScriptBase.)
Protected methodClone
Clones a sharpScript object
(Inherited from SharpScriptBase.)
Public methodCrossAbove(Double, ISeriesDouble, Int32)
Evaluates when value crosses above a series
(Inherited from SharpScriptBase.)
Public methodCrossAbove(ISeriesDouble, ISeriesDouble, Int32)
Evaluates when 2 (two) series crosses each other
(Inherited from SharpScriptBase.)
Public methodCrossAbove(ISeriesDouble, Double, Int32)
Evaluates when the series crosses above the value
(Inherited from SharpScriptBase.)
Public methodCrossBelow(Double, ISeriesDouble, Int32)
Evaluates when a value crosses below a series
(Inherited from SharpScriptBase.)
Public methodCrossBelow(ISeriesDouble, ISeriesDouble, Int32)
Evaluates when 2 (two) series crosses below each other
(Inherited from SharpScriptBase.)
Public methodCrossBelow(ISeriesDouble, Double, Int32)
Evaluates when series crosses below a value
(Inherited from SharpScriptBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from SharpScriptBase.)
Protected methodGetBarIndexFromTime(DateTime)
Gets the bar index of the primary bar from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.)
Protected methodGetBarIndexFromTime(Bars, DateTime)
Gets the bar index from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAsk
Gets the current ask price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAsk(Int32)
Gets the current ask price. Works in realtime only
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAskVolume
Gets the ask volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAskVolume(Int32)
Gets the ask volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBid
Gets the current bid price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBid(Int32)
Gets the current bid price. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBidVolume
Gets the bid volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBidVolume(Int32)
Gets the bid volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Public methodGetFrozenBrush
Returns the brush as frozen
(Inherited from SharpScriptBase.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLastPrice
Returns the last traded price of the primary bars. In case the realtime price is not available the closing value of the last available bar is returned
(Inherited from SharpScriptBase.)
Public methodGetLastPrice(Int32)
Returns the last traded price. In case the real time price is not available the closing value of the last available bar is returned
(Inherited from SharpScriptBase.)
Protected methodGetSessionDefinition
Get the session definition for the specified time
(Inherited from SharpScriptBase.)
Protected methodGetSessionStartDate (Inherited from SharpScriptBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasValue
Returns if the underlying series has a value
(Inherited from SharpScriptBase.)
Protected methodInvokeAsync
Invoke any action. It is recommended to draw any DrawingBase by invoking this method
(Inherited from SharpScriptBase.)
Public methodIsEqual
Compares two sharp script objects
(Inherited from SharpScriptBase.)
Public methodIsInputEquals
Compares two input
(Inherited from SharpScriptBase.)
Protected methodLog
Log message. It will be displayed in the Logs tab in Main View
(Inherited from PrintLogBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyPropertyChanged
Notify property change
(Inherited from SharpScriptBase.)
Protected methodOnBarUpdate
Called on a new tick
(Inherited from SharpScriptBase.)
Protected methodOnLevel1
Called on every level1 events for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.)
Protected methodOnLevel2
Called on every level2 event for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.)
Protected methodOnStateChange
Called on when the SharpScript state is changed
(Inherited from SharpScriptBase.)
Public methodPlaySound
Plays a sound file
(Inherited from SharpScriptBase.)
Public methodPlot
Plots the SharpScript series values
(Inherited from SharpScriptBase.)
Protected methodPrint(String)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Protected methodPrint(String, Brush)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Public methodRefreshChartObject
Refreshes/re-renders the chartOject. Can be called only when the ShartScript.State == State.Realtime
(Inherited from SharpScriptBase.)
Public methodRemoveChartObject
Removes all the chartObjects drawn by the sharpScript code
(Inherited from SharpScriptBase.)
Public methodRemoveChartObject(String)
Removes the chartObject having the tag name. If tag name is null or empty then removes all the chartObjects drawn by the indicator
(Inherited from SharpScriptBase.)
Protected methodRoundToTickSize(Double)
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.)
Protected methodRoundToTickSize(Int32, Double)
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.)
Protected methodSetSecondaryBarType
Set the barType of the secondary bars. Can be called only when the State is in Initialize state.
(Inherited from SharpScriptBase.)
Protected methodSetSecondaryInstrument
Sets the instrument of the secondary bars. Can be called only when State is in Initialize state.
(Inherited from SharpScriptBase.)
Public methodShare (Inherited from SharpScriptBase.)
Protected methodStringFormat
Formats the series value as displayed
(Inherited from SharpScriptBase.)
Protected methodTickSize
Gets the tick size of the primary instrument
(Inherited from SharpScriptBase.)
Protected methodTickSize(Int32)
Gets the tick size of the
(Inherited from SharpScriptBase.)
Protected methodToDate
Returns the date stamp in integer form. For example 15th August 2019 will be returned as 20190815
(Inherited from SharpScriptBase.)
Public methodToString (Inherited from SharpScriptBase.)
Protected methodToTime
Returns the time stamp in integer form. For example 9:30 AM will return as 93000 1:45 PM will return as 134500
(Inherited from SharpScriptBase.)
Top
See Also