For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Why the executed price of a market-type order is the open price of next period instead of the close price of current period?
-
Why the executed price of a market-type order is the open price of next period? To me it makes more sense if the executed price is the close price of current period.
When placing a market-type order, the market has not closed yet, so why not executed with the close price of current period?
-
@bowguo Probably the following answer from @backtrader may help:
https://community.backtrader.com/topic/620/exit-on-the-same-bar-of-entry-problem/5
-