`plotarrow`是Pine脚本中用于绘制箭头标记的函数。它通常用于在图表上标记买入或卖出信号。 以下是`plotarrow`函数的基本用法示例: //@version=4 study("My Script", overlay=true) //绘制买入信号箭头 plotarrow(buy_signal, colorup=color.green, maxheight=50, minh
plotarrow(high - low, title='Arrow') // 根据变量(比如:最高值和最低值的差别)决定箭头的大小 Lines绘制直线,官方文档:tradingview.com/pine-sc // 绘制直线需要起点和终点的坐标,x1, y1 就是起点坐标,x2,y2是终点坐标 myline=line.new(x1=bar_index[10],y1=low[10], x2=bar_index,y2=high) ...
指示器面板上的PineScript绘图形状或箭头 是否可以在研究(overlay=false)处的指示器面板上绘制形状或箭头?如果我有一个像这样声明的研究 //@version=4// ...plotarrow(true, title="EMA Cross", colorup=color.lime, colordown=color.r 浏览34提问于2021-02-09得票数0 ...
color=color.green, text="hc", textcolor=color.white, size=size.auto ) //当higherclose为true的时候绘制向上的三角形,位于蜡烛图下方,绿色,尺寸大小自动调整 plotshape( lowerclose, title="Lower Close", style=shape.arrowdown, color=color.red, text="lc", textcolor=color.white, size=size.auto )...
问在条件语句中使用Pinescript标志/警报进行评分策略ENPython条件语句是通过一条或多条语句的执行结果(...
plot(a, title="a") 时间序列 时间序列并不是一种数据类型或者格式,时间序列是PINE语言中一种基本结构的概念。用来储存时间上连续变动的值,每个值都对应一个时间点。时间序列这种概念的结构很适合应用于处理、记录随时间变化的一系列数据。 以内置变量open为例,open内置变量记录了每一根K线BAR的开盘价,如果这个open...
Drawing On The Chart - There really is no use for Pine Script if you don’t know how to do this. By the end of this section, not only will you learn how to draw and plot everything to your charts, but you will also build a multi-chart with custom candles. You will combine indic...
起初有一些问题,但注意到Pinescript V5已更改了输入函数,并尝试了一些固定一些代码但留下一些错误的不同的函数。代码引发错误“输入'函数没有名称'type'”的参数,并且在包含“ type = input.int”的所有位置出现错误。不确定我是否需要以某种方式删除“键入”或对其进行不同的重写。我能得到的最糟糕的是,从包含它...
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" ...
Finally we will plot the fastEMA and slowEMA values on the chart so we can better visualise what the strategy is doing. Backtesting Pine Script Strategies So how does this simple moving average cross over strategy perform? When lambo? To find out we use TradingView’s StrategyTest application...