Category
General-Purpose Functions
Description
Evaluates an expression for each non-skipped setup and returns the sum of the values
Syntax
OrderSum(expression)
Notes
This is a specialized function meant to be used in entry-related formulas that want to the sum of something across all current non-skipped setups (stocks for which an entry order will be placed).
OrderSum(1) can be used to count today's orders for the current strategy.
Use SetupSum to count or calculate something for all setups, not just the non-skipped ones.
Note that OrderSum can not be used to refer to past setups in a strategy. It only has access to setups for the current date in the test. Therefore OrderSum(expression)[offset] will probably not have meaningful results.
|