#import "KLine.h"
@implementation KLine
-(void)setMaxPrice:(float)maxPrice{
_maxPrice = maxPrice;
_avgPrice = (_minPrice + _maxPrice)/2;
}
-(float)maxPrice{
return _maxPrice;
}
-(void)setMinPrice:(float)minPrice{
_minPrice =minPrice;
_avgPrice = (_minPrice + _maxPrice)/2;
}
-(float)minPrice{
return _minPrice;
}
-(float)avgPrice{
return _avgPrice;
}
@end
|
|