Evaluates an expression for each setup and returns the sum of the values
This is a specialized function meant to be used in entry-related formulas that want to the sum of something across all current setups.
SetupSum(1) returns the count of today's setups, which is not yet available in S.Setups at position entry time.
Use OrderSum to count or calculate something for non-skipped setups only.
Note that SetupSum cannot be used to refer to past setups in a strategy. It only has access to setups for the current date in the test. Therefore SetupSum(expression)[offset] will probably not have meaningful results.