File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -901,9 +901,10 @@ def _process_orders(self):
901
901
elif (low <= (order .sl or - np .inf ) <= high or
902
902
low <= (order .tp or - np .inf ) <= high ):
903
903
warnings .warn (
904
- "A SL/TP order would execute in the same bar as its contingent upon "
905
- "stop/limit order. Since we can't assert the precise intra-candle "
906
- "price movement, the affected SL/TP order will be executed on "
904
+ f"({ data .index [- 1 ]} ) A contingent SL/TP order would execute in the "
905
+ "same bar its parent stop/limit order was turned into a trade. "
906
+ "Since we can't assert the precise intra-candle "
907
+ "price movement, the affected SL/TP order will instead be executed on "
907
908
"the next (matching) price/bar, making the result (of this trade) "
908
909
"somewhat dubious. "
909
910
"See https://github.com/kernc/backtesting.py/issues/119" ,
You can’t perform that action at this time.
0 commit comments