Click or drag to resize

Strategy Properties

The Strategy type exposes the following members.

Properties
 NameDescription
Public propertyAccount Gets or sets the account associated with the strategy. This property can be set only when the strategy is in Initialize state.
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)
Public propertyCanUserModifyOrders 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
Protected propertyClose Gets the Close price series of the BarsInProgress
(Inherited from IndicatorBase)
Protected propertyCloses Gets the close series array
(Inherited from IndicatorBase)
Public propertyConnectionLossHandling Gets the Connection loss handling type. This can be set via Settings > Options > Strategy tab
Public propertyConnectionTimeoutSeconds Gets the connection timeout seconds up which the strategy will be disabled on connection loss. This can be set via Settings > Options > Strategy tab
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 propertyEntriesPerDirection Gets or sets the entries per direction. This property can be set only when the strategy is in Initialize state.
Public propertyEntryHandling Gets or sets the EntryHandling type. This property can be set only when the strategy is in Initialize state.
Public propertyError Gets the Error string
(Inherited from ServiceBase)
Protected propertyFileService Opens a IFileService dialog
(Inherited from ServiceBase)
Public propertyFill Gets the IFill
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)
Public propertyIsEnabled Gets or sets IsEnabled property.
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 propertyIsHistoricalOrder Returns if historical order will be submitted or not
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)
Public propertyIsUserManaged Gets or sets if the strategy is user managed or not. The property should be set when the strategy is in Initialize state
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 propertyOrders 
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 propertyPosition Gets the current strategy position of the BarsInProgress
Public propertyPositions Gets the IPosition array
Public propertyProductType Gets or sets the order productType. The property should be set when the strategy is in Initialize state.
Public propertyQuantity 
Public propertyRealtimeErrorHandling Gets the real time error handing type. This can be set via Settings > Options > Strategy tab
Public propertySelectedSeriesIndex Gets the selected series index (Scanner View)
(Inherited from IndicatorBase)
Protected propertySingletonService Opens a ISingletonService dialog
(Inherited from ServiceBase)
Public propertySlippage Gets or sets the slippage (in ticks) when a historical order is filled. Default value = 1, Minimum value = 0.0.
Public propertyState Gets the current State of the script
(Inherited from SharpScriptBase)
Public propertyStatic memberStrategies 
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)
Public propertyTimeInForce Gets or sets the time in force. This property can be set only when the strategy is in Initialize state.
Protected propertyTimes Gets the Times array
(Inherited from IndicatorBase)
Protected propertyCode exampleTraceOrders Prints the order messages in the Output View when set to true
Public propertyTrades 
Public propertyTransactions 
Public propertyStatic memberTypes 
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
See Also