Strategy Properties |
The Strategy type exposes the following members.
| Name | Description | |
|---|---|---|
| Account | Gets or sets the account associated with the strategy. This property can be set only when the strategy is in Initialize state. | |
| 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
(Inherited from IndicatorBase) | |
| BarsInProgress |
Gets the index of the BarsArray calling the OnBarUpdate method
(Inherited from IndicatorBase) | |
| BufferSize |
Gets or sets the buffer size. This property can be set only when the State is in Initialize state
(Inherited from IndicatorBase) | |
| Calculate |
Gets or sets the Calculate mode. This property can be set only when the State is in Initialize state
(Inherited from IndicatorBase) | |
| CanUserModifyOrders | Gets or sets if the order as submitted by the strategy can be further changed/cancelled by user manually (from Chart or DOM etc). The property should be set when the strategy is in Initialize state. Note : The Orders will always be available in the Main View | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| ConnectionLossHandling | Gets the Connection loss handling type. This can be set via Settings > Options > Strategy tab | |
| ConnectionTimeoutSeconds | Gets the connection timeout seconds up which the strategy will be disabled on connection loss. This can be set via Settings > Options > Strategy tab | |
| Count | (Inherited from IndicatorBase) | |
| CurrentBar |
Gets the current bars index of the Bars invoking the OnBarUpdate method.
(Inherited from IndicatorBase) | |
| CurrentBars |
Gets the CurrentBar of the corresponding BarsArray
(Inherited from IndicatorBase) | |
| 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
(Inherited from IndicatorBase) | |
| EntriesPerDirection | Gets or sets the entries per direction. This property can be set only when the strategy is in Initialize state. | |
| EntryHandling | Gets or sets the EntryHandling type. This property can be set only when the strategy is in Initialize state. | |
| Error |
Gets the Error string
(Inherited from ServiceBase) | |
| FileService |
Opens a IFileService dialog
(Inherited from ServiceBase) | |
| Fill | Gets the IFill | |
| 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.
(Inherited from IndicatorBase) | |
| HighestHigh |
Highest high of the plot series
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| Indicators |
Gets the child indicators
(Inherited from IndicatorBase) | |
| Input |
Gets the input series
(Inherited from IndicatorBase) | |
| Instrument |
Gets the IInstrument of the BarsInProgress (Inherited from IndicatorBase) | |
| Instruments |
Gets the Instruments array
(Inherited from IndicatorBase) | |
| IsAutoScale |
Is autoscale
(Inherited from ChartVisualBase) | |
| IsEnabled | Gets or sets IsEnabled property. | |
| IsFirstTickOfBar |
Is first tick of bar of the Bars invoking the OnBarUpdate method.
(Inherited from IndicatorBase) | |
| IsFirstTickOfBars |
Is first tick of the bar of the corresponding BarsArray
(Inherited from IndicatorBase) | |
| IsFormattedText |
If set to true, the indicator plot value are printed (e.g. in YAxis) as formatted text
(Inherited from IndicatorBase) | |
| IsHistoricalOrder | Returns if historical order will be submitted or not | |
| IsSelected |
Is the object selected or not
(Inherited from IndicatorBase) | |
| IsSharpScript |
Gets if the drawing object is created by a sharpScript code
(Inherited from ChartVisualBase) | |
| IsUserManaged | Gets or sets if the strategy is user managed or not. The property should be set when the strategy is in Initialize state | |
| IsValueChanged | (Inherited from ChartVisualBase) | |
| IsVisible |
Is series visible
(Inherited from ChartVisualBase) | |
| ItemInt32 |
Gets the value of the series at the specified index
(Inherited from IndicatorBase) | |
| ItemString |
Gets the IDataErrorInfo error string
(Inherited from ServiceBase) | |
| Last | (Inherited from IndicatorBase) | |
| LastSelectedIndex |
Gets the lastPrice selected series index
(Inherited from IndicatorBase) | |
| LineHitTestWidth |
Gets teh Line hit test width
(Inherited from ChartVisualBase) | |
| Lines |
Gets or sets the Lines
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| LowestLow |
Lowest low of the plot series
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| Orders | ||
| PanelIndex |
Gets the panel index
(Inherited from ChartVisualBase) | |
| Parent |
Gets the Bars of the Input series
(Inherited from IndicatorBase) | |
| Plots |
Gets the Plots
(Inherited from IndicatorBase) | |
| Position | Gets the current strategy position of the BarsInProgress | |
| Positions | Gets the IPosition array | |
| ProductType | Gets or sets the order productType. The property should be set when the strategy is in Initialize state. | |
| Quantity | ||
| RealtimeErrorHandling | Gets the real time error handing type. This can be set via Settings > Options > Strategy tab | |
| SelectedSeriesIndex |
Gets the selected series index (Scanner View)
(Inherited from IndicatorBase) | |
| SingletonService |
Opens a ISingletonService dialog
(Inherited from ServiceBase) | |
| Slippage | Gets or sets the slippage (in ticks) when a historical order is filled. Default value = 1, Minimum value = 0.0. | |
| State |
Gets the current State of the script
(Inherited from SharpScriptBase) | |
| Strategies | ||
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| TimeInForce | Gets or sets the time in force. This property can be set only when the strategy is in Initialize state. | |
| 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.
(Inherited from IndicatorBase) | |
| TraceOrders | Prints the order messages in the Output View when set to true | |
| Trades | ||
| Transactions | ||
| Types | ||
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) | |
| 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.
(Inherited from IndicatorBase) |