For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Return order executed price in def next (self)?
-
First of all thanks for creating backtrader. This relieves my work a lot in trading.
Have a question about stop loss in strategy. Watched the post about stop trading link text and suggest to include stop loss in def notify_order. But because i define all strategy in def next, so is it possible to get the buy execution price in def next area?
Thanks a lot. Still learning how to use this great platform :)
-
@yyf said in Return order executed price in def next (self)?:
is it possible to get the buy execution price in def next area?
Store it when received in
notify_order
and use the stored value innext