Added getAverage metthod
This commit is contained in:
parent
b18bcb8249
commit
804f6ab2bc
@ -60,5 +60,10 @@ public class OHLCDataItem {
|
|||||||
this.close = price;
|
this.close = price;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float getAverage(){
|
||||||
|
return (open+high+low+close)/4;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user