如何在长期进入的先前栏处设置停止损失?
我想将停车损失设置为先前长期入场的低点。
我正在尝试value (your_condition,low [1],0)
,但我不知道“ your_condition”是什么。
I would like to set my stop loss at the previous bar low of long entry.
I'm trying value when(your_condition, low[1], 0)
, but I don't know what "your_condition" is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
stop
strategy.exit()
设置SL价格:因为该功能在每个蜡烛关闭时都会在每个蜡烛上运行(以及带有蜡烛的数据,刚刚关闭)您可以设置此功能,以便
stop
参数将设置low
作为停止损失价格:stop
parameter instrategy.exit()
sets SL price:Since the function runs on each candle when it closes (and with the data of the candle that just closed) you can set this function so that the
stop
parameter will setlow
as the stop loss price: