Pine Script 中的所有用户定义变量都是可变的,也就是说它们的值都可以使用重新赋值运算符 := 来改变。给变量赋一个新值有可能会改变它的类型限定符(类型限定符后面会讲,如const常量、input输入量、simple简单量、series 系列量)。 脚本在一根k线上执行期间,可以根据需要对一个变量进行多次重新赋值,因此脚本可以包含...
series pine-script 2个回答 0投票 这意味着您可以将所有绘图转向前进:)并获得相同的结果,您只需要在绘图期间设置偏移 0投票 这里是示例脚本 -N 这可能不是完美的,但希望有人能在将来改善它 这是一个很古老的问题,但似乎还没有人回答,所以希望这将来会对某人有所帮助 ...
closeSeriesAlt and close<=open // === /ALERT conditions. // === STRATEGY === // stop loss slPoints = input.int(defval0, title='Initial Stop Loss Points (zero to disable)', minval=0) tpPoints = input.int(defval=0,title='Initial Target Profit Points (zero for disable)', ...
A series in Pine Script refers to sequential data like OHLC prices, indicator values, trade volumes etc. over a timeframe. It is the foundation for accessing and manipulating data in your scripts. Core price series Pine Script has four built-in series for OHLC data: open - Open price of ...
pine-script 1个回答 0投票 你不能那样做。 defval input() 的参数需要 const。 defval(const int/float/bool/string/color 或源类型内置函数) 确定输入变量的默认值在脚本的“设置/输入”选项卡中建议,来自脚本用户可以更改它。源型内置是内置串联浮点数指定计算源的变量:close、hlc3、等等 const变量的...
timeframe(simple string) 时间周期。空字符串将被解释为图表的当前时间周期。 expression(series int/float/bool/color) 可以从request.security调用计算并返回一个表达式。它可以是一个系列或一个包含可以转换为系列的元素的元组。 gaps(barmerge_gaps) 给所请求的数据合并策略(要求数据自动与主要系列OHLC数据合并)。
因为为http的请求,所以需要将特殊符号encode成url格式的 java使用: String c = java.net.URLEncoder....
Pine script at it’s core just takes in time series data, passes that data through functions and outputs it as a strategy or indicator.Functions can either be user specified or fortunately pine script comes with the vast majority of functions you’ll likely need built in. To get the simple...
timeframe (simple string) 时间周期。空字符串将被解释为图表的当前时间周期。 expression (series int/float/bool/color) 可以从request.security调用计算并返回一个表达式。它可以是一个系列或一个包含可以转换为系列的元素的元组。 gaps (barmerge_gaps) 给所请求的数据合并策略(要求数据自动与主要系列OHLC数据合并...
symbol (simple string) 商品代码。 timeframe (simple string) 时间周期。空字符串将被解释为图表的当前时间周期。 expression (series int/float/bool/color) 可以从request.security调用计算并返回一个表达式。它可以是一个系列或一个包含可以转换为系列的元素的元组。 gaps (barmerge_gaps) 给所请求的数据合并...