以下是一个示例,演示如何在Pine脚本中更改"plotshape"的位置: 代码语言:txt 复制 //@version=4 study("Change Position of plotshape", overlay=true) // 定义条件 condition = close > open // 在当前柱状图下方绘制形状指示器 plotshape(condition, title="Shape Indicator", location=location.belowbar, ...
我可以使用pine脚本的三元运算符来指定plotshape()中的样式参数或plotchar()中的char参数吗? 、、 我想象我是在请求pine script做一些它不想做的事情,但我想我还是会提出这个问题。我可以使用pine脚本的三元运算符来指定plotshape()中的样式参数或plotchar()中的char参数吗?shape.square : shape.xcross, )plotchar...
barmerge.lookahead_on) use ? security_1 : exp // === /BASE FUNCTIONS === // === SERIES SETUP === closeSeries = variant(basisType, close[delayOffset], basisLen, offsetSigma, offsetALMA) Series = variant(basisType, open[delayOffset], basisLen, offsetSigma, offsetALMA) // === /...
pine i_switch = input(true, "On/Off") // 设置true,默认勾选 plot(i_switch ? open : na) i_len = input(7, "Length") i_src = input(close, "Source") // 下拉框,默认选择close plot(ta.sma(i_src, i_len)) i_col = input(color.red, "Plot Color") plot(close, color=i_col) ...
A simple indicator to plot 5 different types of moving averages (SMA, EMA, WMA, HMA, RMA) and VWAP in different colors. Setup Open "Pine Editor" Open the dropdown called "Open" Click "New indicator" Paste the script in and press "Add to chart" ...
另见 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)
您唯一的选择是 plotshape()。 第一个脚本执行可用符合“简单”的价值,并且在后续执行中它们保持一致。 ...此外,许多内置功能都需要“简单”的参数,这些论点不会随着时间而变化。 pine-script 1个回答 0投票 simple 。您可以具有带有圆形表情符号的无形标签。我认为,看起来更好。
pine-script 1个回答 0投票 lb = input.int(defval = 1, title="左栏") rb = input.int(defval = 1, title="右栏") mb = lb + rb + 1 plotshape((不是 na(high[mb]) ? ((ta.highestbars(mb) == -lb) ? high[lb] : na) : na), style = shape.triangledown, location = ...
理解PineScript中的值与序列时遇到的问题 、 greenCandleCount=0 greenCandleCount := greenCandleCount+1 plot(greenCandleCount) 在上面的示例中,greenCandleCount是第一行中的一个值。因此,在第三行中,greenCandleCount似乎被转换成了序列。因为第2行的比较操作似乎会产生一系列布尔值。不知怎么的,一个在if块...
plot(a, title="a") 时间序列 时间序列并不是一种数据类型或者格式,时间序列是PINE语言中一种基本结构的概念。用来储存时间上连续变动的值,每个值都对应一个时间点。时间序列这种概念的结构很适合应用于处理、记录随时间变化的一系列数据。 以内置变量open为例,open内置变量记录了每一根K线BAR的开盘价,如果这个open...