Pine脚本错误&quot&quot 27:输入时的语法错误' i。
我尝试了所有内容,但仍然给我这个错误:“ 第27行:输入'i'的语法错误。“似乎也没有凹痕问题。 请帮助。先感谢您。 ''' // This source code is sub…
python中的``交叉函数''
pinescript提供 cross 函数如果两个系列相互交叉,将返回 true 。 在Python中,我们可以很容易地实现相同的操作,例如,如果语句,则可以说两个ma-s和…
脚本在2蜡烛触发后2蜡烛后调用警报。如何修复延迟?
VuManChu Cipher B + Divergences 指标脚本在图表上将 buySignalDiv 条件显示为一个大绿点,但仅在 2 个柱确认后才会触发警报。 这是警报延迟的示例 …
PineScript:基于输入的条形颜色
完整的新手寻求帮助。 目前,我使用简单的代码为条上色。 barclr = input(false, title='(Off) Color2 or (On) Color1') barcolor(barclr ? barcolor2…
如何计算条件关闭和电流关闭的所有情况的差异
con = ta.barssince(ta.rsi(close, 14) > 20) == 1 var flag = false if ta.barssince(ta.ema(close, 50) > ta.ema(close, 200)) == 1 flag := true i…
我如何指定在 pinescript 中迭代哪个数组?
让我们假设 for 循环评估列表中的符号是否处于上升趋势或下降趋势,“i > 0”表示上升趋势,“ i < 0”表示下降趋势, 例如,如果我想迭代列表中的列…
如何通过按键开/关显示指示器(Pine 脚本)
//code //@version=4 study("Enable test indicator ") // in setup panel, I can enable or disable with instruction below habilitaRSI = input(tr…
如何在 Pine Script 中绘制 MA 水平线
dma120=request.security(syminfo.tickerid, "D",ta.sma(close,120)) plot(dma120, color= color.blue, title = "D MA120" ) h4ma30=request.security…