public SystemResult( string system, StockHandle stock, IPriceSeries prices, IndicatorResult indicatorResult ) { System = system; Stock = stock; Prices = prices; Signal = indicatorResult.Signal; ExpectedGain = indicatorResult.ExpectedGain; GainRiskRatio = indicatorResult.GainRiskRatio; Signals = indicatorResult.Signals; }
public WeightedIndicatorResult( WeightedIndicator indicator, IndicatorResult result ) : base(indicator.Name, result.Stock) { Signal = result.Signal.Weight( indicator.Weight ); ExpectedGain = result.ExpectedGain * indicator.Weight; GainRiskRatio = result.GainRiskRatio * indicator.Weight; Report = result.Report; Signals = result.Signals.Derive( new ObjectDescriptor( "Weighted" ), s => s.Weight( indicator.Weight ) ); }
public WeightedIndicatorResult(WeightedIndicator indicator, IndicatorResult result) : base(indicator.Name, result.Stock) { Signal = result.Signal.Weight(indicator.Weight); ExpectedGain = result.ExpectedGain * indicator.Weight; GainRiskRatio = result.GainRiskRatio * indicator.Weight; Report = result.Report; Signals = result.Signals.Derive(new ObjectDescriptor("Weighted"), s => s.Weight(indicator.Weight)); }
public void AddResult( IndicatorResult result ) { myResults.Add( result ); }
public void AddResult(IndicatorResult result) { myResults.Add(result); }