@@ -242,9 +242,9 @@ fn makeIntArray(allocator: std.mem.Allocator, len: usize, lookback: usize) ![]i3
242242}
243243
244244pub fn ACCBANDS (allocator : std.mem.Allocator , high : []const f64 , low : []const f64 , close : []const f64 , timeperiod : i32 ) ! struct {
245- outrealupperband : []f64 ,
246- outrealmiddleband : []f64 ,
247- outreallowerband : []f64 ,
245+ realupperband : []f64 ,
246+ realmiddleband : []f64 ,
247+ reallowerband : []f64 ,
248248} {
249249 var outbegidx : i32 = undefined ;
250250 var outnbelement : i32 = undefined ;
@@ -356,8 +356,8 @@ pub fn APO(allocator: std.mem.Allocator, real: []const f64, fastperiod: i32, slo
356356}
357357
358358pub fn AROON (allocator : std.mem.Allocator , high : []const f64 , low : []const f64 , timeperiod : i32 ) ! struct {
359- outaroondown : []f64 ,
360- outaroonup : []f64 ,
359+ aroondown : []f64 ,
360+ aroonup : []f64 ,
361361} {
362362 var outbegidx : i32 = undefined ;
363363 var outnbelement : i32 = undefined ;
@@ -454,9 +454,9 @@ pub fn AVGDEV(allocator: std.mem.Allocator, real: []const f64, timeperiod: i32)
454454}
455455
456456pub fn BBANDS (allocator : std.mem.Allocator , real : []const f64 , timeperiod : i32 , nbdevup : f64 , nbdevdn : f64 , matype : MAType ) ! struct {
457- outrealupperband : []f64 ,
458- outrealmiddleband : []f64 ,
459- outreallowerband : []f64 ,
457+ realupperband : []f64 ,
458+ realmiddleband : []f64 ,
459+ reallowerband : []f64 ,
460460} {
461461 var outbegidx : i32 = undefined ;
462462 var outnbelement : i32 = undefined ;
@@ -1478,8 +1478,8 @@ pub fn HT_DCPHASE(allocator: std.mem.Allocator, real: []const f64) ![]f64 {
14781478}
14791479
14801480pub fn HT_PHASOR (allocator : std.mem.Allocator , real : []const f64 ) ! struct {
1481- outinphase : []f64 ,
1482- outquadrature : []f64 ,
1481+ inphase : []f64 ,
1482+ quadrature : []f64 ,
14831483} {
14841484 var outbegidx : i32 = undefined ;
14851485 var outnbelement : i32 = undefined ;
@@ -1498,8 +1498,8 @@ pub fn HT_PHASOR(allocator: std.mem.Allocator, real: []const f64) !struct {
14981498}
14991499
15001500pub fn HT_SINE (allocator : std.mem.Allocator , real : []const f64 ) ! struct {
1501- outsine : []f64 ,
1502- outleadsine : []f64 ,
1501+ sine : []f64 ,
1502+ leadsine : []f64 ,
15031503} {
15041504 var outbegidx : i32 = undefined ;
15051505 var outnbelement : i32 = undefined ;
@@ -1661,9 +1661,9 @@ pub fn MA(allocator: std.mem.Allocator, real: []const f64, timeperiod: i32, maty
16611661}
16621662
16631663pub fn MACD (allocator : std.mem.Allocator , real : []const f64 , fastperiod : i32 , slowperiod : i32 , signalperiod : i32 ) ! struct {
1664- outmacd : []f64 ,
1665- outmacdsignal : []f64 ,
1666- outmacdhist : []f64 ,
1664+ macd : []f64 ,
1665+ macdsignal : []f64 ,
1666+ macdhist : []f64 ,
16671667} {
16681668 var outbegidx : i32 = undefined ;
16691669 var outnbelement : i32 = undefined ;
@@ -1684,9 +1684,9 @@ pub fn MACD(allocator: std.mem.Allocator, real: []const f64, fastperiod: i32, sl
16841684}
16851685
16861686pub fn MACDEXT (allocator : std.mem.Allocator , real : []const f64 , fastperiod : i32 , fastmatype : MAType , slowperiod : i32 , slowmatype : MAType , signalperiod : i32 , signalmatype : MAType ) ! struct {
1687- outmacd : []f64 ,
1688- outmacdsignal : []f64 ,
1689- outmacdhist : []f64 ,
1687+ macd : []f64 ,
1688+ macdsignal : []f64 ,
1689+ macdhist : []f64 ,
16901690} {
16911691 var outbegidx : i32 = undefined ;
16921692 var outnbelement : i32 = undefined ;
@@ -1707,9 +1707,9 @@ pub fn MACDEXT(allocator: std.mem.Allocator, real: []const f64, fastperiod: i32,
17071707}
17081708
17091709pub fn MACDFIX (allocator : std.mem.Allocator , real : []const f64 , signalperiod : i32 ) ! struct {
1710- outmacd : []f64 ,
1711- outmacdsignal : []f64 ,
1712- outmacdhist : []f64 ,
1710+ macd : []f64 ,
1711+ macdsignal : []f64 ,
1712+ macdhist : []f64 ,
17131713} {
17141714 var outbegidx : i32 = undefined ;
17151715 var outnbelement : i32 = undefined ;
@@ -1730,8 +1730,8 @@ pub fn MACDFIX(allocator: std.mem.Allocator, real: []const f64, signalperiod: i3
17301730}
17311731
17321732pub fn MAMA (allocator : std.mem.Allocator , real : []const f64 , fastlimit : f64 , slowlimit : f64 ) ! struct {
1733- outmama : []f64 ,
1734- outfama : []f64 ,
1733+ mama : []f64 ,
1734+ fama : []f64 ,
17351735} {
17361736 var outbegidx : i32 = undefined ;
17371737 var outnbelement : i32 = undefined ;
@@ -1873,8 +1873,8 @@ pub fn MININDEX(allocator: std.mem.Allocator, real: []const f64, timeperiod: i32
18731873}
18741874
18751875pub fn MINMAX (allocator : std.mem.Allocator , real : []const f64 , timeperiod : i32 ) ! struct {
1876- outmin : []f64 ,
1877- outmax : []f64 ,
1876+ min : []f64 ,
1877+ max : []f64 ,
18781878} {
18791879 var outbegidx : i32 = undefined ;
18801880 var outnbelement : i32 = undefined ;
@@ -1893,8 +1893,8 @@ pub fn MINMAX(allocator: std.mem.Allocator, real: []const f64, timeperiod: i32)
18931893}
18941894
18951895pub fn MINMAXINDEX (allocator : std.mem.Allocator , real : []const f64 , timeperiod : i32 ) ! struct {
1896- outminidx : []i32 ,
1897- outmaxidx : []i32 ,
1896+ minidx : []i32 ,
1897+ maxidx : []i32 ,
18981898} {
18991899 var outbegidx : i32 = undefined ;
19001900 var outnbelement : i32 = undefined ;
@@ -2192,8 +2192,8 @@ pub fn STDDEV(allocator: std.mem.Allocator, real: []const f64, timeperiod: i32,
21922192}
21932193
21942194pub fn STOCH (allocator : std.mem.Allocator , high : []const f64 , low : []const f64 , close : []const f64 , fastk_period : i32 , slowk_period : i32 , slowk_matype : MAType , slowd_period : i32 , slowd_matype : MAType ) ! struct {
2195- outslowk : []f64 ,
2196- outslowd : []f64 ,
2195+ slowk : []f64 ,
2196+ slowd : []f64 ,
21972197} {
21982198 var outbegidx : i32 = undefined ;
21992199 var outnbelement : i32 = undefined ;
@@ -2212,8 +2212,8 @@ pub fn STOCH(allocator: std.mem.Allocator, high: []const f64, low: []const f64,
22122212}
22132213
22142214pub fn STOCHF (allocator : std.mem.Allocator , high : []const f64 , low : []const f64 , close : []const f64 , fastk_period : i32 , fastd_period : i32 , fastd_matype : MAType ) ! struct {
2215- outfastk : []f64 ,
2216- outfastd : []f64 ,
2215+ fastk : []f64 ,
2216+ fastd : []f64 ,
22172217} {
22182218 var outbegidx : i32 = undefined ;
22192219 var outnbelement : i32 = undefined ;
@@ -2232,8 +2232,8 @@ pub fn STOCHF(allocator: std.mem.Allocator, high: []const f64, low: []const f64,
22322232}
22332233
22342234pub fn STOCHRSI (allocator : std.mem.Allocator , real : []const f64 , timeperiod : i32 , fastk_period : i32 , fastd_period : i32 , fastd_matype : MAType ) ! struct {
2235- outfastk : []f64 ,
2236- outfastd : []f64 ,
2235+ fastk : []f64 ,
2236+ fastd : []f64 ,
22372237} {
22382238 var outbegidx : i32 = undefined ;
22392239 var outnbelement : i32 = undefined ;
0 commit comments