pybroker
pybroker copied to clipboard
How to set a different ctx.sell_fill_price
Hi, @edtechre,
Thank you for your wonderful tool.
I have a trading scenario but don't know how to implement in pybroker. It's appreciated if you could give some suggestions.
1, Day 1, plan tomorrow's price_buy and the day after tomorrow's price_sell 2, Day 2, if 'ctx.buy_limit_price = price_buy' can work ,then buy it 3, Day 3 , if 'ctx.sell_fill_price = price_sell' can work, then use price_sell to sell all pos , otherwise use PriceType.CLOSE to sell all pos
Thanks