joshuaulrich / TTR

Technical analysis and other functions to construct technical trading rules with R
GNU General Public License v2.0
330 stars 103 forks source link

has a problem about af0 = (af1 == d_xl[1]) ? d_xl[1] : (d_xl[0] + af1); in sar.c #27

Closed aaliwei91 closed 8 years ago

aaliwei91 commented 8 years ago

it seems for each iteration of i, this line always uses d_xl[1] and d_xl[0], should it be d_xl[i] and d_xl[i-1]? Thank you.