SharpScriptBase Class |
Namespace: SharpCharts.Base.SharpScript
public abstract class SharpScriptBase : PrintLogBase, INotifyPropertyChanged, ISeries<double>, ITemplate
The SharpScriptBase type exposes the following members.
| Name | Description | |
|---|---|---|
| SharpScriptBase |
| Name | Description | |
|---|---|---|
| BackBrush |
Gets the Background brush series
| |
| BarBrush |
Gets the Bar brush series
| |
| Bars |
Gets or sets the Primary bar
| |
| BarsArray |
Gets the Bars array
| |
| BarsInProgress |
Gets the Current bars array in progress
| |
| BarWickBrushes | ||
| Calculate |
Gets or sets the Calculate type
| |
| Close |
Gets the Close series
| |
| Closes |
Gets the Close series array
| |
| Count |
Gets the total bar count
| |
| CurrentBar |
Gets the Current bar
| |
| CurrentBars |
Current bar series
| |
| DefaultTemplate |
Gets the Default template of the sharp script
| |
| DialogService | (Inherited from MessageBoxBase.) | |
| Dispatcher | ||
| DisplayName |
Gets the display name
| |
| Error |
Gets the Error string
(Inherited from MessageBoxBase.) | |
| FileService | (Inherited from MessageBoxBase.) | |
| Guid | ||
| High |
Gets the High series
| |
| Highs |
Gets the High series array
| |
| Input |
Gets or sets the Input series
| |
| IsAutoScale | ||
| IsFirstScriptInPane | ||
| IsFirstTickOfBar |
Is first tick of bar
| |
| IsLevel1Subscribed | Obsolete.
This property has been depreciated
Gets or sets if Level1 events are subscribed or not. Evaluated only when the scripts state is set to Initialize
| |
| IsLevel2Subscribed | Obsolete.
This property has been depreciated
Gets or sets is Level2 events are subscribed or not. Evaluated only when the scripts state is set to Initialize
| |
| IsOverlay |
Gets or sets Is overlay
| |
| IsRealTime |
Gets if the sharpscript Is real time
| |
| ItemInt32 |
Gets the value of the sharp script
| |
| ItemString |
Gets the IDataErrorInfo error string
(Inherited from MessageBoxBase.) | |
| ItemInt32, Boolean |
Gets the value of sharp script
| |
| Lines |
Gets or sets the Line array
| |
| Low |
Gets the Low series
| |
| Lows |
Gets the Low series array
| |
| Median |
Gets the Median series
| |
| Medians |
Gets the Median series array
| |
| MessageBox | (Inherited from MessageBoxBase.) | |
| Name |
Gets the name of the Sharp Script
| |
| Open |
Gets the Open series
| |
| OpenInterest |
Gets the Open Interest series
| |
| OpenInterests |
Get the Open Interest series array
| |
| Opens |
Gets the Open series array
| |
| PlotPens |
Gets the Plot pen series array
| |
| Plots |
Gets or sets the Plot array
| |
| PriceFormat | Obsolete.
Gets the Price format string
| |
| PriceType |
Gets or sets the Price type
| |
| SeriesDisplayName |
Gets the series display name
| |
| ShowAdditionalParameters |
Gets or sets if additional parameters will be displayed in the SharpScript selector view
| |
| ShowLines |
Gets or sets whether the Lines parameter will be displayed in the Indicator Selector view
| |
| ShowNativeParameters |
Gets or sets whether Native parameters will be displayed in the Indicator Selector view
| |
| ShowPlots |
Gets or sets whether the Plots parameter will be displayed in the Indicator Selector view
| |
| SingletonService | (Inherited from MessageBoxBase.) | |
| State |
Gets the current state of the sharp script
| |
| Template |
Gets the name of the template
| |
| TemplateType |
Gets the Template type
| |
| Time |
Gets the Time series
| |
| Times |
Gets the Time series array
| |
| Typical |
Gets the Typical series
| |
| Typicals |
Gets the Typical series array
| |
| Values |
Gets the Plot value series array
| |
| ViewModel |
Gets the View associated with the Sharp Script
| |
| Volume |
Gets the Volume series
| |
| Volumes |
Get the Volume series array
| |
| Weighted |
Gets the Weighted series
| |
| Weighteds |
Gets the Weighted series array
|
| 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
| |
| AddBars(String) |
Add a secondary series for the specified instrument.
BarType, Start date, End date, Session, Backfill Policy is referenced from the parent bar
| |
| AddBars(String, BarType) |
Add secondary bar series
Start date, end date, session, Backfill Policy is referenced from the parent bar
| |
| AddBars(String, BarType, DateTime, DateTime, Session, BackfillPolicy) |
Add a secondary bar series
| |
| AddBars(String, BarType, DateTime, DateTime, Session, Boolean) |
Adds a secondary bar series
| |
| AddIndicatorT |
Adds and/or retrieves sharp script from the cache
| |
| AddIndicatorT(ISeriesDouble) |
Adds and/or retrieves sharp script from the cache
| |
| AddIndicatorT(Object) |
Adds and/or retrieves and sharp script from the cache
| |
| AddIndicatorT(ISeriesDouble, Object) |
Adds and/or retrieves and sharp script from the cache
| |
| AddLine |
Add a new line
| |
| AddPlot |
Add a new Plot
| |
| Alert(String) |
Sends a new Alert message to the Alert View
| |
| Alert(AlertPriority, String) |
Sends a new Alert message to the Alert View
| |
| Alert(String, String) |
Sends a new Alert message to the Alert View
| |
| Alert(String, String, TimeSpan) |
Sends a new Alert message to the Alert View
| |
| Alert(AlertPriority, String, Brush, Brush) |
Sends a new Alert message to the Alert View
| |
| Alert(String, AlertPriority, String, Brush, Brush, TimeSpan) |
Sends a new Alert message to the Alert View
| |
| CalculateMinMax |
Calculates the minimum and maximum values of the axis
| |
| CalculatePriceFromY |
Calculates the price from Y point
| |
| CalculateXPoint(Double, Int32) |
Calculates the x point
| |
| CalculateXPoint(ChartStyle, Double, Int32, Int32) |
Calculates the x point
| |
| CalculateYFromPrice |
Calculate the Y point from price
| |
| Clone |
Clones a sharpScript object
| |
| CrossAbove(Double, ISeriesDouble, Int32) |
Evaluates when value crosses above a series
| |
| CrossAbove(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses each other
| |
| CrossAbove(ISeriesDouble, Double, Int32) |
Evaluates when the series crosses above the value
| |
| CrossBelow(Double, ISeriesDouble, Int32) |
Evaluates when a value crosses below a series
| |
| CrossBelow(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses below each other
| |
| CrossBelow(ISeriesDouble, Double, Int32) |
Evaluates when series crosses below a value
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | (Overrides ObjectFinalize.) | |
| GetBarIndexFromTime(DateTime) |
Gets the bar index of the primary bar from time. Returns -1 if time is beyond the bars range
| |
| GetBarIndexFromTime(Bars, DateTime) |
Gets the bar index from time. Returns -1 if time is beyond the bars range
| |
| GetCurrentAsk |
Gets the current ask price of the primary bar. For historical bars, will return the corresponding close value of the bars.
| |
| GetCurrentAsk(Int32) |
Gets the current ask price. Works in realtime only
| |
| GetCurrentAskVolume |
Gets the ask volume of the primary bars. Works in realtime only.
| |
| GetCurrentAskVolume(Int32) |
Gets the ask volume of the specified bars. Works in realtime only.
| |
| GetCurrentBid |
Gets the current bid price of the primary bar. For historical bars, will return the corresponding close value of the bars.
| |
| GetCurrentBid(Int32) |
Gets the current bid price. For historical bars, will return the corresponding close value of the bars.
| |
| GetCurrentBidVolume |
Gets the bid volume of the primary bars. Works in realtime only.
| |
| GetCurrentBidVolume(Int32) |
Gets the bid volume of the specified bars. Works in realtime only.
| |
| GetFrozenBrush |
Returns the brush as frozen
| |
| 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
| |
| 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
| |
| GetSessionDefinition |
Get the session definition for the specified time
| |
| GetSessionStartDate | ||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasValue |
Returns if the underlying series has a value
| |
| InvokeAsync |
Invoke any action. It is recommended to draw any DrawingBase by invoking this method
| |
| IsEqual |
Compares two sharp script objects
| |
| IsInputEquals |
Compares two input
| |
| 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
| |
| OnBarUpdate |
Called on a new tick
| |
| OnLevel1 |
Called on every level1 events for the subscribed instruments (in case of multi-instrument scripts).
| |
| OnLevel2 |
Called on every level2 event for the subscribed instruments (in case of multi-instrument scripts).
| |
| OnStateChange |
Called on when the SharpScript state is changed
| |
| PlaySound |
Plays a sound file
| |
| Plot |
Plots the SharpScript series values
| |
| 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
| |
| RemoveChartObject |
Removes all the chartObjects drawn by the sharpScript code
| |
| 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
| |
| RoundToTickSize(Double) |
Returns the round value of the instrument tick size
| |
| RoundToTickSize(Int32, Double) |
Returns the round value of the instrument tick size
| |
| SetSecondaryBarType |
Set the barType of the secondary bars. Can be called only when the State is in Initialize state.
| |
| SetSecondaryInstrument |
Sets the instrument of the secondary bars. Can be called only when State is in Initialize state.
| |
| Share | ||
| StringFormat |
Formats the series value as displayed
| |
| TickSize |
Gets the tick size of the primary instrument
| |
| TickSize(Int32) |
Gets the tick size of the
| |
| ToDate |
Returns the date stamp in integer form. For example 15th August 2019 will be returned as 20190815
| |
| ToString | (Overrides ObjectToString.) | |
| ToTime |
Returns the time stamp in integer form. For example 9:30 AM will return as 93000 1:45 PM will return as 134500
|
| Name | Description | |
|---|---|---|
| PropertyChanged |
Property changed event handler
|