While backtesting is there a way to assume that I buy at limit price instead of close price?
Sorry if I have missed some part of the documentation but I can't find a way to tell cerebro to buy on limit price.
I am trying to backtest a strategy on daily data. Cerebro either buys on next day's close price or buys on current days close price using cheat on close.
It would be great if someone can help me.
If this is not possible is it possible to get 15 minute data and run a EOD daily strategy on it and buy on 15 minute data to decrease slippage in backtesting?
Thanks in advance.
tianjixuetu last edited by
@Suraj-Thorat you can use limit order or use multi timeframe data
@tianjixuetu Even if I place a limit order the order is executed on close price right? Not on limit price. I wanted a way in which the order is executed at limit price I specify.
@Suraj-Thorat if you put the
limitorder in correct way, than it is executed at limit price.
Not always. It can be executed at a better price if the price gaps in the direction of the order (buy/sell), but never at a worst price and of course, by no means at something arbitrary like the
I might've missed something. I will check it out once more and get back to you. Really appreciate the help I am getting from the community. Thanks a lot. Really appreciate it.