pub struct QAPerformance_Single {
pub market_set: MarketPreset,
pub pair: Vec<QATradePair>,
pub temp: HashMap<String, Vec<Temp>>,
}
Fields§
§market_set: MarketPreset
§pair: Vec<QATradePair>
§temp: HashMap<String, Vec<Temp>>
Implementations§
Source§impl QAPerformance_Single
impl QAPerformance_Single
pub fn new() -> Self
pub fn insert_trade(&mut self, trade: Trade)
pub fn get_totalprofit(&mut self) -> f64
Sourcepub fn get_maxprofit(&mut self) -> f64
pub fn get_maxprofit(&mut self) -> f64
15%交易盈亏比:每天交易10次,,平均亏损,最大亏损 参考:交易实时盈亏比:引入行情,重点在评估每次操盘手平均冒多大风险,赚多大利润 15%胜率:多少次盈利,多少次亏损 40%绝对收益能力:通过操盘手收益(元)/日初总金额(万)。 30%资源周转能力:实际交易金额(元)/日初总金额(万) 手续费贡献:差额手续费(元)/日出总金额(万)
pub fn get_averageprofit(&mut self) -> f64
pub fn get_profitcount(&mut self) -> i32
pub fn get_losscount(&mut self) -> i32
Trait Implementations§
Source§impl Clone for QAPerformance_Single
impl Clone for QAPerformance_Single
Source§fn clone(&self) -> QAPerformance_Single
fn clone(&self) -> QAPerformance_Single
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QAPerformance_Single
impl Debug for QAPerformance_Single
Source§impl<'de> Deserialize<'de> for QAPerformance_Single
impl<'de> Deserialize<'de> for QAPerformance_Single
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QAPerformance_Single
impl RefUnwindSafe for QAPerformance_Single
impl Send for QAPerformance_Single
impl Sync for QAPerformance_Single
impl Unpin for QAPerformance_Single
impl UnwindSafe for QAPerformance_Single
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more