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