在Pine脚本中,"plotshape"函数用于在图表上绘制形状指示器,以便在特定条件下显示图形。要更改"plotshape"的位置,可以使用该函数的参数来指定所需的位置。 "plotshape"函数的语法如下: 代码语言:txt 复制 plotshape(series, title, location, color, style, text, textcolor, size, transp, offset) ...
Higher Closer & Lower Closehc = close > high[1] //如果当前蜡烛图收盘价大于前一根蜡烛图的收盘价,则为True lc = close < clos[1] plotshape(hc,styel=shape.triangleup, location=location.belowba…
plotshape绘制图形, 官方文件:tradingview.com/pine-sc indicator("Test", overlay=true) //overlay=true 绘制的图形将在蜡烛图上直接显示,就像移动平均线一样higherclose=close>high[1] lowerclose=close<low[1] plotshape( higherclose, title="Higher Close", style=shape.triangleup, location=location.below...
Pine-Script: Plotshape,同时使用location.absolute和布尔条件..?ENthinkphp 3.2快捷查询OR查询&分割表...
//@version=5indicator("My Script",overlay=true)src=close a=ta.sma(src,5)b=ta.sma(src,50)c=ta.cross(a,b)plot(a,color=color.blue)plot(b,color=color.black)plotshape(c,color=color.red) 或者是这样写的: //@version=5strategy("My Strategy",overlay=true)longCondition=ta.crossover(ta....
plotshape(tradeSignal and bearishEC, title="Short", location=location.abovebar, color=color.red, transp=0, style=shape.triangledown, text="Short") And voila! You have an indicator that will detect counter-trend setups for you while you’re backtesting or even while you’re away from you...
我试着在heiken ashi的以下脚本中添加一个简单的买入/卖出警报,挑战是当趋势(heiken)蜡烛从红色变为绿色时获得买入警报,当蜡烛从绿色变为红色时获得卖出警报。我收到了所有蜡烛的警报,但我原以为会收到颜色变化的警报。这是代码。。。 //@version=2
If you open this blog post in MATLAB Online using the link below, all the parameters at the beginning of the script can be manipulated with sliders and color pickers making it easy for you to design your own pinecone! Click here to try it! % Pinecone Attributes nscales = 140; %...
另见 plotshape plotchar bgcolorplotshape在图表上绘制可视形状。plotshape(series, title, style, location, color, offset, text, textcolor, editable, size, show_last, display) 例子data = close >= open plotshape(data, style=shape.xcross)
[1] and open > close[1] and close <= piercingLine and close > low[1] and close < open and bearishFilters // 绘制信号 plotshape(bpc, style=shape.triangleup, location=location.belowbar, color=color.green) plotshape(dcc, style=shape.triangledown, location=location.abovebar, color=color....