Added getAverage metthod

This commit is contained in:
7u83 2017-10-22 12:41:42 +02:00
parent b18bcb8249
commit 804f6ab2bc
1 changed files with 5 additions and 0 deletions

View File

@ -60,5 +60,10 @@ public class OHLCDataItem {
this.close = price;
return ret;
}
public float getAverage(){
return (open+high+low+close)/4;
}
}