[−][src]Struct quantaxis_rs::qaperformance::QAPerformance_Single
Fields
market_set: MarketPreset
pair: Vec<QATradePair>
temp: HashMap<String, Vec<Temp>>
Implementations
impl QAPerformance_Single
[src]
pub fn new() -> Self
[src]
pub fn insert_trade(&mut self, trade: Trade)
[src]
pub fn get_totalprofit(&mut self) -> f64
[src]
pub fn get_maxprofit(&mut self) -> f64
[src]
15%交易盈亏比:每天交易10次,,平均亏损,最大亏损 参考:交易实时盈亏比:引入行情,重点在评估每次操盘手平均冒多大风险,赚多大利润 15%胜率:多少次盈利,多少次亏损 40%绝对收益能力:通过操盘手收益(元)/日初总金额(万)。 30%资源周转能力:实际交易金额(元)/日初总金额(万) 手续费贡献:差额手续费(元)/日出总金额(万)
pub fn get_averageprofit(&mut self) -> f64
[src]
pub fn get_profitcount(&mut self) -> i32
[src]
pub fn get_losscount(&mut self) -> i32
[src]
Trait Implementations
impl Clone for QAPerformance_Single
[src]
pub fn clone(&self) -> QAPerformance_Single
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QAPerformance_Single
[src]
impl<'de> Deserialize<'de> for QAPerformance_Single
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for QAPerformance_Single
[src]
Auto Trait Implementations
impl RefUnwindSafe for QAPerformance_Single
[src]
impl Send for QAPerformance_Single
[src]
impl Sync for QAPerformance_Single
[src]
impl Unpin for QAPerformance_Single
[src]
impl UnwindSafe for QAPerformance_Single
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,