Indicator |
public abstract class IndicatorBase : ChartVisualBase, ISeries<double>, IIndicator, IInstrumentEnumerable
The IndicatorBase type exposes the following members.
| Name | Description | |
|---|---|---|
| IndicatorBase |
| Name | Description | |
|---|---|---|
| AxisOrientation | AxisOrientation (Inherited from ChartVisualBase) | |
| BarsArray | Gets the Bars array. The primary bars array index is 0 (zero). The secondary bars array index will be determined on how the AddBars(String, BarType, String, DateTime, DateTime, BackfillPolicy) method is called | |
| BarsInProgress | Gets the index of the BarsArray calling the OnBarUpdate method | |
| BufferSize | Gets or sets the buffer size. This property can be set only when the State is in Initialize state | |
| Calculate | Gets or sets the Calculate mode. This property can be set only when the State is in Initialize state | |
| Close | Gets the Close price series of the Bars invoking the OnBarUpdate method. Close[0] will return the most recent value, Close[1] will return the previous value and so on. | |
| Closes | Gets the Close series array. Closes[0] will return the Close series of the primary bars. Closes[1] will return the Close series of the first secondary bars (if any) etc. | |
| Count | ||
| CurrentBar | Gets the current bars index of the Bars invoking the OnBarUpdate method. | |
| CurrentBars | Gets the CurrentBar of the corresponding BarsArray | |
| DebounceInterval |
Debounce interval
(Inherited from ChartVisualBase) | |
| DialogService |
Opens a IDialogService dialog
(Inherited from ServiceBase) | |
| Dispatcher |
Gets the dispatcher
(Inherited from SharpScriptBase) | |
| DisplayName |
Gets the display name
(Overrides SharpScriptBaseDisplayName) | |
| Error |
Gets the Error string
(Inherited from ServiceBase) | |
| FileService |
Opens a IFileService dialog
(Inherited from ServiceBase) | |
| HasLevel1Stream |
Has Level-I stream
(Inherited from ChartVisualBase) | |
| HasLevel2Stream |
Has Level-II stream
(Inherited from ChartVisualBase) | |
| High | Gets the High price seris of the Bars invoking the OnBarUpdate method. High[0] will get the most recent value, High[1] will return the previous value and so on. | |
| HighestHigh |
Highest high of the plot series
(Overrides ChartVisualBaseHighestHigh) | |
| Highs | Gets the High series array. Highs[0] will return the High series of the primary bars. Highs[1] will return the High series of the first secondary bars (if any) etc. | |
| Indicators | Gets the child indicators | |
| Input | Gets the input series | |
| Instrument | Gets the IInstrument of the BarsInProgress | |
| Instruments | Gets the Instruments array | |
| IsAutoScale |
Is autoscale
(Inherited from ChartVisualBase) | |
| IsFirstTickOfBar | Is first tick of bar of the Bars invoking the OnBarUpdate method. | |
| IsFirstTickOfBars | Is first tick of the bar of the corresponding BarsArray | |
| IsFormattedText | If set to true, the indicator plot value are printed (e.g. in YAxis) as formatted text | |
| IsSelected |
Is the object selected or not
(Overrides ChartVisualBaseIsSelected) | |
| IsSharpScript |
Gets if the drawing object is created by a sharpScript code
(Inherited from ChartVisualBase) | |
| IsValueChanged | (Inherited from ChartVisualBase) | |
| IsVisible |
Is series visible
(Inherited from ChartVisualBase) | |
| ItemInt32 | Gets the value of the series at the specified index | |
| ItemString |
Gets the IDataErrorInfo error string
(Inherited from ServiceBase) | |
| Last | ||
| LastSelectedIndex | Gets the lastPrice selected series index | |
| LineHitTestWidth |
Gets teh Line hit test width
(Inherited from ChartVisualBase) | |
| Lines | Gets or sets the Lines | |
| Low | Gets the Low price seris of the Bars invoking the OnBarUpdate method. Low[0] will get the most recent value, Low[1] will return the previous value and so on. | |
| LowestLow |
Lowest low of the plot series
(Overrides ChartVisualBaseLowestLow) | |
| Lows | Gets the Low series array. Lows[0] will return the Low series of the primary bars. Lows[1] will return the Low series of the first secondary bars (if any) etc. | |
| Median | Gets the Median price seris of the Bars invoking the OnBarUpdate method. Median[0] will get the most recent value, Median[1] will return the previous value and so on. | |
| Medians | Gets the Median series array. Medians[0] will return the Median series of the primary bars. Medians[1] will return the Median series of the first secondary bars (if any) etc. | |
| MessageBox |
Opens a IMessageBoxService dialog
(Inherited from ServiceBase) | |
| Name |
Gets the name
(Inherited from SharpScriptBase) | |
| ObserveAllMarketDataTypes |
Observe all MarketDataType (Inherited from ChartVisualBase) | |
| Open | Gets the Open price seris of the Bars invoking the OnBarUpdate method. Open[0] will get the most recent value, Open[1] will return the previous value and so on. | |
| OpenInterest | Gets the OpenInterest seris of the Bars invoking the OnBarUpdate method. OpenInterest[0] will get the most recent value, OpenInterest[1] will return the previous value and so on. | |
| OpenInterests | Gets the OpenInterest series array. OpenInterests[0] will return the OpenInterest series of the primary bars. OpenInterests[1] will return the OpenInterest series of the first secondary bars (if any) etc. | |
| Opens | Gets the Open series array. Opens[0] will return the Open series of the primary bars. Opens[1] will return the Open series of the first secondary bars (if any) etc. | |
| PanelIndex |
Gets the panel index
(Inherited from ChartVisualBase) | |
| Parent |
Gets the Bars of the Input series
(Overrides ChartVisualBaseParent) | |
| Plots | Gets the Plots | |
| SelectedSeriesIndex | Gets the selected series index (Scanner View) | |
| SingletonService |
Opens a ISingletonService dialog
(Inherited from ServiceBase) | |
| State |
Gets the current State of the script
(Inherited from SharpScriptBase) | |
| Template |
Gets the user parameters xaml template. If not overriden will return the default template which populates the properties decorated with InputAttribute for types boolean, string, datetime, int, double and decimal.
(Overrides SharpScriptBaseTemplate) | |
| Time | Gets the DateTime seris of the Bars invoking the OnBarUpdate method. Time[0] will get the most recent value, Time[1] will return the previous value and so on. | |
| Times | Gets the Time series array. Times[0] will return the Time series of the primary bars. Times[1] will return the Time series of the first secondary bars (if any) etc. | |
| Typical | Gets the Typical price seris of the Bars invoking the OnBarUpdate method. Typical[0] will get the most recent value, Typical[1] will return the previous value and so on. | |
| Typicals | Gets the Typical series array. Typicals[0] will return the Typical series of the primary bars. Typicals[1] will return the Typical series of the first secondary bars (if any) etc. | |
| Values | Gets the Plot series. The length of the array depends on the number of Plots are there. This is populated when user calls the AddPlot(String, PlotStyle, Pen, Boolean) method. The indicator values as calculated in the OnBarUpdate method is stored here. | |
| Volume | Gets the Volume seris of the Bars invoking the OnBarUpdate method. Volume[0] will get the most recent value, Volume[1] will return the previous value and so on. | |
| Volumes | Gets the Volume series array. Volumes[0] will return the Volume series of the primary bars. Volumes[1] will return the Volume series of the first secondary bars (if any) etc. | |
| Weighted | Gets the Weighted price seris of the Bars invoking the OnBarUpdate method. Weighted[0] will get the most recent value, Weighted[1] will return the previous value and so on. | |
| Weighteds | Gets the Weighted series array. Weighteds[0] will return the Weighted series of the primary bars. Weighteds[1] will return the Weighted series of the first secondary bars (if any) etc. |
| Name | Description | |
|---|---|---|
| AddBars(BarType) | Add a seconday Bars series. The IInstrument will be that of the primary bars series This method must be called from the OnStateChange method when the State is in StartUp | |
| AddBars(String) | Add a seconday Bars series. The BarType will be that of the primary bars series. This method must be called from the OnStateChange method when the State is in StartUp | |
| AddBars(String, BarType) | Add a secondary Bars series This method must be called from the OnStateChange method when the State is in StartUp | |
| AddBars(String, BarType, String, DateTime, DateTime, BackfillPolicy) | Add a secondary Bars series This method must be called from the OnStateChange method when the State is in StartUp | |
| AddContextMenu | Add an IMenuItem in the context menu | |
| 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(String, Double, Pen) | Add a Line. This method must be called from the OnStateChange method when the State is in Initialize | |
| AddLine(String, Double, Brush, Double) | Add a Line. This method must be called from the OnStateChange method when the State is in Initialize | |
| AddMenuItem | Adds an IMenuItem in the tool bar | |
| AddPlot(String, PlotStyle, Pen, Boolean) | Add a Plot series. This method must be called from the OnStateChange method when the State is in Initialize | |
| AddPlot(String, PlotStyle, Brush, Double, Boolean) | Add a Plot series. This method must be called from the OnStateChange method when the State is in Initialize | |
| Alert(String, String) |
Alert, with Medium. This alert is raised once.
(Inherited from ChartVisualBase) | |
| Alert(String, String, TimeSpan) |
Alert with Medium (Inherited from ChartVisualBase) | |
| Alert(String, Priority, Brush, String) |
Alert. This alert is raised only once
(Inherited from ChartVisualBase) | |
| Alert(String, Priority, Brush, String, TimeSpan) |
Alert
(Inherited from ChartVisualBase) | |
| Alert(String, IInstrument, Priority, Brush, String, TimeSpan) |
Shoots an alert.
The alert is triggered only when the State is Realtime (Inherited from SharpScriptBase) | |
| CalculateMinMax |
Calculate the minimum and maximum y-axis (price) values
(Overrides ChartVisualBaseCalculateMinMax(IBars, Int32, Int32, Double, Double)) | |
| CalculatePriceFromY(Double, ChartVisualArgs) |
Calculate price from Y (Inherited from VisualBase) | |
| CalculatePriceFromY(Double, Double, Double, Double, Double, ScaleType) |
Calculate the price from Y (Inherited from VisualBase) | |
| CalculateXFromBarIndex |
Calculate the X from bars index
(Inherited from VisualBase) | |
| CalculateYFromPrice(Double, ChartVisualArgs) |
Calulate the Y point from price
(Inherited from VisualBase) | |
| CalculateYFromPrice(Double, Double, Double, Double, Double, ScaleType) |
Calculate Y from price
(Inherited from VisualBase) | |
| CanRender |
Can invoke the OnRender(DrawingContext, ChartVisualArgs) method
(Overrides ChartVisualBaseCanRender(ChartVisualArgs)) | |
| 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 | (Inherited from SharpScriptBase) | |
| GetHandleCursor |
Returns the handle cursor
(Inherited from ChartVisualBase) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetLastPrice | Returns the lastPrice traded price. In case the real time price is not available the closing value of the lastPrice available bar is returned | |
| GetOrAddT | Gets or add a DrawingBase | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HasValue | ||
| InvalidateView | (Inherited from ChartVisualBase) | |
| InvokeAsync |
Invoke any action. It is recommended to draw any [!:ChartObject.DrawingBase] by invoking this method
(Inherited from SharpScriptBase) | |
| IsInputEquals | Compares two input | |
| Log(String) |
Logs a message with Low (Inherited from SharpScriptBase) | |
| Log(Priority, String) |
Logs a message with the specified Priority (Inherited from SharpScriptBase) | |
| Log(Priority, Brush, String) |
Logs a message with the specified Priority and defined brush
(Inherited from SharpScriptBase) | |
| MakeHitTest |
Make hit-test
(Overrides ChartVisualBaseMakeHitTest(ChartVisualArgs)) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Move |
Moves the visual
(Overrides ChartVisualBaseMove(Double, Double, ChartVisualArgs)) | |
| NotifyPropertyChanged | (Inherited from SharpScriptBase) | |
| OnBarUpdate | Called on each incoming tick | |
| OnLevel1 |
Opens the Level-I stream
(Inherited from ChartVisualBase) | |
| OnLevel2 |
Opens the Level-II stream
(Inherited from ChartVisualBase) | |
| OnRender |
Renders the Plot and Line (Overrides ChartVisualBaseOnRender(DrawingContext, ChartVisualArgs)) | |
| OnRenderYAxis |
Render the Y Axis values
(Overrides ChartVisualBaseOnRenderYAxis(DrawingContext, ChartVisualArgs)) | |
| OnStateChange |
Invoked when the State changes
(Inherited from SharpScriptBase) | |
| PlaySound |
Play a sound file as located in the folder ~\Documents\ArthaChitra 2\Sounds
(Inherited from SharpScriptBase) | |
| Print(String, String) |
Prints a message with Low (Inherited from SharpScriptBase) | |
| Print(Brush, String, String) |
Prints a message with a defined foreground brush
(Inherited from SharpScriptBase) | |
| Print(Priority, String, String) |
Prints a message with the defined Priority (Inherited from SharpScriptBase) | |
| Recalculate | (Overrides ChartVisualBaseRecalculate(ChartVisualArgs)) | |
| RefreshView | ||
| Round |
Rounds the value with the factor as defined in Options > General tab > RoundFactor (Inherited from SharpScriptBase) | |
| SelectionSteps |
How far the selection rectangle will be drawn
(Inherited from VisualBase) | |
| SetOverrideBrush | Override the brush of the Bars | |
| SetOverridePen(Pen, Int32) | Override the wick brush of the Bars | |
| SetOverridePen(Pen, Int32, Int32) | Override the Pen of the Plot series | |
| Share |
Share messages via to social media SocialType
The messages will be transmitted only when the state is Realtime
(Inherited from SharpScriptBase) | |
| ToString | (Overrides ObjectToString) | |
| ToStringFormat |
Gets the string format of the value
(Overrides ChartVisualBaseToStringFormat(Double)) | |
| TryRemoveContextMenuItem | Removes a IMenuItem from the context menu | |
| TryRemoveDrawing | Remove a DrawingBase | |
| TryRemoveMenuItem | Removes a IMenuItem from the tool bar of the view |
| Name | Description | |
|---|---|---|
| PropertyChanged | (Inherited from NotifyPropertyBase) |