简体   繁体   中英

is Tradingview backtesting able to short on open price of the candle?

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)

Here's the screenshot of what I saw. 在此处输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM