How to execute(buy or sell) create and execute operations at one time?
Sasha last edited by Sasha
2016-02-23, SELL CREATE 24.20
2016-02-24, SELL EXECUTED Price: 24.76
24.24 and 24.76 are the close price of each day.
It is daily trading. Execute operation is performed the next day, on 24.
I want to create and execute the operation in 2016-02-23.
I mean that the action was created and executed at a price of 24.24. Is it possible to perform such operation?
ab_trader last edited by
cheat-on-closefeatures in the documentation.
cwse last edited by
Is it possible to apply "Cheat on Open" and Cheat on close" for specific trades (i.e. for select order placements), as opposed to applying it across the board in cerebro:
cerebro = bt.Cerebro(cheat_on_open=True)?