TradingView/Pinescript如何使用“固定”最低的停止损失?

发布于 2025-01-24 06:56:23 字数 452 浏览 2 评论 0原文

我对Pinescript有点陌生,也许我在问一些愚蠢的事情。

我会尝试清楚地解释: 我打开一个短的位置,使用最低(关闭,20)来设置停止损失。 但是,只要我的交易进行,我的停止损失就会改变新的最低点(关闭,20)。

例子 :

蓝线是最低的(关闭,20),我们可以看到交易打开时大约是38880(我想保留38880,无论是我的停车损失,无论如何),但是20分钟20分钟后来,新的最低(关闭,20)大约是38620(因为它没有那么多动作),而停止损失停止了交易。

我希望你能理解,我不会流利。

提前致谢

I'm a bit new to Pinescript, maybe I'm asking something dumb.

I'll try to explain clearly :
I open a short position, I use a lowest(close,20) to set my stop loss.
But as long as my trade goes, my stop loss will change for the new lowest(close,20).

Example :
Example

The blue line is the lowest(close,20), we can see it was around 38880 when the trade was opened (I would like to keep this 38880 for my stop loss, no matter what), but 20 minutes later the new lowest(close,20) is something like 38620 (because it wasn't moving that much) and the stop loss stopped the trade.

I hope you could understand, I'm not fluent.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文