Strategy
<< Click to Display Table of Contents >> Strategy |
The methods and properties covered in this section are unique to custom strategy development.
Represents the real-world or simulation Account configured for the strategy. |
|
Adds an indicator to the strategy only for the purpose of displaying it on a chart. |
|
Adds an instance of custom Performance Metric to a strategy used in strategy calculations. |
|
Adds ATM strategies to manage your position |
|
The number of historical bars required before the strategy starts processing order methods called in the OnBarUpdate() method. |
|
Returns the number of bars that have elapsed since the last specified entry. |
|
Returns the number of bars that have elapsed since the last specified exit. |
|
Contains a collection of Indicators which have been added to the strategy instance using AddChartIndicator(). |
|
Cancels all working orders, closes any existing positions, and finally disables the strategy. |
|
Sets the manner in which your strategy will behave when a connection loss is detected. |
|
Determines the number of trading days which will be configured when loading the strategy from the Strategies Grid. |
|
An order size variable that can be set either programmatically or overriden via the Strategy that determines the quantity of an entry order. |
|
Determines the amount of time a disconnect would have to last before connection loss handling takes action. |
|
Determines the maximum number of entries allowed per direction while a position is active based on the EntryHandling property. |
|
Sets the manner in how entry orders will handle. |
|
Represents a read only interface that exposes information regarding an execution (filled order) resulting from an order and is passed as a parameter in the OnExecutionUpdate() method. |
|
The number of seconds before the actual session end time that the "IsExitOnSessionCloseStrategy" function will trigger. |
|
Determines if the strategy performance results will include commission on a historical backtest. |
|
Determines if the strategy will save orders, trades, and execution history. |
|
Determines if the strategy is programmed in a manner capable of handling real-world account positions. |
|
Determines if the strategy will cancel all strategy generated orders and close all open strategy positions at the close of the session. |
|
Determines if the strategy will use a more liberal fill algorithm for back-testing purposes only. |
|
Determines if the strategy should be re-instantiated (re-created) after each optimization run when using the Strategy Analyzer Optimizer. |
|
Determines if the current NinjaScript Strategy is run from a Strategy Analyzer chart. |
|
Plots trading hours break lines on the indicator panel. |
|
Indicates the strategy is currently waiting until a flat position is detected before submitting live orders. |
|
Determines the maximum number of restart attempts allowed within the last x minutes defined in RestartsWithinMinutes when the strategy experiences a connection loss. |
|
An event driven method used for strategies which is called for each AccountItem update for the account on which the strategy is running. |
|
An event driven method which is called on an incoming execution of an order managed by a strategy. |
|
An event driven method used for strategies which will allow you to customize the output of TraceOrders. |
|
An event driven method which is called each time an order managed by a strategy changes state. |
|
An event driven method which is called each time the position of a strategy changes state. |
|
Reserved for Walk-Forward Optimization, this property determines the number of days used for the "in sample" backtest period for a given strategy. See also TestPeriod. |
|
Represents a read only interface that exposes information regarding an order. |
|
NinjaScript provides several approaches you can use for order placement within your NinjaScript strategy. |
|
Determines how strategy orders are filled during historical states. |
|
Determines the bars type which will be used for historical fill processing. |
|
Determines the bars period interval value which will be used for historical fill processing. |
|
Holds an array of PerformanceMetrics objects that represent custom metrics that can be used for strategy calcuations. |
|
A collection holding all of the Plot objects that define their visualization characteristics. |
|
Represents position related information that pertains to an instance of a strategy. |
|
Represents position related information that pertains to real-world account (live or simulation). |
|
Holds an array of Position objects that represent positions managed by the strategy. |
|
Holds an array of PositionAccount objects that represent positions managed by the strategy's account. |
|
Defines the behavior of a strategy when a strategy generated order is returned from the broker's server in a "Rejected" state. |
|
Determines within how many minutes the strategy will attempt to restart. |
|
Determines how order sizes are calculated for a given strategy. |
|
Sets the amount of slippage in ticks per execution used in performance calculations during backtests. |
|
Sets the start behavior of the strategy. See Syncing Account Positions for more information. |
|
Determines how stop and target orders are submitted during an entry order execution. |
|
A custom TypeConverter class handling the designed behavior of an strategy's property descriptor collection. |
|
The SystemPerformance object holds all trades and trade performance data generated by a strategy. |
|
Reserved for Walk-Forward Optimization, this property determines the number of days used for the "out of sample" backtest period for a given strategy. |
|
Sets the time in force property for all orders generated by a strategy. |
|
Determines if OnOrderTrace() would be called for a given strategy. |
|
A Trade is a completed buy/sell or sell/buy transaction. It consists of an entry and exit execution. |
|
A collection of Trade objects. |
|
Performance values of a collection of Trade objects. |
|
Determines if the strategy will submit both legs of an OCO bracket before submitting the pair to the broker. |