0

当我的条件为真时,我想下订单。我不想等到关闭酒吧。如果我的条件为真,无论价格在柱的中间或柱的 1/3,它都会下订单。我可以通过 alert(alert.freq_once_per_bar=true) 做到这一点,但我想在策略中看到它。

例子 :

*//@version=4
strategy("try to place order if condition true")
ema= ema(close,200)
strategy.entry("long",strategy.long,when=close < ema)
strategy.entry("short",strategy.short,when=close > ema)*

当价格收盘时,您可以在这张图片中看到老虎订单。但我不想等到酒吧关门。在此处输入图像描述

enter code here
4

0 回答 0