IndicatorBase Methods |
The IndicatorBase type exposes the following members.
| Name | Description | |
|---|---|---|
| AddBars(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.) | |
| AddBars(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.) | |
| AddBars(String, BarType) |
Add secondary bar series
Start date, end date, session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.) | |
| AddBars(String, BarType, DateTime, DateTime, Session, BackfillPolicy) |
Add a secondary bar series
(Inherited from SharpScriptBase.) | |
| AddBars(String, BarType, DateTime, DateTime, Session, Boolean) |
Adds a secondary bar series
(Inherited from SharpScriptBase.) | |
| AddIndicatorT |
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.) | |
| AddIndicatorT(ISeriesDouble) |
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.) | |
| AddIndicatorT(Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.) | |
| AddIndicatorT(ISeriesDouble, Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.) | |
| AddLine |
Add a new line
(Inherited from SharpScriptBase.) | |
| AddPlot |
Add a new Plot
(Inherited from SharpScriptBase.) | |
| Alert(String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| Alert(AlertPriority, String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| Alert(String, String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| Alert(String, String, TimeSpan) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| Alert(AlertPriority, String, Brush, Brush) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| Alert(String, AlertPriority, String, Brush, Brush, TimeSpan) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
| AlertScanner |
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.
| |
| CalculateMinMax |
Calculates the minimum and maximum values of the axis
(Inherited from SharpScriptBase.) | |
| CalculatePriceFromY |
Calculates the price from Y point
(Inherited from SharpScriptBase.) | |
| CalculateXPoint(Double, Int32) |
Calculates the x point
(Inherited from SharpScriptBase.) | |
| CalculateXPoint(ChartStyle, Double, Int32, Int32) |
Calculates the x point
(Inherited from SharpScriptBase.) | |
| CalculateYFromPrice |
Calculate the Y point from price
(Inherited from SharpScriptBase.) | |
| Clone |
Clones a sharpScript object
(Inherited from SharpScriptBase.) | |
| CrossAbove(Double, ISeriesDouble, Int32) |
Evaluates when value crosses above a series
(Inherited from SharpScriptBase.) | |
| CrossAbove(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses each other
(Inherited from SharpScriptBase.) | |
| CrossAbove(ISeriesDouble, Double, Int32) |
Evaluates when the series crosses above the value
(Inherited from SharpScriptBase.) | |
| CrossBelow(Double, ISeriesDouble, Int32) |
Evaluates when a value crosses below a series
(Inherited from SharpScriptBase.) | |
| CrossBelow(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses below each other
(Inherited from SharpScriptBase.) | |
| CrossBelow(ISeriesDouble, Double, Int32) |
Evaluates when series crosses below a value
(Inherited from SharpScriptBase.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | (Inherited from SharpScriptBase.) | |
| GetBarIndexFromTime(DateTime) |
Gets the bar index of the primary bar from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.) | |
| GetBarIndexFromTime(Bars, DateTime) |
Gets the bar index from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.) | |
| GetCurrentAsk |
Gets the current ask price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
| GetCurrentAsk(Int32) |
Gets the current ask price. Works in realtime only
(Inherited from SharpScriptBase.) | |
| GetCurrentAskVolume |
Gets the ask volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
| GetCurrentAskVolume(Int32) |
Gets the ask volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
| GetCurrentBid |
Gets the current bid price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
| GetCurrentBid(Int32) |
Gets the current bid price. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
| GetCurrentBidVolume |
Gets the bid volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
| GetCurrentBidVolume(Int32) |
Gets the bid volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
| GetFrozenBrush |
Returns the brush as frozen
(Inherited from SharpScriptBase.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetLastPrice |
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.) | |
| GetLastPrice(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.) | |
| GetSessionDefinition |
Get the session definition for the specified time
(Inherited from SharpScriptBase.) | |
| GetSessionStartDate | (Inherited from SharpScriptBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasValue |
Returns if the underlying series has a value
(Inherited from SharpScriptBase.) | |
| InvokeAsync |
Invoke any action. It is recommended to draw any DrawingBase by invoking this method
(Inherited from SharpScriptBase.) | |
| IsEqual |
Compares two sharp script objects
(Inherited from SharpScriptBase.) | |
| IsInputEquals |
Compares two input
(Inherited from SharpScriptBase.) | |
| Log |
Log message. It will be displayed in the Logs tab in Main View
(Inherited from PrintLogBase.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| NotifyPropertyChanged |
Notify property change
(Inherited from SharpScriptBase.) | |
| OnBarUpdate |
Called on a new tick
(Inherited from SharpScriptBase.) | |
| OnLevel1 |
Called on every level1 events for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.) | |
| OnLevel2 |
Called on every level2 event for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.) | |
| OnStateChange |
Called on when the SharpScript state is changed
(Inherited from SharpScriptBase.) | |
| PlaySound |
Plays a sound file
(Inherited from SharpScriptBase.) | |
| Plot |
Plots the SharpScript series values
(Inherited from SharpScriptBase.) | |
| Print(String) |
Prints the message in the Output view
(Inherited from PrintLogBase.) | |
| Print(String, Brush) |
Prints the message in the Output view
(Inherited from PrintLogBase.) | |
| RefreshChartObject |
Refreshes/re-renders the chartOject. Can be called only when the ShartScript.State == State.Realtime
(Inherited from SharpScriptBase.) | |
| RemoveChartObject |
Removes all the chartObjects drawn by the sharpScript code
(Inherited from SharpScriptBase.) | |
| RemoveChartObject(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.) | |
| RoundToTickSize(Double) |
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.) | |
| RoundToTickSize(Int32, Double) |
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.) | |
| SetSecondaryBarType |
Set the barType of the secondary bars. Can be called only when the State is in Initialize state.
(Inherited from SharpScriptBase.) | |
| SetSecondaryInstrument |
Sets the instrument of the secondary bars. Can be called only when State is in Initialize state.
(Inherited from SharpScriptBase.) | |
| Share | (Inherited from SharpScriptBase.) | |
| StringFormat |
Formats the series value as displayed
(Inherited from SharpScriptBase.) | |
| TickSize |
Gets the tick size of the primary instrument
(Inherited from SharpScriptBase.) | |
| TickSize(Int32) |
Gets the tick size of the
(Inherited from SharpScriptBase.) | |
| ToDate |
Returns the date stamp in integer form. For example 15th August 2019 will be returned as 20190815
(Inherited from SharpScriptBase.) | |
| ToString | (Inherited from SharpScriptBase.) | |
| ToTime |
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.) |