• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Series.TimeSeries类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FreeQuant.Series.TimeSeries的典型用法代码示例。如果您正苦于以下问题:C# TimeSeries类的具体用法?C# TimeSeries怎么用?C# TimeSeries使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TimeSeries类属于FreeQuant.Series命名空间,在下文中一共展示了TimeSeries类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SMA

		public SMA(TimeSeries input, int length, BarData option, Color color) : base(input)
		{
			this.fLength = length;
			this.fOption = option;
			this.Init();
			this.Color = color;
		}
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:SMA.cs


示例2: KRI

    public KRI(TimeSeries input, int length)
			: base(input)  {
      this.fLength = 14;

      this.fLength = length;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:KRI.cs


示例3: Value

 public static double Value(TimeSeries input, int index, int length)
 {
   if (index < length - 1 + input.FirstIndex)
     return double.NaN;
   double min = input.GetMin(index - length + 1, index, BarData.Low);
   return Math.Log(input.GetMax(index - length + 1, index, BarData.High) / min);
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:Range.cs


示例4: EMA

		public EMA(TimeSeries input, int length, BarData option)	: base(input) 
    {
      this.fLength = 14;
      this.fLength = length;
      this.fOption = option;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:EMA.cs


示例5: Range

		public Range(TimeSeries input, int length, Color color)	: base(input) 
    {
      this.length = 14;
      this.length = length;
      this.Init();
			this.fColor = color;
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:Range.cs


示例6: Value

 public static double Value(TimeSeries input, int index)
 {
   if (index >= 1 + input.FirstIndex)
     return Math.Max(input[index, BarData.High], input[index - 1, BarData.Close]);
   else
     return double.NaN;
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:TH.cs


示例7: Value

 public static double Value(TimeSeries input, int index, int length)
 {
   if (index >= length - 1 + input.FirstIndex)
     return (input[index, BarData.Volume] - input[index - length + 1, BarData.Volume]) / input[index - length + 1, BarData.Volume] * 100.0;
   else
     return double.NaN;
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:VROC.cs


示例8: Value

 public static double Value(TimeSeries input, int index, int length)
 {
   if (index >= length + input.FirstIndex)
     return input.GetMin(index - length, index - 1, BarData.Low);
   else
     return double.NaN;
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:PCL.cs


示例9: PCL

		public PCL(TimeSeries input, int length, Color color)	: base(input) 
    {
      this.fLength = 14;
      this.fLength = length;
      this.Init();
      this.Color = color;
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:PCL.cs


示例10: PERF

		public PERF(TimeSeries input, double k, BarData option)	: base(input) 
    {
      this.fK = 14.0;
      this.fOption = option;
      this.fK = k;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:PERF.cs


示例11: Value

 public static double Value(TimeSeries input, int index)
 {
   if (index < 1 + input.FirstIndex)
     return double.NaN;
   double num1 = input[index, BarData.Close];
   double num2 = input[index - 1, BarData.Close];
   double num3 = input[index, BarData.Volume];
   double num4 = 0.0;
   if (index > 1 + input.FirstIndex)
   {
     if (num1 > num2)
       num4 = OBV.Value(input, index - 1) + num3;
     if (num1 < num2)
       num4 = OBV.Value(input, index - 1) - num3;
     if (num1 == num2)
       num4 = OBV.Value(input, index - 1);
   }
   else
   {
     if (num1 > num2)
       num4 = num3;
     if (num1 < num2)
       num4 = -num3;
     if (num1 == num2)
       num4 = 0.0;
   }
   return num4;
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:28,代码来源:OBV.cs


示例12: PDI

		public PDI(TimeSeries input, int length, EIndicatorStyle style)	: base(input) 
    {
      this.fLength = 14;
      this.fLength = length;
      this.fStyle = style;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:7,代码来源:PDI.cs


示例13: RSI

    public RSI(TimeSeries input, int length, BarData option, EIndicatorStyle style)
			: base(input){
      this.fLength = 14;
      this.fLength = length;
      this.fOption = option;
      this.fStyle = style;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:8,代码来源:RSI.cs


示例14: VCH

		public VCH(TimeSeries input, int length1, int length2):base(input)
    {
      this.fLength1 = 14;
      this.fLength2 = 10;
      this.fLength1 = length1;
      this.fLength2 = length2;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:8,代码来源:VCH.cs


示例15: D_Fast

		public D_Fast(TimeSeries input, int length, int order)	: base(input) 
    {
      this.fLength = 14;
      this.fOrder = 10;
      this.fLength = length;
      this.fOrder = order;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:8,代码来源:D_Fast.cs


示例16: ADXR

		public ADXR(TimeSeries input, int length, EIndicatorStyle style, Color color)	: base(input) 
    {
      this.fLength = 14;
      this.fLength = length;
      this.fStyle = style;
      this.Init();
      this.Color = color;
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:8,代码来源:ADXR.cs


示例17: Value

 public static double Value(TimeSeries input, int index, int length)
 {
   if (index < length - 1 + input.FirstIndex)
     return double.NaN;
   double num = input[index, BarData.Close];
   double min = input.GetMin(index - length + 1, index, BarData.Low);
   double max = input.GetMax(index - length + 1, index, BarData.High);
   return -100.0 * (max - num) / (max - min);
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:9,代码来源:R.cs


示例18: Value

 public static double Value(TimeSeries input, int index)
 {
   if (index < input.FirstIndex)
     return double.NaN;
   double num1 = input[index, BarData.High];
   double num2 = input[index, BarData.Low];
   double num3 = input[index, BarData.Volume];
   return num3 == 0.0 ? 0.0 : (num1 - num2) / num3 * 1000.0;
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:9,代码来源:MarketFI.cs


示例19: Value

 public static double Value(TimeSeries input, int index)
 {
   if (index < 1 + input.FirstIndex)
     return double.NaN;
   double num1 = input[index, BarData.Close];
   double num2 = input[index - 1, BarData.Close];
   double num3 = input[index, BarData.Volume];
   return index < 2 + input.FirstIndex ? (num1 - num2) / num2 * num3 : (num1 - num2) / num2 * num3 + PVT.Value(input, index - 1);
 }
开发者ID:heber,项目名称:FreeOQ,代码行数:9,代码来源:PVT.cs


示例20: BBU

    public BBU(TimeSeries input, int length, double k, BarData option)
			: base(input)   {
      this.fLength = 14;
      this.fK = 3.0;
      this.fLength = length;
      this.fOption = option;
      this.fK = k;
      this.Init();
    }
开发者ID:heber,项目名称:FreeOQ,代码行数:9,代码来源:BBU.cs



注:本文中的FreeQuant.Series.TimeSeries类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Native.CoreSession类代码示例发布时间:2022-05-26
下一篇:
C# Instruments.Instrument类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap