0
Follow
0
Followers
Cách hiển thị giá trị của _Cross dưới dạng mảng
Created 2020-03-31 15:17:48 Updated 2020-03-31 15:40:43
2
1394
var crss = [] //存储 交叉死叉的值
var records = _C(exchange.GetRecords,PERIOD_M30);
var bar = records[records.length -1]
var strsi = talib.STOCHRSI(records, 14, 14, 3, 3) //获取StochRSI指标数据
if (strsi) {
var stoc = strsi[0]
var mast = strsi[1]
var cross = _Cross(stoc,mast)
}
if (bar.Time > mtb) {
crss.push(cross)
}
Log(crss)
Vấn đề là tôi đã thêm một chỉ mục vào crss, và dù làm thế nào, nó chỉ hiển thị một giá trị.
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (2)
- 1
