Having trouble getting the RSI to calculate:
The following code:
value = talib.RSI
startIdx: 0
endIdx: instrument.close.length-1
inReal: instrument.close
optInTimePeriod: 14
result = _.last(value)
debug result
debug value returns null like so:
2013-09-07 15:00 null
2013-09-07 15:15 null
2013-09-07 15:30 null
2013-09-07 15:45 null
2013-09-07 16:00 null
Any idea what's going on? Thanks.
EDIT:
Nevermind, looks like the double space matters quite a bit hahaha. Got it to work.