Query Language Components

The query language contains three major query blocks, which must appear in the following order:

  1. Execute Options

  2. Initialization Statements

  3. Minor Query Blocks

Each major query block contains one or more minor query blocks. The ordering of the minor query blocks within the major query block is flexible, depending on the desired outcome.

The Major and Minor Query Blocks

  1. Execute Options

    • Execution time period selection

    • Graphics configuration options

    • Profit and Loss testing options

  2. Initialization Statements

    • LET statements

    • INITIALIZE statements

    • FINALIZE statements

    • FINAL SHOW action

    • TOP BOTTOM AS-LONG-AS report filtering

  3. Query Blocks

    • DO SHOW WHEN

    • DO EVERY UNIT

    • DO EVERY TRADE

    • ORDER WHEN EXIT