Click or drag to resize

Indicator Class

Inheritance Hierarchy

Namespace: ArthaChitra.Model.SharpScript
Assembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.6.0
Syntax
C#
public abstract class Indicator : IndicatorBase

The Indicator type exposes the following members.

Constructors
 NameDescription
Protected methodIndicator 
Top
Properties
 NameDescription
Public propertyAxisOrientationAxisOrientation
(Inherited from ChartVisualBase)
Public propertyBarsArray Gets the Bars array
(Inherited from IndicatorBase)
Protected propertyBarsInProgress Gets the index of the current Bars calling the OnBarUpdate method
(Inherited from IndicatorBase)
Public propertyBufferSize Gets or sets the buffer size. This property can be set only when the State is in Initialize state
(Inherited from IndicatorBase)
Public propertyCalculate Gets or sets the Calculate mode. This property can be set only when the State is in Initialize state
(Inherited from IndicatorBase)
Protected propertyClose Gets the Close price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyCloses Gets the close series array
(Inherited from IndicatorBase)
Public propertyCount
(Inherited from IndicatorBase)
Protected propertyCurrentBar Gets the current bar of the bars in progress
(Inherited from IndicatorBase)
Public propertyCurrentBars Gets the current bars
(Inherited from IndicatorBase)
Public propertyDebounceInterval Debounce interval
(Inherited from ChartVisualBase)
Protected propertyDialogService Opens a IDialogService dialog
(Inherited from ServiceBase)
Protected propertyDispatcher Gets the dispatcher
(Inherited from SharpScriptBase)
Public propertyDisplayName Gets the display name
(Inherited from IndicatorBase)
Public propertyError Gets the Error string
(Inherited from ServiceBase)
Protected propertyFileService Opens a IFileService dialog
(Inherited from ServiceBase)
Public propertyHasLevel1Stream Has Level-I stream
(Inherited from ChartVisualBase)
Public propertyHasLevel2Stream Has Level-II stream
(Inherited from ChartVisualBase)
Protected propertyHigh Gets the High price seris of the BarsInProgress
(Inherited from IndicatorBase)
Public propertyHighestHigh Highest high of the plot series
(Inherited from IndicatorBase)
Protected propertyHighs Gets the high series array
(Inherited from IndicatorBase)
Public propertyIndicators Gets the child indicators
(Inherited from IndicatorBase)
Public propertyInput Gets the input series
(Inherited from IndicatorBase)
Protected propertyInstrument Gets the IInstrument of the BarsInProgress
(Inherited from IndicatorBase)
Public propertyInstruments Gets the Instruments array
(Inherited from IndicatorBase)
Public propertyIsAutoScale Is autoscale
(Inherited from ChartVisualBase)
Protected propertyIsFirstTickOfBar Is first tick of bar of the bars in progress
(Inherited from IndicatorBase)
Public propertyIsFirstTickOfBars Is first tick of the bars
(Inherited from IndicatorBase)
Public propertyIsFormattedText If set to true, the indicator plot value are printed (e.g. in YAxis) as formatted text
(Inherited from IndicatorBase)
Public propertyIsSelected Is the object selected or not
(Inherited from IndicatorBase)
Public propertyIsSharpScript Gets if the drawing object is created by a sharpScript code
(Inherited from ChartVisualBase)
Protected propertyIsValueChanged
(Inherited from ChartVisualBase)
Public propertyIsVisible Is series visible
(Inherited from ChartVisualBase)
Public propertyItemInt32 Gets the value of the series at the specified index
(Inherited from IndicatorBase)
Public propertyItemString Gets the IDataErrorInfo error string
(Inherited from ServiceBase)
Public propertyLast
(Inherited from IndicatorBase)
Protected propertyLastSelectedIndex Gets the lastPrice selected series index
(Inherited from IndicatorBase)
Public propertyLineHitTestWidth Gets teh Line hit test width
(Inherited from ChartVisualBase)
Public propertyLines Gets or sets the Lines
(Inherited from IndicatorBase)
Protected propertyLow Gets the Low price series of the BarsInProgress
(Inherited from IndicatorBase)
Public propertyLowestLow Lowest low of the plot series
(Inherited from IndicatorBase)
Protected propertyLows Gets the low series array
(Inherited from IndicatorBase)
Protected propertyMedian Gets the Median price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyMedians Gets the median series array
(Inherited from IndicatorBase)
Protected propertyMessageBox Opens a IMessageBoxService dialog
(Inherited from ServiceBase)
Public propertyName Gets the name
(Inherited from SharpScriptBase)
Public propertyObserveAllMarketDataTypes Observe all MarketDataType
(Inherited from ChartVisualBase)
Protected propertyOpen Gets the Open price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyOpenInterest Gets the open interest series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyOpenInterests Gets the Open Interests array
(Inherited from IndicatorBase)
Protected propertyOpens Gets the Open series array
(Inherited from IndicatorBase)
Public propertyPanelIndex Gets the panel index
(Inherited from ChartVisualBase)
Public propertyParent Gets the Bars of the Input series
(Inherited from IndicatorBase)
Public propertyPlots Gets the Plots
(Inherited from IndicatorBase)
Public propertySelectedSeriesIndex Gets the selected series index (Scanner View)
(Inherited from IndicatorBase)
Protected propertySingletonService Opens a ISingletonService dialog
(Inherited from ServiceBase)
Public propertyState Gets the current State of the script
(Inherited from SharpScriptBase)
Public propertyTemplate 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.
(Inherited from IndicatorBase)
Protected propertyTime Gets the time series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyTimes Gets the Times array
(Inherited from IndicatorBase)
Protected propertyTypical Gets the Typical price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyTypicals Gets the typical price series array
(Inherited from IndicatorBase)
Public propertyValues Gets the series
(Inherited from IndicatorBase)
Protected propertyVolume Gets the volume series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyVolumes Gets the Volumes array
(Inherited from IndicatorBase)
Protected propertyWeighted Gets the Weighted price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyWeighteds Gets the weighted series array
(Inherited from IndicatorBase)
Top
Methods
 NameDescription
