Click or drag to resize

StrategyBase Class

Base class for Strategy
Inheritance Hierarchy

Namespace:  SharpCharts.Base.SharpScript
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public abstract class StrategyBase : SharpScriptBase

The StrategyBase type exposes the following members.

Constructors
  NameDescription
Public methodStrategyBase
Top
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 propertyBackBrush
Gets the Background brush series
(Inherited from SharpScriptBase.)
Public propertyBarBrush
Gets the Bar brush series
(Inherited from SharpScriptBase.)
Public propertyBars
Gets or sets the Primary bar
(Inherited from SharpScriptBase.)
Public propertyBarsArray
Gets the Bars array
(Inherited from SharpScriptBase.)
Public propertyBarsInProgress
Gets the Current bars array in progress
(Inherited from SharpScriptBase.)
Public propertyBarWickBrushes (Inherited from SharpScriptBase.)
Public propertyCalculate
Gets or sets the Calculate type
(Inherited from SharpScriptBase.)
Protected 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
Public propertyClose
Gets the Close series
(Inherited from SharpScriptBase.)
Public propertyCloses
Gets the Close series array
(Inherited from SharpScriptBase.)
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
Gets the total bar count
(Inherited from SharpScriptBase.)
Public propertyCurrentBar
Gets the Current bar
(Inherited from SharpScriptBase.)
Public propertyCurrentBars
Current bar series
(Inherited from SharpScriptBase.)
Public propertyDefaultTemplate
Gets the Default template of the sharp script
(Inherited from SharpScriptBase.)
Protected propertyDialogService (Inherited from MessageBoxBase.)
Public propertyDispatcher (Inherited from SharpScriptBase.)
Public propertyDisplayName
Gets the display name
(Inherited from SharpScriptBase.)
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 Entry Handling type. This property can be set only when the strategy is in Initialize state.
Public propertyError
Gets the Error string
(Inherited from MessageBoxBase.)
Protected propertyFileService (Inherited from MessageBoxBase.)
Public propertyFill
Gets the FillBase
Public propertyGuid (Inherited from SharpScriptBase.)
Public propertyHigh
Gets the High series
(Inherited from SharpScriptBase.)
Public propertyHighs
Gets the High series array
(Inherited from SharpScriptBase.)
Public propertyInput
Gets or sets the Input series
(Inherited from SharpScriptBase.)
Public propertyIsAutoScale (Inherited from SharpScriptBase.)
Public propertyIsEnabled
Gets or sets IsEnabled property.
Public propertyIsFirstScriptInPane (Inherited from SharpScriptBase.)
Public propertyIsFirstTickOfBar
Is first tick of bar
(Inherited from SharpScriptBase.)
Public propertyIsHistoricalOrder
Returns if historical order will be submitted or not
Protected propertyIsLevel1Subscribed 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.)
Protected propertyIsLevel2Subscribed 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.)
Public propertyIsOverlay
Gets or sets Is overlay
(Inherited from SharpScriptBase.)
Public propertyIsRealTime
Gets if the sharpscript Is real time
(Inherited from SharpScriptBase.)
Protected propertyIsUserManaged
Gets or sets if the strategy is user managed or not. The property should be set when the strategy is in Initialize state
Public propertyItemInt32
Gets the value of the sharp script
(Inherited from SharpScriptBase.)
Public propertyItemString
Gets the IDataErrorInfo error string
(Inherited from MessageBoxBase.)
Public propertyItemInt32, Boolean
Gets the value of sharp script
(Inherited from SharpScriptBase.)
Public propertyLines
Gets or sets the Line array
(Inherited from SharpScriptBase.)
Public propertyLow
Gets the Low series
(Inherited from SharpScriptBase.)
Public propertyLows
Gets the Low series array
(Inherited from SharpScriptBase.)
Public propertyMedian
Gets the Median series
(Inherited from SharpScriptBase.)
Public propertyMedians
Gets the Median series array
(Inherited from SharpScriptBase.)
Protected propertyMessageBox (Inherited from MessageBoxBase.)
Public propertyName
Gets the name of the Sharp Script
(Inherited from SharpScriptBase.)
Public propertyOpen
Gets the Open series
(Inherited from SharpScriptBase.)
Public propertyOpenInterest
Gets the Open Interest series
(Inherited from SharpScriptBase.)
Public propertyOpenInterests
Get the Open Interest series array
(Inherited from SharpScriptBase.)
Public propertyOpens
Gets the Open series array
(Inherited from SharpScriptBase.)
Public propertyOrders
Public propertyPlotPens
Gets the Plot pen series array
(Inherited from SharpScriptBase.)
Public propertyPlots
Gets or sets the Plot array
(Inherited from SharpScriptBase.)
Public propertyPosition
Gets the current strategy position
Public propertyPositions
Gets the positions collection
Public propertyPriceFormat Obsolete.
Gets the Price format string
(Inherited from SharpScriptBase.)
Public propertyPriceType
Gets or sets the Price type
(Inherited from SharpScriptBase.)
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 propertySeriesDisplayName
Gets the series display name
(Inherited from SharpScriptBase.)
Public propertyShowAdditionalParameters
Gets or sets if additional parameters will be displayed in the SharpScript selector view
(Inherited from SharpScriptBase.)
Public propertyShowLines
Gets or sets whether the Lines parameter will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.)
Public propertyShowNativeParameters
Gets or sets whether Native parameters will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.)
Public propertyShowPlots
Gets or sets whether the Plots parameter will be displayed in the Indicator Selector view
(Inherited from SharpScriptBase.)
Protected propertySingletonService (Inherited from MessageBoxBase.)
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 sharp script
(Inherited from SharpScriptBase.)
Public propertyTemplate
Gets the name of the template
(Inherited from SharpScriptBase.)
Public propertyTemplateType
Gets the Template type
(Inherited from SharpScriptBase.)
Public propertyTime
Gets the Time series
(Inherited from SharpScriptBase.)
Public propertyTimeInForce
Gets or sets the time in force. This property can be set only when the strategy is in Initialize state.
Public propertyTimes
Gets the Time series array
(Inherited from SharpScriptBase.)
Protected propertyCode exampleTraceOrders
Prints the order messages in the Output View when set to true
Public propertyTrades
Public propertyTransactions
Public propertyTypical
Gets the Typical series
(Inherited from SharpScriptBase.)
Public propertyTypicals
Gets the Typical series array
(Inherited from SharpScriptBase.)
Public propertyValues
Gets the Plot value series array
(Inherited from SharpScriptBase.)
Public propertyViewModel
Gets the View associated with the Sharp Script
(Inherited from SharpScriptBase.)
Public propertyVolume
Gets the Volume series
(Inherited from SharpScriptBase.)
Public propertyVolumes
Get the Volume series array
(Inherited from SharpScriptBase.)
Public propertyWeighted
Gets the Weighted series
(Inherited from SharpScriptBase.)
Public propertyWeighteds
Gets the Weighted series array
(Inherited from SharpScriptBase.)
Top
Methods
  NameDescription
