Refactor, and added strategy with risk
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use crate::{
|
||||
PulseWire,
|
||||
general::{EventLog, MarketTrend, Position, Signal, Volatility},
|
||||
strategy::{Risk, Strategy},
|
||||
units::{Symbol, USD},
|
||||
};
|
||||
use pulse_macros::pwp;
|
||||
@@ -100,6 +101,12 @@ pub enum Feed {
|
||||
Failed,
|
||||
}
|
||||
|
||||
#[pwp]
|
||||
pub struct StrategyView {
|
||||
strategy: Strategy,
|
||||
risk: Risk,
|
||||
}
|
||||
|
||||
impl std::fmt::Display for AlertLevel {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user