如何在仍在贸易中预防其他信号? (Pine脚本)
我正在尝试在Pine脚本4中编码一个指标,但是我不会多次贸易信号,而另一个理论交易仍然会活跃。稍后,我将添加一个“关闭位置”警报,但现在我只关注第一个信号,直到出现下一个绿色的Heikin Ashi蜡烛为止。
I am trying to code an indicator in Pine Script 4, but I do not wan´t multiple trade signals while another theoretical trade would still be active. I will add a "close position" alert later on but for now I only wan´t the first signal until the next green heikin ashi candle appears.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
var
查看您是否已经在交易中。这应该给你一个想法:
Use a
var
to see if you are already in a trade.This should give you an idea: