I'm so confused with the tradingview's backtesting. I saw that when it entered long entry, it entered at open price of the candle. But when it shorted, it shorted at close price of the candle.
Is it possible to config that? I cannot find anywhere.
strategy.entry("LONG ENTRY", strategy.long, when = buysignals)
strategy.entry("SHORT ENTRY", strategy.short, when = sellsignals)
Your short entry there is entering at the open, as does the long entry, which corresponds to expected behavior, unless you use process_orders_on_close=true
in your strategy()
call.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.