Use formulas inside order strategies

Drive strategy values from formulas instead of fixed inputs.

When the strategy editor's Formulas switch is enabled, many fields can use formula-derived values.

Possible formula-driven fields

  • Price
  • Quantity
  • Side
  • Symbol
  • Other strategy parameters exposed by the editor

Use the simplest method

If a fixed value or native offset already meets the objective, use the native control. Formula-driven logic is most useful when the value must react to market, position, or event state.

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.