Added getAverage metthod
This commit is contained in:
@ -61,4 +61,9 @@ public class OHLCDataItem {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float getAverage(){
|
||||||
|
return (open+high+low+close)/4;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user