Pine script “松树文字”;保存操作失败,原因:错误";错误
我刚刚开始我的松树之旅,但不能在电视聊天上发布脚本。我在哪里可以找到人调试下面的脚本,该脚本抛出“保存操作失败,原因:错误”错误?其余的都已经调试过了,所以对于一个有经验的人来说,这可能是一件非常简单的事情。任何帮助都将不胜感激Pine script “松树文字”;保存操作失败,原因:错误";错误,pine-script,Pine Script,我刚刚开始我的松树之旅,但不能在电视聊天上发布脚本。我在哪里可以找到人调试下面的脚本,该脚本抛出“保存操作失败,原因:错误”错误?其余的都已经调试过了,所以对于一个有经验的人来说,这可能是一件非常简单的事情。任何帮助都将不胜感激 谢谢你能提供的帮助 //@version=4 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
谢谢你能提供的帮助
//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
study(title="ATR Rising from Low Alert", shorttitle="Lowest ATR Rising", overlay=true, precision=0)
// Input options input(defval, title, type)
length = input(1, minval=2, title="ATR Lookback Length")
ticker1 = input(defval="Enter", title="Ticker1", type="syminfo.ticker")
ticker2 = input(defval="Enter", title="Ticker2", type="syminfo.ticker")
//Set variables
f_low = lowest[length]
//Calculate the low ATR breakout
[f_low] = if tr[1]
if tr = higher
if volume > (volume[1] * 1.25)
//Set triggerAlert condition
triggerAlert = volume > (volume[1] * 1.25)
true
else
false
// Create alert - Can create dynamic alerts using {{}}
alertcondition(condition = triggerAlert, title = 'ATR Alert', message = 'ATR Breakout on {{syminfo.ticker}}!')
// Plot values
alertcondition(condition = triggerAlert, title = 'ATR Alert', message = 'ATR Breakout on {{syminfo.ticker}}!')
// Show Break Alerts
plotshape(triggerAlert, title="Buy", style=shape.labelup, location=location.belowbar, size=size.normal, text="Buy", textcolor = white, color=green, transp=0)