MAXORDER

Category: ProBacktest

The MAXORDER parameter is used in ProBacktest to define the maximum order size allowed during a backtest. This ensures that no order exceeds a specified size, allowing for more controlled and realistic simulations.

DEFPARAM MAXORDER = 10

Explanation:

  • The keyword DEFPARAM is used to configure various parameters in a ProBacktest strategy.
  • MAXORDER sets an upper limit on the number of contracts or units that can be traded in a single order.
  • The value assigned (in this case, 10) represents the maximum allowable order size.

Step-by-step breakdown:

  • During a backtest, ProBacktest ensures that no single trade exceeds the value set in MAXORDER.
  • If the strategy generates an order larger than this threshold, only the maximum allowed size will be executed.
  • This parameter is useful for testing strategies under realistic conditions where position sizing constraints apply.

Related Instructions:

  • DEFPARAM instructions
  • MINORDER probacktest
  • Logo Logo
    Loading...