Lookback for TA_CDL3OUTSIDE is bigger than needed
Brought to you by:
fortier
TA_CDL3OUTSIDE_Lookback is hardcoded to return 3. So TA_CDL3OUTSIDE uses startIdx = 3 by default. But it access only indexes i,i-1,i-2
in tight loop. So it begins with elements 3,2,1 although it may start with elements 2,1,0. I suspect that Lookback shall return 2 otherwise function unnecessary ignores very first candle if startIdx <= 2. What do you think?
Same for CDL3BLACKCROWSand for TA_CDLENGULFING
Last edit: Alexander Trufanov 2015-08-24