plotchar(barstate.islast, char=' ', location=location.top, text="Char", textcolor=color.white) // 是显示的图形,可以复制任何网上的图形代替 plot arrow绘制箭头,官方文档:tradingview.com/pine-sc plotarrow(high - low, title='Arrow') // 根据变量(比如:最高值和最低值的差别)决定箭头的大小 Lines...
我可以使用pine脚本的三元运算符来指定plotshape()中的样式参数或plotchar()中的char参数吗? 、、 我想象我是在请求pinescript做一些它不想做的事情,但我想我还是会提出这个问题。我可以使用pine脚本的三元运算符来指定plotshape()中的样式参数或plotchar()中的char参数吗?shape.square : shape.xcross, )plotchar(...
plotchar(adx_above_25, title="ADX > 25", location=location.top, color=color.green, transp=0) 在这个示例中,我们首先使用adx()函数计算ADX指标的值,然后判断ADX是否大于25,并使用plotshape()函数在图表上绘制ADX大于25的条件。最后,使用plotchar()函数输出ADX值和是否大于25的信息。 这只是一个简单的示例...
f(close):na,title="f(close)",color=color.red,location=location.absolute,style=shape.xcross,overlay=true,char="A")plotchar(oneBarInTwo?f2():na,title="f2()",color=color.green,location=location.absolute,style=shape.circle,overlay=true,char="B")plot(close[2],title="close[2]",color=color...
在FMZ上的Pine语言,画图函数plot、plotshape、plotchar等增加了overlay参数支持,允许指定画在主图或者副图。overlay设置true画在主图,设置为false画在副图。使得FMZ上的Pine策略运行时可以主图、副图同时画图。 5、syminfo.mintick内置变量的取值 syminfo.mintick内置变量的定义为当前品种的最小刻度值。在FMZ实盘/回...
Pine语言是TradingView的编程语言,它允许交易者创建自己的交易工具并在TradingView的服务器上运行这些工具。以下是Pine语言的详细说明文档: 一、Pine语言基础 编译器与版本 Pine脚本需要指定编译器版本,例如//@version=5,这告诉编译器脚本将使用Pine Script™版本5。 注释 Pine语言支持单行和多行注释,单行注释使用//,...
There is a plotchar() function that allows you to plot ASCII characters on your chart. This is often used to plot a note either on top or on the bottom of the price bar. Another common plotting function is plotshape() which allows you to plot various shapes. This one is quite popular...
editable (const bool) 如果为true,则plotchar样式可在格式对话框中编辑。 默认值为true。 show_last (input int) 如已设置,则定义在图表上绘制的图表数(从最后k线返回过去)。 size (const string) 图表上字符的大小。 可能值有:size.auto,size.tiny,size.small,size.normal,size.large,size.huge。 默认值为...
replace_str = input.string("Pine Script", "Replace String") new_text = str.replace(input_text, search_str, replace_str) plotchar(new_text, "New Text", "", location.top) 在这个示例中,用户可以输入一个原始字符串、一个需要搜索的子字符串和一个替换字符串。脚本将显示替换后的新字符串。
TradingView的PineScript-动态数据“系列”变量是如何评估的? 、、 Introductionplotchar(close > open, 'A') 将绘制字符'A‘,其中闭包值大于数组中的打开值。在本例中,它们的关键参数是when参数。未定义<e 浏览0提问于2020-09-02得票数 1 2回答