Click or drag to resize

IndicatorBase Methods

The IndicatorBase type exposes the following members.

Methods
 NameDescription
Protected methodAddBars(BarType) Add a seconday Bars series. The IInstrument will be that of the primary bars series
Protected methodAddBars(String) Add a seconday Bars series. The BarType will be that of the primary bars series
Protected methodAddBars(String, BarType) Add a secondary Bars series
Protected methodAddBars(String, BarType, String, DateTime, DateTime, BackfillPolicy) Add a secondary Bars series
Protected methodAddContextMenu Add an IMenuItem in the context menu
Public methodAddIndicatorT Adds and/or retrieves sharp script from the cache
Public methodAddIndicatorT(ISeriesDouble) Adds and/or retrieves sharp script from the cache
Public methodAddIndicatorT(Object) Adds and/or retrieves and sharp script from the cache
Public methodAddIndicatorT(ISeriesDouble, Object) Adds and/or retrieves and sharp script from the cache
Protected methodAddLine(String, Double, Pen) Add a Line
Protected methodAddLine(String, Double, Brush, Double) Add a Line
Protected methodAddMenuItem Adds an IMenuItem in the tool bar
Protected methodAddPlot(String, PlotStyle, Pen, Boolean) Add a Plot series
Protected methodAddPlot(String, PlotStyle, Brush, Double, Boolean) Add a Plot series
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
(Overrides ChartVisualBaseCalculateMinMax(IBars, Int32, Int32, Double, Double))
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
(Overrides ChartVisualBaseCanRender(ChartVisualArgs))
Public methodCrossAbove(Double, ISeriesDouble, Int32) Evaluates when value crosses above a series
Public methodCrossAbove(ISeriesDouble, ISeriesDouble, Int32) Evaluates when 2 (two) series crosses each other
Public methodCrossAbove(ISeriesDouble, Double, Int32) Evaluates when the series crosses above the value
Public methodCrossBelow(Double, ISeriesDouble, Int32) Evaluates when a value crosses below a series
Public methodCrossBelow(ISeriesDouble, ISeriesDouble, Int32) Evaluates when 2 (two) series crosses below each other
Public methodCrossBelow(ISeriesDouble, Double, Int32) Evaluates when series crosses below a value
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
Public methodGetOrAddT Gets or add a DrawingBase
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasValue 
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
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
(Overrides ChartVisualBaseMakeHitTest(ChartVisualArgs))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMove Moves the visual
(Overrides ChartVisualBaseMove(Double, Double, ChartVisualArgs))
Protected methodNotifyPropertyChanged
(Inherited from SharpScriptBase)
Protected methodOnBarUpdate Called on each incoming tick
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
(Overrides ChartVisualBaseOnRender(DrawingContext, ChartVisualArgs))
Protected methodOnRenderYAxis Render the Y Axis values
(Overrides ChartVisualBaseOnRenderYAxis(DrawingContext, ChartVisualArgs))
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
(Overrides ChartVisualBaseRecalculate(ChartVisualArgs))
Public methodRefreshView 
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
Protected methodSetOverridePen(Pen, Int32) Override the wick brush of the Bars
Protected methodSetOverridePen(Pen, Int32, Int32) Override the Pen of the Plot series
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
(Overrides ObjectToString)
Public methodToStringFormat Gets the string format of the value
(Overrides ChartVisualBaseToStringFormat(Double))
Protected methodTryRemoveContextMenuItem Removes a IMenuItem from the context menu
Protected methodTryRemoveDrawing Remove a DrawingBase
Protected methodTryRemoveMenuItem Removes a IMenuItem from the tool bar of the view
Top
See Also