StrategyBase Properties |
The StrategyBase 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.
| |
| BackBrush |
Gets the Background brush series
(Inherited from SharpScriptBase.) | |
| BarBrush |
Gets the Bar brush series
(Inherited from SharpScriptBase.) | |
| Bars |
Gets or sets the Primary bar
(Inherited from SharpScriptBase.) | |
| BarsArray |
Gets the Bars array
(Inherited from SharpScriptBase.) | |
| BarsInProgress |
Gets the Current bars array in progress
(Inherited from SharpScriptBase.) | |
| BarWickBrushes | (Inherited from SharpScriptBase.) | |
| Calculate |
Gets or sets the Calculate type
(Inherited from SharpScriptBase.) | |
| 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 series
(Inherited from SharpScriptBase.) | |
| Closes |
Gets the Close series array
(Inherited from SharpScriptBase.) | |
| 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 |
Gets the total bar count
(Inherited from SharpScriptBase.) | |
| CurrentBar |
Gets the Current bar
(Inherited from SharpScriptBase.) | |
| CurrentBars |
Current bar series
(Inherited from SharpScriptBase.) | |
| DefaultTemplate |
Gets the Default template of the sharp script
(Inherited from SharpScriptBase.) | |
| DialogService | (Inherited from MessageBoxBase.) | |
| Dispatcher | (Inherited from SharpScriptBase.) | |
| DisplayName |
Gets the display name
(Inherited from SharpScriptBase.) | |
| 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 Entry Handling type. This property can be set only when the strategy is in Initialize state.
| |
| Error |
Gets the Error string
(Inherited from MessageBoxBase.) | |
| FileService | (Inherited from MessageBoxBase.) | |
| Fill |
Gets the FillBase
| |
| Guid | (Inherited from SharpScriptBase.) | |
| High |
Gets the High series
(Inherited from SharpScriptBase.) | |
| Highs |
Gets the High series array
(Inherited from SharpScriptBase.) | |
| Input |
Gets or sets the Input series
(Inherited from SharpScriptBase.) | |
| IsAutoScale | (Inherited from SharpScriptBase.) | |
| IsEnabled |
Gets or sets IsEnabled property.
| |
| IsFirstScriptInPane | (Inherited from SharpScriptBase.) | |
| IsFirstTickOfBar |
Is first tick of bar
(Inherited from SharpScriptBase.) | |
| IsHistoricalOrder |
Returns if historical order will be submitted or not
| |
| IsLevel1Subscribed | Obsolete.
This property has been depreciated
Gets or sets if Level1 events are subscribed or not. Evaluated only when the scripts state is set to Initialize
(Inherited from SharpScriptBase.) | |
| IsLevel2Subscribed | Obsolete.
This property has been depreciated
Gets or sets is Level2 events are subscribed or not. Evaluated only when the scripts state is set to Initialize
(Inherited from SharpScriptBase.) | |
| IsOverlay |
Gets or sets Is overlay
(Inherited from SharpScriptBase.) | |
| IsRealTime |
Gets if the sharpscript Is real time
(Inherited from SharpScriptBase.) | |
| IsUserManaged |
Gets or sets if the strategy is user managed or not.
The property should be set when the strategy is in Initialize state
| |
| ItemInt32 |
Gets the value of the sharp script
(Inherited from SharpScriptBase.) | |
| ItemString |
Gets the IDataErrorInfo error string
(Inherited from MessageBoxBase.) | |
| ItemInt32, Boolean |
Gets the value of sharp script
(Inherited from SharpScriptBase.) | |
| Lines |
Gets or sets the Line array
(Inherited from SharpScriptBase.) | |
| Low |
Gets the Low series
(Inherited from SharpScriptBase.) | |
| Lows |
Gets the Low series array
(Inherited from SharpScriptBase.) | |
| Median |
Gets the Median series
(Inherited from SharpScriptBase.) | |
| Medians |
Gets the Median series array
(Inherited from SharpScriptBase.) | |
| MessageBox | (Inherited from MessageBoxBase.) | |
| Name |
Gets the name of the Sharp Script
(Inherited from SharpScriptBase.) | |
| Open |
Gets the Open series
(Inherited from SharpScriptBase.) | |
| OpenInterest |
Gets the Open Interest series
(Inherited from SharpScriptBase.) | |
| OpenInterests |
Get the Open Interest series array
(Inherited from SharpScriptBase.) | |
| Opens |
Gets the Open series array
(Inherited from SharpScriptBase.) | |
| Orders | ||
| PlotPens |
Gets the Plot pen series array
(Inherited from SharpScriptBase.) | |
| Plots |
Gets or sets the Plot array
(Inherited from SharpScriptBase.) | |
| Position |
Gets the current strategy position
| |
| Positions |
Gets the positions collection
| |
| PriceFormat | Obsolete.
Gets the Price format string
(Inherited from SharpScriptBase.) | |
| PriceType |
Gets or sets the Price type
(Inherited from SharpScriptBase.) | |
| 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
| |
| SeriesDisplayName |
Gets the series display name
(Inherited from SharpScriptBase.) | |
| ShowAdditionalParameters |
Gets or sets if additional parameters will be displayed in the SharpScript selector view
(Inherited from SharpScriptBase.) | |
| ShowLines |
Gets or sets whether the Lines parameter will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.) | |
| ShowNativeParameters |
Gets or sets whether Native parameters will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.) | |
| ShowPlots |
Gets or sets whether the Plots parameter will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.) | |
| SingletonService | (Inherited from MessageBoxBase.) | |
| 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 sharp script
(Inherited from SharpScriptBase.) | |
| Template |
Gets the name of the template
(Inherited from SharpScriptBase.) | |
| TemplateType |
Gets the Template type
(Inherited from SharpScriptBase.) | |
| Time |
Gets the Time series
(Inherited from SharpScriptBase.) | |
| 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
(Inherited from SharpScriptBase.) | |
| TraceOrders |
Prints the order messages in the Output View when set to true
| |
| Trades | ||
| Transactions | ||
| Typical |
Gets the Typical series
(Inherited from SharpScriptBase.) | |
| Typicals |
Gets the Typical series array
(Inherited from SharpScriptBase.) | |
| Values |
Gets the Plot value series array
(Inherited from SharpScriptBase.) | |
| ViewModel |
Gets the View associated with the Sharp Script
(Inherited from SharpScriptBase.) | |
| Volume |
Gets the Volume series
(Inherited from SharpScriptBase.) | |
| Volumes |
Get the Volume series array
(Inherited from SharpScriptBase.) | |
| Weighted |
Gets the Weighted series
(Inherited from SharpScriptBase.) | |
| Weighteds |
Gets the Weighted series array
(Inherited from SharpScriptBase.) |