Indicator Methods |
The Indicator type exposes the following members.
| 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 (Inherited from IndicatorBase) | |
| 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 (Inherited from IndicatorBase) | |
| AddBars(String, BarType) |
Add a secondary Bars series
This method must be called from the OnStateChange method when the State is in StartUp (Inherited from IndicatorBase) | |
| 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 (Inherited from IndicatorBase) | |
| AddContextMenu |
Add an IMenuItem in the context menu
(Inherited from IndicatorBase) | |
| AddIndicatorT |
Adds and/or retrieves sharp script from the cache
(Inherited from IndicatorBase) | |
| AddIndicatorT(ISeriesDouble) |
Adds and/or retrieves sharp script from the cache
(Inherited from IndicatorBase) | |
| AddIndicatorT(Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from IndicatorBase) | |
| AddIndicatorT(ISeriesDouble, Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from IndicatorBase) | |
| AddLine(String, Double, Pen) |
Add a Line. This method must be called from the OnStateChange method when the State is in Initialize (Inherited from IndicatorBase) | |
| AddLine(String, Double, Brush, Double) |
Add a Line. This method must be called from the OnStateChange method when the State is in Initialize (Inherited from IndicatorBase) | |
| AddMenuItem |
Adds an IMenuItem in the tool bar
(Inherited from IndicatorBase) | |
| AddPlot(String, PlotStyle, Pen, Boolean) |
Add a Plot series. This method must be called from the OnStateChange method when the State is in Initialize (Inherited from IndicatorBase) | |
| 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 (Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| CrossAbove(Double, ISeriesDouble, Int32) |
Evaluates when value crosses above a series
(Inherited from IndicatorBase) | |
| CrossAbove(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses each other
(Inherited from IndicatorBase) | |
| CrossAbove(ISeriesDouble, Double, Int32) |
Evaluates when the series crosses above the value
(Inherited from IndicatorBase) | |
| CrossBelow(Double, ISeriesDouble, Int32) |
Evaluates when a value crosses below a series
(Inherited from IndicatorBase) | |
| CrossBelow(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses below each other
(Inherited from IndicatorBase) | |
| CrossBelow(ISeriesDouble, Double, Int32) |
Evaluates when series crosses below a value
(Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| GetOrAddT |
Gets or add a DrawingBase (Inherited from IndicatorBase) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HasValue | (Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Move |
Moves the visual
(Inherited from IndicatorBase) | |
| NotifyPropertyChanged | (Inherited from SharpScriptBase) | |
| OnBarUpdate |
Called on each incoming tick
(Inherited from IndicatorBase) | |
| OnLevel1 |
Opens the Level-I stream
(Inherited from ChartVisualBase) | |
| OnLevel2 |
Opens the Level-II stream
(Inherited from ChartVisualBase) | |
| OnRender |
Renders the Plot and Line (Inherited from IndicatorBase) | |
| OnRenderYAxis |
Render the Y Axis values
(Inherited from IndicatorBase) | |
| 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 | (Inherited from IndicatorBase) | |
| RefreshView | (Inherited from IndicatorBase) | |
| 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 (Inherited from IndicatorBase) | |
| SetOverridePen(Pen, Int32) |
Override the wick brush of the Bars (Inherited from IndicatorBase) | |
| SetOverridePen(Pen, Int32, Int32) |
Override the Pen of the Plot series
(Inherited from IndicatorBase) | |
| Share |
Share messages via to social media SocialType
The messages will be transmitted only when the state is Realtime
(Inherited from SharpScriptBase) | |
| ToString | (Inherited from IndicatorBase) | |
| ToStringFormat |
Gets the string format of the value
(Inherited from IndicatorBase) | |
| TryRemoveContextMenuItem |
Removes a IMenuItem from the context menu
(Inherited from IndicatorBase) | |
| TryRemoveDrawing |
Remove a DrawingBase (Inherited from IndicatorBase) | |
| TryRemoveMenuItem |
Removes a IMenuItem from the tool bar of the view
(Inherited from IndicatorBase) |