Skip to content

ProtoOATrendbars - delta high incorrect #39

Description

@ArchNemSyS

When receiving historical delta encoded trendbars, deltaHigh is incorrectly encoded as zero.

This appears to be a logic error on the server side delta encoder it only occurs when deltaClose is also encoded as zero.

deltaHigh cannot be zero that is equal to low
unless deltaOpen and deltaClose are also zero

A request for 50 days worth of bar data will contain a few hundred of these errors; appears to effect all symbols I can request data for.

examples:

symbolID: 242 symbolname: XAUUSD_SB

utcTimestampInMinutes low deltaOpen deltaClose deltaHigh source
29644250 470257000 614000 0 0 OpenAPI
29644250 470257000 470871000 470257000 470257000 OpenAPI - de-deltaed
2026-05-13 06:50:00 470257000 470871000 470257000 470876000 cTrader Web

symbolID: 200 symbolname: GBPUSD_SB

utcTimestampInMinutes low deltaOpen deltaClose deltaHigh source
29643965 135395 49 0 0 OpenAPI
29643965 135395 135444 135395 135395 OpenAPI - de-deltaed
2026-05-13 02:05:00 135395 135444 135395 135460 cTrader Web

notably this error is not in other Spotware data-streams for the same provider only the openAPI.
The cTrader Web values agree with those calculated from tickdata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions