Replies: 2 comments 3 replies
-
|
Hi @jeusdi This looks like a few issues in the strategy code rather than an engine bug:
To fix: remove the manual handle_bar calls from on_bar, and filter by bar type so only composite bars trigger your crossover logic. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@jeusdi your issue reporting is really good. It's easy to fix issues or help when there's no doubt on the code being executed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Market orders are successfully created and submitted during backtesting but never get filled. The orders reach
OrderSubmittedstate but never receiveOrderAcceptedorOrderFilledevents, resulting in 0 positions opened despite crossover signals being detected.Issue
I'm getting this erro rmessage:
Environment
Configuration
Venue Configuration
Data Configuration
Strategy Configuration
Instrument Definition
Order Creation Code
Observed Behavior
From the backtest logs:
After this, the backtest continues processing bars but:
OrderAcceptedeventOrderFilledeventOrderRejectedeventThe backtest completes successfully with:
Expected Behavior
With
bar_execution=True, market orders should be filled immediately using the current bar's OHLC data. The expected event flow should be:OrderInitialized✅ (happens)OrderSubmitted✅ (happens)OrderAccepted❌ (missing)OrderFilled❌ (missing)Questions
Is there additional configuration needed for bar execution mode?
FillModel?book_typeparameter relevant when usingbar_execution=True?Are composite bars (
@syntax) fully supported with bar execution?Does the
SimulatedExchangerequire specific setup for market order fills?Additional Context
OrderMatchingEngineupdates with OHLC values from barsSimulatedExchangeComplete Backtest Code
Main Backtest Script
Strategy Code
Questions
Is there additional configuration needed for bar execution mode?
FillModel?book_typeparameter relevant when usingbar_execution=True?Are composite bars (
@syntax) fully supported with bar execution?Does the
SimulatedExchangerequire specific setup for market order fills?Additional Context
OrderMatchingEngineupdates with OHLC values from barsSimulatedExchangeAny guidance would be greatly appreciated! Is this a configuration issue or potentially a bug?
Related searches I've done:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions