Thanks Andrew, you are right. data downloaded from yahoo is in reverse order, after that is corrected, it works. By the way, is there any function we can call to also fix the data outlier problem?