@qtsurfer/sdk
    Preparing search index...

    Type Alias ParamAxis

    ParamAxis:
        | { from: number; step: number; to: number }
        | { values: (number | boolean)[] }

    One strategy property and the values a sweep should try for it: either a numeric range walked in fixed steps, or an explicit list.

    const params: Record<string, ParamAxis> = {
    rsiPeriod: { from: 7, to: 28, step: 1 },
    useTrendFilter: { values: [true, false] },
    };

    The two shapes are mutually exclusive on the wire, and mixing them is a request the platform rejects rather than reconciles. A list entry is a number or a boolean — the axis of a boolean flag is { values: [true, false] }, not a range.

    Type Declaration

    • { from: number; step: number; to: number }
      • from: number

        First value.

      • step: number

        Increment; must be greater than zero.

      • to: number

        Last value the walk may reach.

    • { values: (number | boolean)[] }
      • values: (number | boolean)[]

        The values to try; at least one.