StrategyBase Class |
Namespace: SharpCharts.Base.SharpScript
public abstract class StrategyBase : SharpScriptBase
The StrategyBase type exposes the following members.
Name | Description | |
---|---|---|
StrategyBase |
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.) |
Name | Description | |
---|---|---|
AddBars(BarType) |
Add a secondary series of the specified barType.
Instrument, Start date, End date, Session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.) | |
AddBars(String) |
Add a secondary series for the specified instrument.
BarType, Start date, End date, Session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.) | |
AddBars(String, BarType) |
Add secondary bar series
Start date, end date, session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.) | |
AddBars(String, BarType, DateTime, DateTime, Session, BackfillPolicy) |
Add a secondary bar series
(Inherited from SharpScriptBase.) | |
AddBars(String, BarType, DateTime, DateTime, Session, Boolean) |
Adds a secondary bar series
(Inherited from SharpScriptBase.) | |
AddIndicatorT |
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.) | |
AddIndicatorT(ISeriesDouble) |
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.) | |
AddIndicatorT(Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.) | |
AddIndicatorT(ISeriesDouble, Object) |
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.) | |
AddLine |
Add a new line
(Inherited from SharpScriptBase.) | |
AddPlot |
Add a new Plot
(Inherited from SharpScriptBase.) | |
Alert(String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
Alert(AlertPriority, String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
Alert(String, String) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
Alert(String, String, TimeSpan) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
Alert(AlertPriority, String, Brush, Brush) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
Alert(String, AlertPriority, String, Brush, Brush, TimeSpan) |
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.) | |
BarsSinceTrade(IOrder) |
Returns the number of bars that have elapsed since the order entry for the primary Bars series
| |
BarsSinceTrade(Int32, IOrder) |
Returns the number of bars that have elapsed since the order entry
| |
CalculateMinMax |
Calculates the minimum and maximum values of the axis
(Inherited from SharpScriptBase.) | |
CalculatePriceFromY |
Calculates the price from Y point
(Inherited from SharpScriptBase.) | |
CalculateXPoint(Double, Int32) |
Calculates the x point
(Inherited from SharpScriptBase.) | |
CalculateXPoint(ChartStyle, Double, Int32, Int32) |
Calculates the x point
(Inherited from SharpScriptBase.) | |
CalculateYFromPrice |
Calculate the Y point from price
(Inherited from SharpScriptBase.) | |
CancelOrder |
Cancels an order
| |
ChangeOrder |
Change an order
Will be ignore if order is not user managed
| |
Clone |
Clones a sharpScript object
(Inherited from SharpScriptBase.) | |
CloseAllPositions |
Closes the position accross all bars indexes
| |
ClosePosition |
Cancels all pending orders and closes exiting position.
Market order is submitted to close the position. If Connection does not supports market order then a limit order is submitted.
| |
ClosePosition(Int32) |
Cancels all pending orders and closes exiting position.
Market order is submitted to close the position. If Connection does not supports market order then a limit order is submitted.
| |
CrossAbove(Double, ISeriesDouble, Int32) |
Evaluates when value crosses above a series
(Inherited from SharpScriptBase.) | |
CrossAbove(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses each other
(Inherited from SharpScriptBase.) | |
CrossAbove(ISeriesDouble, Double, Int32) |
Evaluates when the series crosses above the value
(Inherited from SharpScriptBase.) | |
CrossBelow(Double, ISeriesDouble, Int32) |
Evaluates when a value crosses below a series
(Inherited from SharpScriptBase.) | |
CrossBelow(ISeriesDouble, ISeriesDouble, Int32) |
Evaluates when 2 (two) series crosses below each other
(Inherited from SharpScriptBase.) | |
CrossBelow(ISeriesDouble, Double, Int32) |
Evaluates when series crosses below a value
(Inherited from SharpScriptBase.) | |
Disable |
Disables the strategy.
Pending orders will be canceled or not will be determined via Settings > Options > Strategies tab > CanCancelPendingOrders property.
Position will be closed or not will be determined via Settings > Options > Strategies tab > CanClosePosition property.
| |
EnterLong |
Enters a long position. The entry name is set to the default 'Strategy Entry'. Order quantity will be as specified by the strategy
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterLong(Int32) |
Enters a long position. The entry name is set to the default 'Strategy Entry'
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterLong(String) |
Enters a long position with a specified name. Order quantity will be as specified by the strategy
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterLong(Int32, Int32) |
Enters a long position for the specified bars index and with specified quantity.
| |
EnterLong(String, Int32) |
Enters a long position with a specified name and quantity
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterLong(Int32, String, Int32) |
Enters a long position for the specified bars index with specified name and quantity
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterLongLimit(Double) |
Submits a long limit order. The entry name is set to the default 'Strategy Entry'. Order quantity will be as specified by the strategy
| |
EnterLongLimit(Int32, Double) |
Submits a long limit order with the specified quantity and limit price.
| |
EnterLongLimit(String, Double) |
Submits a long limit order with a specified name. Order quantity will be as specified by the strategy
| |
EnterLongLimit(Int32, Int32, Double) |
Submits a long limit order to the specified bars index, with specified quantity
| |
EnterLongLimit(String, Int32, Double) |
Submits a long limit order with the specified name and quantity
| |
EnterLongLimit(Int32, String, Int32, Double) |
Submits a long limit order to the specified bars index with specified name and quantity
| |
EnterShort |
Enters a short position. The entry name is set to the default 'Strategy Entry'
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShort(Int32) |
Enters a short position with the specifed quantity. The entry name is set to the default 'Strategy Entry'
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShort(String) |
Enters a short position. Order quantity will be as specified by the strategy
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShort(Int32, Int32) |
Enters a short position for the specified bars index and the specified quantity
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShort(String, Int32) |
Enters a short position with the specifed name and quantity.
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShort(Int32, String, Int32) |
Enters a short position for the specified bars index and specified name and quantity
Market order is submitted. If Connection does not supports market order then a limit order is submitted.
| |
EnterShortLimit(Double) |
Submits a short limit order. The entry name is set to the default 'Strategy Entry'. Order quantity will be as specified by the strategy
| |
EnterShortLimit(Int32, Double) |
Submits a short limit order with the specified quantity and limit price
| |
EnterShortLimit(String, Double) |
Submits a short limit order with the specified name. Order quantity will be as specified by the strategy
| |
EnterShortLimit(Int32, Int32, Double) |
Submits a short limit order for the specified bars index and specified quantity
| |
EnterShortLimit(String, Int32, Double) |
Submits a short limit order with specified name and quantity
| |
EnterShortLimit(Int32, String, Int32, Double) |
Submits a short limit order for the specified bars index and specified name and quantity
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExitPosition |
Exits positions as entered via entry order with entry name as Strategy Entry (default entry name)
Market order is submitted to close the position. If Connection does not supports market order then a limit order is submitted.
| |
ExitPosition(Int32) |
Exits a position
| |
ExitPosition(String) |
Exits positions as entered via entry order with entry name as Strategy Entry (default entry name)
Market order is submitted to close the position. If Connection does not supports market order then a limit order is submitted.
| |
ExitPosition(Int32, String) |
Exits a position
| |
Finalize | (Inherited from SharpScriptBase.) | |
GetBarIndexFromTime(DateTime) |
Gets the bar index of the primary bar from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.) | |
GetBarIndexFromTime(Bars, DateTime) |
Gets the bar index from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.) | |
GetCurrentAsk |
Gets the current ask price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
GetCurrentAsk(Int32) |
Gets the current ask price. Works in realtime only
(Inherited from SharpScriptBase.) | |
GetCurrentAskVolume |
Gets the ask volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
GetCurrentAskVolume(Int32) |
Gets the ask volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
GetCurrentBid |
Gets the current bid price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
GetCurrentBid(Int32) |
Gets the current bid price. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.) | |
GetCurrentBidVolume |
Gets the bid volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
GetCurrentBidVolume(Int32) |
Gets the bid volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.) | |
GetFrozenBrush |
Returns the brush as frozen
(Inherited from SharpScriptBase.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLastPrice |
Returns the last traded price of the primary bars. In case the realtime price is not available the closing value of the last available bar is returned
(Inherited from SharpScriptBase.) | |
GetLastPrice(Int32) |
Returns the last traded price. In case the real time price is not available the closing value of the last available bar is returned
(Inherited from SharpScriptBase.) | |
GetSessionDefinition |
Get the session definition for the specified time
(Inherited from SharpScriptBase.) | |
GetSessionStartDate | (Inherited from SharpScriptBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasValue |
Returns if the underlying series has a value
(Inherited from SharpScriptBase.) | |
InvokeAsync |
Invoke any action. It is recommended to draw any DrawingBase by invoking this method
(Inherited from SharpScriptBase.) | |
IsEqual |
Compares two sharp script objects
(Inherited from SharpScriptBase.) | |
IsInputEquals |
Compares two input
(Inherited from SharpScriptBase.) | |
Log |
Log message. It will be displayed in the Logs tab in Main View
(Inherited from PrintLogBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyPropertyChanged |
Notify property change
(Inherited from SharpScriptBase.) | |
OnBarUpdate |
Called on a new tick
(Inherited from SharpScriptBase.) | |
OnConnectionStatus |
Raised when the connection status changes
| |
OnFill |
Raised when an order is filled
| |
OnLevel1 |
Called on every level1 events for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.) | |
OnLevel2 |
Called on every level2 event for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.) | |
OnOrderUpdate |
Raised when the Order State is changed
| |
OnPositionUpdate |
Raised when the position is updated
| |
OnStateChange |
Called on when the SharpScript state is changed
(Inherited from SharpScriptBase.) | |
PlaySound |
Plays a sound file
(Inherited from SharpScriptBase.) | |
Plot |
Plots the series
(Overrides SharpScriptBasePlot(DrawingContext, Double, Double, Int32, Int32, Double, Double).) | |
Print(String) |
Prints the message in the Output view
(Inherited from PrintLogBase.) | |
Print(String, Brush) |
Prints the message in the Output view
(Inherited from PrintLogBase.) | |
RefreshChartObject |
Refreshes/re-renders the chartOject. Can be called only when the ShartScript.State == State.Realtime
(Inherited from SharpScriptBase.) | |
RemoveChartObject |
Removes all the chartObjects drawn by the sharpScript code
(Inherited from SharpScriptBase.) | |
RemoveChartObject(String) |
Removes the chartObject having the tag name. If tag name is null or empty then removes all the chartObjects drawn by the indicator
(Inherited from SharpScriptBase.) | |
RoundToTickSize(Double) |
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.) | |
RoundToTickSize(Int32, Double) |
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.) | |
SetSecondaryBarType |
Set the barType of the secondary bars. Can be called only when the State is in Initialize state.
(Inherited from SharpScriptBase.) | |
SetSecondaryInstrument |
Sets the instrument of the secondary bars. Can be called only when State is in Initialize state.
(Inherited from SharpScriptBase.) | |
SetStop(Double) |
Submits a new stop order for entry orders with entry name as 'Strategy Entry' (default entry order name)
If stop order with the same entry order name exits, then changes the order if the stop price differs
This method will be ignored if set when the Strategy is in Initialized state
| |
SetStop(Double, CalculationMode) |
Submits a stop order for entry orders with entry name as 'Strategy Entry' (default entry name)
If stop order with the same entry order name exists, then changes the order if the stop price differs.
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place an stop order as defined by the method
| |
SetStop(Double, String) |
Submits a new stop order. If stop order with the same entry order name exits, then changes the order if the stop price differs
This method will be ignored if set when the Strategy is in Initialized state
| |
SetStop(Int32, Double) |
Submits a new stop order for the specified bars index. If stop order with the same entry order name exits, then changes the order if the stop price differs
This method will be ignored if set when the Strategy is in Initialized state
| |
SetStop(Double, CalculationMode, String) |
Submits a stop order.
If stop order with the same entry order name exits, then changes the order if the stop price differs.
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place an stop order as defined by the method
| |
SetStop(Int32, Double, CalculationMode) |
Submits a stop order for the specified bars index.
If stop order with the same entry order name exits, then changes the order if the stop price differs.
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place an stop order as defined by the method
| |
SetStop(Int32, Double, String) |
Submits a new stop order for the specified bars index. If stop order with the same entry order name exits, then changes the order if the stop price differs
This method will be ignored if set when the Strategy is in Initialized state
| |
SetStop(Int32, Double, CalculationMode, String) |
Submits a stop order for the specified bars index.
If stop order with the same entry order name exits, then changes the order if the stop price differs.
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place an stop order as defined by the method
| |
SetTarget(Double) |
Submits a limit order. If a limit order with the same entry order name exits then changes that order if the price differs
This method will be ignored if called when the strategy is in Initialized state
| |
SetTarget(Double, CalculationMode) |
Submits a limit order. If a limit order with the same entry order name exits then changes that order if the price differs
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place a target order as defined by the method
| |
SetTarget(Double, String) |
Submits a limit order. If a limit order with the same entry order name exits then changes that order if the price differs
This method will be ignored if called when the strategy is in Initialized state
| |
SetTarget(Int32, Double) |
Submits a limit order for the specified bars index. If a limit order with the same entry order name exits then changes that order if the price differs
This method will be ignored if called when the strategy is in Initialized state
| |
SetTarget(Double, CalculationMode, String) |
Submits a limit order. If a limit order with the same entry order name exits then changes that order if the price differs
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place a target order as defined by the method
| |
SetTarget(Int32, Double, CalculationMode) |
Submits a limit order for the specified bars index. If a limit order with the same entry order name exists then changes that order if the price differs
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place a target order as defined by the method
| |
SetTarget(Int32, Double, String) |
Submits a limit order for the specified bars index. If a limit order with the same entry order name exits then changes that order if the price differs
This method will be ignored if called when the strategy is in Initialized state
| |
SetTarget(Int32, Double, CalculationMode, String) |
Submits a limit order for the specified bars index. If a limit order with the same entry order name exists then changes that order if the price differs
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place a target order as defined by the method
| |
Share | (Inherited from SharpScriptBase.) | |
StringFormat |
Formats the series value as displayed
(Inherited from SharpScriptBase.) | |
SubmitOrder(String, OrderAction, OrderType, Double, Double) |
Submits an order with the quantity as defined in the Strategy Selector View
| |
SubmitOrder(String, OrderAction, OrderType, Int32, Double, Double) |
Submit an order
| |
SubmitOrder(Int32, String, OrderAction, OrderType, Int32, Double, Double) |
Submit an order
| |
SubmitOrder(String, OrderAction, OrderType, Int32, Double, Double, String) |
Submit an order
| |
SubmitOrder(Int32, String, OrderAction, OrderType, Int32, Double, Double, String) |
Submit an order
| |
TickSize |
Gets the tick size of the primary instrument
(Inherited from SharpScriptBase.) | |
TickSize(Int32) |
Gets the tick size of the
(Inherited from SharpScriptBase.) | |
ToDate |
Returns the date stamp in integer form. For example 15th August 2019 will be returned as 20190815
(Inherited from SharpScriptBase.) | |
ToString | (Inherited from SharpScriptBase.) | |
ToTime |
Returns the time stamp in integer form. For example 9:30 AM will return as 93000 1:45 PM will return as 134500
(Inherited from SharpScriptBase.) |
Name | Description | |
---|---|---|
PropertyChanged |
Property changed event handler
(Inherited from SharpScriptBase.) |