클래스 수정 및 테스트데이터저장
This commit is contained in:
Binary file not shown.
40
Million/Data/TestData.cs
Normal file
40
Million/Data/TestData.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Million.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// 임시 데이터
|
||||
/// </summary>
|
||||
class TestData
|
||||
{
|
||||
List<CandleData> candleDatas = new List<CandleData>();
|
||||
|
||||
public TestData()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class CandleData
|
||||
{
|
||||
public int high;
|
||||
public int start;
|
||||
public int end;
|
||||
public int low;
|
||||
|
||||
public CandleData(int h, int s, int e, int l)
|
||||
{
|
||||
high = h;
|
||||
start = s;
|
||||
end = e;
|
||||
low = l;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Million.Indicators
|
||||
{
|
||||
/// <summary>
|
||||
/// https://www.nanumtrading.com/fx-%EB%B0%B0%EC%9A%B0%EA%B8%B0/%EC%B0%A8%ED%8A%B8-%EB%B3%B4%EC%A1%B0%EC%A7%80%ED%91%9C-%EC%9D%B4%ED%95%B4/05-%EB%B3%BC%EB%A6%B0%EC%A0%80%EB%B0%B4%EB%93%9C/
|
||||
/// </summary>
|
||||
class Bollinger_Bands
|
||||
{
|
||||
}
|
||||
|
||||
@@ -6,7 +6,52 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Million.Indicators
|
||||
{
|
||||
/// <summary>
|
||||
/// https://www.nanumtrading.com/fx-%eb%b0%b0%ec%9a%b0%ea%b8%b0/%ec%b0%a8%ed%8a%b8-%eb%b3%b4%ec%a1%b0%ec%a7%80%ed%91%9c-%ec%9d%b4%ed%95%b4/06-%ec%9d%bc%eb%aa%a9%ea%b7%a0%ed%98%95%ed%91%9c/
|
||||
/// </summary>
|
||||
class Ichimok_cloud
|
||||
{
|
||||
int tenkan; //9 기준선 기간
|
||||
int kijun; //26
|
||||
int senkou; //52
|
||||
int Displacement; //26뒤로 미루는 기간
|
||||
|
||||
/// <summary>
|
||||
/// 전환선
|
||||
/// (9일 최고가 + 최저가) /2
|
||||
/// </summary>
|
||||
public void tenkan_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 기준선
|
||||
/// (26일 최고가 + 최저가) /2
|
||||
/// </summary>
|
||||
public void kijun_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 선행스팬1
|
||||
/// (기준선 + 전환선)/2 값 26일
|
||||
/// </summary>
|
||||
public void displacement_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 선행스팬2
|
||||
/// (52일최고가+최저가 )/2
|
||||
/// </summary>
|
||||
public void senkou_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,32 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Million.Indicators
|
||||
{
|
||||
/// <summary>
|
||||
/// https://ko.wikipedia.org/wiki/%EC%9D%B4%EB%8F%99%ED%8F%89%EA%B7%A0#%EC%A7%80%EC%88%98%EC%9D%B4%EB%8F%99%ED%8F%89%EA%B7%A0
|
||||
///
|
||||
/// </summary>
|
||||
class Moving_average
|
||||
{
|
||||
/// <summary>
|
||||
/// 기간
|
||||
/// </summary>
|
||||
int period;
|
||||
|
||||
/// <summary>
|
||||
/// 단순 이동평균
|
||||
/// </summary>
|
||||
public void SMA_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 지수선
|
||||
/// </summary>
|
||||
public void EMA_average()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CommonProperty.cs" />
|
||||
<Compile Include="Data\TestData.cs" />
|
||||
<Compile Include="Indicators\Bollinger Bands.cs" />
|
||||
<Compile Include="Indicators\Ichimok cloud.cs" />
|
||||
<Compile Include="Indicators\Moving average.cs" />
|
||||
|
||||
Reference in New Issue
Block a user