Skip to content

Fix canonical preset execution for v0.2.3 - #8

Merged
andywkff merged 1 commit into
mainfrom
codex/fix-canonical-release-0.2.3
Aug 23, 2026
Merged

Fix canonical preset execution for v0.2.3#8
andywkff merged 1 commit into
mainfrom
codex/fix-canonical-release-0.2.3

Conversation

@andywkff

Copy link
Copy Markdown
Contributor

Summary

  • honor supplied V3 rules for named policies before legacy built-in fallback
  • correct active Bollinger, Fast Stochastic, SMA/EMA crossover, and custom preset definitions
  • add focused definition and end-to-end named-rule regressions

Verification

  • swift test --filter BacktestingKitPresetRuleTests
  • swift test (130 tests)
  • swift build -c release

Pull request created by Codex. Tracks #7.

@andywkff

Copy link
Copy Markdown
Contributor Author

@codex review

@andywkff
andywkff merged commit 12f2d04 into main Aug 23, 2026
2 checks passed
@andywkff
andywkff deleted the codex/fix-canonical-release-0.2.3 branch August 23, 2026 17:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b74fd54b78

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

indicatorOneType: .sma,
indicatorOneFigure: [50, 0, 0],
compare: .largerOrEqualTo,
compare: .smallerOrEqualTo,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make crossover predicates mutually exclusive

When the 50- and 150-period averages are equal, the new entry condition (>=) and this exit condition (<=) are both true. On flat price histories or whenever the averages converge exactly, the state-based backtester can repeatedly enter and then exit positions even though no crossover occurred; the same overlapping pair is introduced in emaCrossoverPreset. Use non-overlapping predicates (or previous/current-value crossing detection) so equality alone cannot trigger both signals.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant