Skip to content

Commit

Permalink
Merge pull request #4 from zbd0518/master
Browse files Browse the repository at this point in the history
ma10Volume错写了?
  • Loading branch information
fujianlian authored Oct 31, 2018
2 parents 420d13c + 1e5ce13 commit 2245a6b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void calculateMA(List<KLineEntity> dataList) {
}
if (i == 59) {
point.MA60Price = ma60 / 60f;
} else if (i >= 59) {
} else if (i >= 60) {
ma60 -= dataList.get(i - 60).getClosePrice();
point.MA60Price = ma60 / 60f;
} else {
Expand Down Expand Up @@ -290,7 +290,7 @@ private static void calculateVolumeMA(List<KLineEntity> entries) {
}

if (i == 9) {
entry.MA5Volume = volumeMa10 / 10f;
entry.MA10Volume = volumeMa10 / 10f;
} else if (i > 9) {
volumeMa10 -= entries.get(i - 10).getVolume();
entry.MA10Volume = volumeMa10 / 10f;
Expand Down

0 comments on commit 2245a6b

Please sign in to comment.