which bar/price does backtesting.py use to execute an order? #432
Unanswered
ghostrider
asked this question in
Q&A
Replies: 1 comment 1 reply
-
From the quick start user guide:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
in the sample code below, the SMACross strategy buys and sells an asset upon crossover.
My question is, which price is used to do so?
A bar comes in (to the next method), the strategy evaluates that bar and then closes and buys. But when are the orders being executed? Using the close price of the incoming bar, or close price of the next bar, or open price of next bar?
Does anyone know?
Thanks
Ulrich
Beta Was this translation helpful? Give feedback.
All reactions