Protected methodAddBars(BarType) Add a seconday Bars series. The IInstrument will be that of the primary bars series
(Inherited from IndicatorBase)
Protected methodAddBars(String) Add a seconday Bars series. The BarType will be that of the primary bars series
(Inherited from IndicatorBase)
Protected methodAddBars(String, BarType) Add a secondary Bars series
(Inherited from IndicatorBase)
Protected methodAddBars(String, BarType, String, DateTime, DateTime, BackfillPolicy) Add a secondary Bars series
(Inherited from IndicatorBase)
Protected methodAddContextMenu Add an IMenuItem in the context menu
(Inherited from IndicatorBase)
Public methodAddIndicatorT Adds and/or retrieves sharp script from the cache
(Inherited from IndicatorBase)
Public methodAddIndicatorT(ISeriesDouble) Adds and/or retrieves sharp script from the cache
(Inherited from IndicatorBase)
Public methodAddIndicatorT(Object) Adds and/or retrieves and sharp script from the cache
(Inherited from IndicatorBase)
Public methodAddIndicatorT(ISeriesDouble, Object) Adds and/or retrieves and sharp script from the cache
(Inherited from IndicatorBase)
Protected methodAddLine(String, Double, Pen) Add a Line
(Inherited from IndicatorBase)
Protected methodAddLine(String, Double, Brush, Double) Add a Line
(Inherited from IndicatorBase)
Protected methodAddMenuItem Adds an IMenuItem in the tool bar
(Inherited from IndicatorBase)
Protected methodAddPlot(String, PlotStyle, Pen, Boolean) Add a Plot series
(Inherited from IndicatorBase)
Protected methodAddPlot(String, PlotStyle, Brush, Double, Boolean) Add a Plot series
(Inherited from IndicatorBase)
Protected methodAlert(String, String) Alert, with Medium. This alert is raised once.
(Inherited from ChartVisualBase)
Protected methodAlert(String, String, TimeSpan) Alert with Medium
(Inherited from ChartVisualBase)
Protected methodAlert(String, Priority, Brush, String) Alert. This alert is raised only once
(Inherited from ChartVisualBase)
Protected methodAlert(String, Priority, Brush, String, TimeSpan) Alert
(Inherited from ChartVisualBase)
Protected methodAlert(String, IInstrument, Priority, Brush, String, TimeSpan) Shoots an alert. The alert is triggered only when the State is Realtime
(Inherited from SharpScriptBase)
Protected methodCalculateMinMax Calculate the minimum and maximum values
(Inherited from IndicatorBase)
Protected methodCalculatePriceFromY(Double, ChartVisualArgs) Calculate price from Y
(Inherited from VisualBase)
Protected methodCalculatePriceFromY(Double, Double, Double, Double, Double, ScaleType) Calculate the price from Y
(Inherited from VisualBase)
Protected methodCalculateXFromBarIndex Calculate the X from bars index
(Inherited from VisualBase)
Protected methodCalculateYFromPrice(Double, ChartVisualArgs) Calulate the Y point from price
(Inherited from VisualBase)
Protected methodCalculateYFromPrice(Double, Double, Double, Double, Double, ScaleType) Calculate Y from price
(Inherited from VisualBase)
Protected methodCanRender Can invoke the OnRender(DrawingContext, ChartVisualArgs) method
(Inherited from IndicatorBase)
Public methodCrossAbove(Double, ISeriesDouble, Int32) Evaluates when value crosses above a series
(Inherited from IndicatorBase)
Public methodCrossAbove(ISeriesDouble, ISeriesDouble, Int32) Evaluates when 2 (two) series crosses each other
(Inherited from IndicatorBase)
Public methodCrossAbove(ISeriesDouble, Double, Int32) Evaluates when the series crosses above the value
(Inherited from IndicatorBase)
Public methodCrossBelow(Double, ISeriesDouble, Int32) Evaluates when a value crosses below a series
(Inherited from IndicatorBase)
Public methodCrossBelow(ISeriesDouble, ISeriesDouble, Int32) Evaluates when 2 (two) series crosses below each other
(Inherited from IndicatorBase)
Public methodCrossBelow(ISeriesDouble, Double, Int32) Evaluates when series crosses below a value
(Inherited from IndicatorBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Inherited from SharpScriptBase)
Protected methodGetHandleCursor Returns the handle cursor
(Inherited from ChartVisualBase)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLastPrice Returns the lastPrice traded price. In case the real time price is not available the closing value of the lastPrice available bar is returned
(Inherited from IndicatorBase)
Public methodGetOrAddT Gets or add a DrawingBase
(Inherited from IndicatorBase)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasValue
(Inherited from IndicatorBase)
Public methodInvalidateView
(Inherited from ChartVisualBase)
Protected methodInvokeAsync Invoke any action. It is recommended to draw any [!:ChartObject.DrawingBase] by invoking this method
(Inherited from SharpScriptBase)
Public methodIsInputEquals Compares two input
(Inherited from IndicatorBase)
Protected methodLog(String) Logs a message with Low
(Inherited from SharpScriptBase)
Protected methodLog(Priority, String) Logs a message with the specified Priority
(Inherited from SharpScriptBase)
Protected methodLog(Priority, Brush, String) Logs a message with the specified Priority and defined brush
(Inherited from SharpScriptBase)
Protected methodMakeHitTest Make hit-test
(Inherited from IndicatorBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMove Moves the visual
(Inherited from IndicatorBase)
Protected methodNotifyPropertyChanged
(Inherited from SharpScriptBase)
Protected methodOnBarUpdate Called on each incoming tick
(Inherited from IndicatorBase)
Protected methodOnLevel1 Opens the Level-I stream
(Inherited from ChartVisualBase)
Protected methodOnLevel2 Opens the Level-II stream
(Inherited from ChartVisualBase)
Protected methodOnRender Renders the Plot and Line
(Inherited from IndicatorBase)
Protected methodOnRenderYAxis Render the Y Axis values
(Inherited from IndicatorBase)
Protected methodOnStateChange Invoked when the State changes
(Inherited from SharpScriptBase)
Protected methodPlaySound Play a sound file as located in the folder ~\Documents\ArthaChitra 2\Sounds
(Inherited from SharpScriptBase)
Protected methodPrint(String, String) Prints a message with Low
(Inherited from SharpScriptBase)
Protected methodPrint(Brush, String, String) Prints a message with a defined foreground brush
(Inherited from SharpScriptBase)
Protected methodPrint(Priority, String, String) Prints a message with the defined Priority
(Inherited from SharpScriptBase)
Protected methodRecalculate
(Inherited from IndicatorBase)
Public methodRefreshView
(Inherited from IndicatorBase)
Protected methodRound Rounds the value with the factor as defined in Options > General tab > RoundFactor
(Inherited from SharpScriptBase)
Protected methodSelectionSteps How far the selection rectangle will be drawn
(Inherited from VisualBase)
Protected methodSetOverrideBrush Override the brush of the Bars
(Inherited from IndicatorBase)
Protected methodSetOverridePen(Pen, Int32) Override the wick brush of the Bars
(Inherited from IndicatorBase)
Protected methodSetOverridePen(Pen, Int32, Int32) Override the Pen of the Plot series
(Inherited from IndicatorBase)
Protected methodShare Share messages via to social media SocialType The messages will be transmitted only when the state is Realtime
(Inherited from SharpScriptBase)
Public methodToString
(Inherited from IndicatorBase)
Public methodToStringFormat Gets the string format of the value
(Inherited from IndicatorBase)
Protected methodTryRemoveContextMenuItem Removes a IMenuItem from the context menu
(Inherited from IndicatorBase)
Protected methodTryRemoveDrawing Remove a DrawingBase
(Inherited from IndicatorBase)
Protected methodTryRemoveMenuItem Removes a IMenuItem from the tool bar of the view
(Inherited from IndicatorBase)
Top
Events
 NameDescription
Public eventPropertyChanged
(Inherited from NotifyPropertyBase)
Top
See Also