Type/to search
0
Follow
0
Followers
_Cross کی قدر کو صف کی شکل میں کیسے ظاہر کیا جائے۔
Help
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)

مسئلہ یہ ہے کہ میں نے سی آر ایس ایس میں ایک انڈیکس شامل کیا ہے، اور یہ صرف ایک ہی قدر دکھاتا ہے، میں اس کو ایک صف کی شکل میں تبدیل کرنا چاہتا ہوں.

Related Recommendations
Comment
All comments (2)

    想把cross的值变为数组显示

    6 years ago

    没明白你意思,_Cross函数文档有说明,你可以看看,用来判断当前交叉周期数

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)