Work with compound formula results

Select a specific value from a formula that returns multiple fields.

Some system formulas return compound results rather than one number or string.

Sub-reference functions

Use SubRef, SubRefNum, or SubRefStr to select the needed named component. Build the relationship through the Formula Editor rather than guessing field names.

Position example

A position information result can contain more than one value, such as average entry price and signed quantity. Select the exact component required by the custom calculation.

See also: Formula Editor & XapiScript complete reference.

Was this article helpful?

Get Started Now!

Try out our technology for free or open an account and start trading.

There is a substantial risk of loss in trading futures and options.