无法在TradingView Pinescript中添加当前警报价格
我找不到价格条件的相关解决方案 image link
plotshape(longCondition, title="Buy Signal", text="BUY", textcolor=color.white, style=shape.labelup, size=size.normal, location=location.belowbar, color=color.green, transp=0)
alertcondition(longCondition, title="Buy Alert", message="BUY")
我想要的是我当时会收到购买信号,无论目前的价格是什么,我想在图表中显示出当前的价格,这些价格应该导致这样的东西
i am unable to find the relevant solution for the price condition image link
plotshape(longCondition, title="Buy Signal", text="BUY", textcolor=color.white, style=shape.labelup, size=size.normal, location=location.belowbar, color=color.green, transp=0)
alertcondition(longCondition, title="Buy Alert", message="BUY")
what i want is that when ever i will get buy signal at that time the whatever the current price is i want to show that current price with buy label in the chart that should result something like this finalresultimage link
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
栏关闭时,Pine脚本会运行。因此,当您在
购买
触发时获得的当前价格等于关闭
。请记住,默认情况下,这将不是您将进入该职位的价格。您将进入下一个栏的第一个交易的职位(这将是下一个bar的)。如果要在每个购买触发器上添加
Close
价格,只需将其添加到text
paramater上的plotshape()功能。 V5上的示例:
Pine script runs when bar is closed. Therefore, the current price when you get when
buy
is triggered is equal toclose
. Keep in mind that as a default, this will not be the price you will enter the position. You will enter a position on the first trade of the next bar (which will beopen
of the next bar).If you want to add
close
price to eachbuy
trigger, just add it to thetext
paramater onplotshape()
function. Example on v5: