松木扫描仪
Pine stock scanner
是否可以在 Pine 脚本 (Tradingview) 中构建股票扫描仪?
我的意思是一个(for?)循环扫描一个市场中的每只股票并查看是否满足条件,即超卖股票(RSI <30)并将其打印在输出上。
您需要使用security
函数,它的效率不高,但您可以使用
length = input(14)
f(sym)=>
s = security(sym,timeframe.period,close)
r = rsi(s,length) < 30 ? 1 : 0
//----
aapl = f("AAPL")
amd = f("AMD")
intel = f("INTC")
plot(aapl + amd + intel)
The script returns 脚本中的股票数量 rsi < 30 = true
,你也可以根据需要单独绘制所有内容,而使用 label.new
可以让你拥有更多描述性结果。
是否可以在 Pine 脚本 (Tradingview) 中构建股票扫描仪? 我的意思是一个(for?)循环扫描一个市场中的每只股票并查看是否满足条件,即超卖股票(RSI <30)并将其打印在输出上。
您需要使用security
函数,它的效率不高,但您可以使用
length = input(14)
f(sym)=>
s = security(sym,timeframe.period,close)
r = rsi(s,length) < 30 ? 1 : 0
//----
aapl = f("AAPL")
amd = f("AMD")
intel = f("INTC")
plot(aapl + amd + intel)
The script returns 脚本中的股票数量 rsi < 30 = true
,你也可以根据需要单独绘制所有内容,而使用 label.new
可以让你拥有更多描述性结果。