Protected methodAddBars(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.)
Protected methodAddBars(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.)
Protected methodAddBars(String, BarType)
Add secondary bar series Start date, end date, session, Backfill Policy is referenced from the parent bar
(Inherited from SharpScriptBase.)
Protected methodAddBars(String, BarType, DateTime, DateTime, Session, BackfillPolicy)
Add a secondary bar series
(Inherited from SharpScriptBase.)
Protected methodAddBars(String, BarType, DateTime, DateTime, Session, Boolean)
Adds a secondary bar series
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(ISeriesDouble)
Adds and/or retrieves sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(Object)
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddIndicatorT(ISeriesDouble, Object)
Adds and/or retrieves and sharp script from the cache
(Inherited from SharpScriptBase.)
Public methodAddLine
Add a new line
(Inherited from SharpScriptBase.)
Public methodAddPlot
Add a new Plot
(Inherited from SharpScriptBase.)
Protected methodAlert(String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(AlertPriority, String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, String)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, String, TimeSpan)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(AlertPriority, String, Brush, Brush)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodAlert(String, AlertPriority, String, Brush, Brush, TimeSpan)
Sends a new Alert message to the Alert View
(Inherited from SharpScriptBase.)
Protected methodBarsSinceTrade(IOrder)
Returns the number of bars that have elapsed since the order entry for the primary Bars series
Protected methodBarsSinceTrade(Int32, IOrder)
Returns the number of bars that have elapsed since the order entry
Public methodCalculateMinMax
Calculates the minimum and maximum values of the axis
(Inherited from SharpScriptBase.)
Public methodCalculatePriceFromY
Calculates the price from Y point
(Inherited from SharpScriptBase.)
Public methodCalculateXPoint(Double, Int32)
Calculates the x point
(Inherited from SharpScriptBase.)
Public methodCalculateXPoint(ChartStyle, Double, Int32, Int32)
Calculates the x point
(Inherited from SharpScriptBase.)
Public methodCalculateYFromPrice
Calculate the Y point from price
(Inherited from SharpScriptBase.)
Public methodCancelOrder
Cancels an order
Public methodChangeOrder
Change an order Will be ignore if order is not user managed
Protected methodClone
Clones a sharpScript object
(Inherited from SharpScriptBase.)
Public methodCloseAllPositions
Closes the position accross all bars indexes
Public methodClosePosition
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.
Public methodClosePosition(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.
Public methodCrossAbove(Double, ISeriesDouble, Int32)
Evaluates when value crosses above a series
(Inherited from SharpScriptBase.)
Public methodCrossAbove(ISeriesDouble, ISeriesDouble, Int32)
Evaluates when 2 (two) series crosses each other
(Inherited from SharpScriptBase.)
Public methodCrossAbove(ISeriesDouble, Double, Int32)
Evaluates when the series crosses above the value
(Inherited from SharpScriptBase.)
Public methodCrossBelow(Double, ISeriesDouble, Int32)
Evaluates when a value crosses below a series
(Inherited from SharpScriptBase.)
Public methodCrossBelow(ISeriesDouble, ISeriesDouble, Int32)
Evaluates when 2 (two) series crosses below each other
(Inherited from SharpScriptBase.)
Public methodCrossBelow(ISeriesDouble, Double, Int32)
Evaluates when series crosses below a value
(Inherited from SharpScriptBase.)
Public methodDisable
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.
Public methodEnterLong
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.
Public methodEnterLong(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.
Public methodEnterLong(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.
Public methodEnterLong(Int32, Int32)
Enters a long position for the specified bars index and with specified quantity.
Public methodEnterLong(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.
Public methodEnterLong(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.
Public methodEnterLongLimit(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
Public methodEnterLongLimit(Int32, Double)
Submits a long limit order with the specified quantity and limit price.
Public methodEnterLongLimit(String, Double)
Submits a long limit order with a specified name. Order quantity will be as specified by the strategy
Public methodEnterLongLimit(Int32, Int32, Double)
Submits a long limit order to the specified bars index, with specified quantity
Public methodEnterLongLimit(String, Int32, Double)
Submits a long limit order with the specified name and quantity
Public methodEnterLongLimit(Int32, String, Int32, Double)
Submits a long limit order to the specified bars index with specified name and quantity
Public methodEnterShort
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.
Public methodEnterShort(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.
Public methodEnterShort(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.
Public methodEnterShort(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.
Public methodEnterShort(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.
Public methodEnterShort(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.
Public methodEnterShortLimit(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
Public methodEnterShortLimit(Int32, Double)
Submits a short limit order with the specified quantity and limit price
Public methodEnterShortLimit(String, Double)
Submits a short limit order with the specified name. Order quantity will be as specified by the strategy
Public methodEnterShortLimit(Int32, Int32, Double)
Submits a short limit order for the specified bars index and specified quantity
Public methodEnterShortLimit(String, Int32, Double)
Submits a short limit order with specified name and quantity
Public methodEnterShortLimit(Int32, String, Int32, Double)
Submits a short limit order for the specified bars index and specified name and quantity
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExitPosition
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.
Public methodExitPosition(Int32)
Exits a position
Public methodExitPosition(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.
Public methodExitPosition(Int32, String)
Exits a position
Protected methodFinalize (Inherited from SharpScriptBase.)
Protected methodGetBarIndexFromTime(DateTime)
Gets the bar index of the primary bar from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.)
Protected methodGetBarIndexFromTime(Bars, DateTime)
Gets the bar index from time. Returns -1 if time is beyond the bars range
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAsk
Gets the current ask price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAsk(Int32)
Gets the current ask price. Works in realtime only
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAskVolume
Gets the ask volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentAskVolume(Int32)
Gets the ask volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBid
Gets the current bid price of the primary bar. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBid(Int32)
Gets the current bid price. For historical bars, will return the corresponding close value of the bars.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBidVolume
Gets the bid volume of the primary bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Protected methodGetCurrentBidVolume(Int32)
Gets the bid volume of the specified bars. Works in realtime only.
(Inherited from SharpScriptBase.)
Public methodGetFrozenBrush
Returns the brush as frozen
(Inherited from SharpScriptBase.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLastPrice
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.)
Public methodGetLastPrice(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.)
Protected methodGetSessionDefinition
Get the session definition for the specified time
(Inherited from SharpScriptBase.)
Protected methodGetSessionStartDate (Inherited from SharpScriptBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasValue
Returns if the underlying series has a value
(Inherited from SharpScriptBase.)
Protected methodInvokeAsync
Invoke any action. It is recommended to draw any DrawingBase by invoking this method
(Inherited from SharpScriptBase.)
Public methodIsEqual
Compares two sharp script objects
(Inherited from SharpScriptBase.)
Public methodIsInputEquals
Compares two input
(Inherited from SharpScriptBase.)
Protected methodLog
Log message. It will be displayed in the Logs tab in Main View
(Inherited from PrintLogBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyPropertyChanged
Notify property change
(Inherited from SharpScriptBase.)
Protected methodOnBarUpdate
Called on a new tick
(Inherited from SharpScriptBase.)
Protected methodOnConnectionStatus
Raised when the connection status changes
Protected methodOnFill
Raised when an order is filled
Protected methodOnLevel1
Called on every level1 events for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.)
Protected methodOnLevel2
Called on every level2 event for the subscribed instruments (in case of multi-instrument scripts).
(Inherited from SharpScriptBase.)
Protected methodOnOrderUpdate
Raised when the Order State is changed
Protected methodOnPositionUpdate
Raised when the position is updated
Protected methodOnStateChange
Called on when the SharpScript state is changed
(Inherited from SharpScriptBase.)
Public methodPlaySound
Plays a sound file
(Inherited from SharpScriptBase.)
Public methodPlot
Plots the series
(Overrides SharpScriptBasePlot(DrawingContext, Double, Double, Int32, Int32, Double, Double).)
Protected methodPrint(String)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Protected methodPrint(String, Brush)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Public methodRefreshChartObject
Refreshes/re-renders the chartOject. Can be called only when the ShartScript.State == State.Realtime
(Inherited from SharpScriptBase.)
Public methodRemoveChartObject
Removes all the chartObjects drawn by the sharpScript code
(Inherited from SharpScriptBase.)
Public methodRemoveChartObject(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.)
Protected methodRoundToTickSize(Double)
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.)
Protected methodRoundToTickSize(Int32, Double)
Returns the round value of the instrument tick size
(Inherited from SharpScriptBase.)
Protected methodSetSecondaryBarType
Set the barType of the secondary bars. Can be called only when the State is in Initialize state.
(Inherited from SharpScriptBase.)
Protected methodSetSecondaryInstrument
Sets the instrument of the secondary bars. Can be called only when State is in Initialize state.
(Inherited from SharpScriptBase.)
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetStop(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Protected methodSetTarget(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
Public methodShare (Inherited from SharpScriptBase.)
Protected methodStringFormat
Formats the series value as displayed
(Inherited from SharpScriptBase.)
Public methodSubmitOrder(String, OrderAction, OrderType, Double, Double)
Submits an order with the quantity as defined in the Strategy Selector View
Public methodSubmitOrder(String, OrderAction, OrderType, Int32, Double, Double)
Submit an order
Public methodSubmitOrder(Int32, String, OrderAction, OrderType, Int32, Double, Double)
Submit an order
Public methodSubmitOrder(String, OrderAction, OrderType, Int32, Double, Double, String)
Submit an order
Public methodSubmitOrder(Int32, String, OrderAction, OrderType, Int32, Double, Double, String)
Submit an order
Protected methodTickSize
Gets the tick size of the primary instrument
(Inherited from SharpScriptBase.)
Protected methodTickSize(Int32)
Gets the tick size of the
(Inherited from SharpScriptBase.)
Protected methodToDate
Returns the date stamp in integer form. For example 15th August 2019 will be returned as 20190815
(Inherited from SharpScriptBase.)
Public methodToString (Inherited from SharpScriptBase.)
Protected methodToTime
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.)
Top
Events
  NameDescription
Public eventPropertyChanged
Property changed event handler
(Inherited from SharpScriptBase.)
Top
See Also