コード例 #1
0
ファイル: SystemResult.cs プロジェクト: bg0jr/Maui
        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;
        }
コード例 #2
0
ファイル: WeightedIndicator.cs プロジェクト: bg0jr/Maui
            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 ) );
            }
コード例 #3
0
ファイル: WeightedIndicator.cs プロジェクト: riyanhax/Maui
            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));
            }
コード例 #4
0
ファイル: CombinedIndicator.cs プロジェクト: bg0jr/Maui
 public void AddResult( IndicatorResult result )
 {
     myResults.Add( result );
 }
コード例 #5
0
 public void AddResult(IndicatorResult result)
 {
     myResults.Add(result);
 }