我正在尝试在 TV 中建立一个策略(仅限多头头寸),其中strategy.entry将考虑之前的退出价格。例如:
strategy.entry("long", strategy.long, when = longcondition==true)
strategy.close("long", strategy.close, when = longcondition==false)
除了 longcondition==true 之外,我还想为 strategy.entry 插入另一个条件,说明以下意图:
strategy.entry("long", strategy.long, when = longcondition==true and close[1] < previousExitPrice)
如何正确执行?预先感谢您的回答。