buyer에 거래량 top몇개 할 수 있도록 구현 완료
This commit is contained in:
1263
Million Buyer/MainForm.Designer.cs
generated
1263
Million Buyer/MainForm.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -56,6 +56,9 @@ namespace Million_Buyer
|
||||
private bool buyFlag = true;
|
||||
private bool allSell = false;
|
||||
|
||||
private bool TopVolFlag = false;
|
||||
private int TopVolCnt = 0;
|
||||
|
||||
private bool BuyBigthanHighValFlag = false;
|
||||
private MCandleTimeType BuyBigthanHighValType;
|
||||
private int BigMoneyVolCnt = 0;
|
||||
@@ -163,8 +166,11 @@ namespace Million_Buyer
|
||||
int.TryParse(tb_CycleCount.Text, out cycleCount);
|
||||
double.TryParse(tb_CycleMoneyValue.Text, out cycleBuyMoney);
|
||||
|
||||
|
||||
int.TryParse(tb_BigMoneyVolCnt.Text, out BigMoneyVolCnt);
|
||||
int.TryParse(tb_TopVolCnt.Text, out TopVolCnt);
|
||||
|
||||
TopVolFlag = cb_TopVol.Checked;
|
||||
|
||||
BigMoneyVolFlag = ck_BigMoneyVol.Checked;
|
||||
if(BigMoneyVolFlag)
|
||||
BigMoneyVolType = (MCandleTimeType)Enum.Parse(typeof(MCandleTimeType), cb_BigMoneyVolType.Text.ToString());
|
||||
@@ -212,6 +218,10 @@ namespace Million_Buyer
|
||||
rd_Realtime.Enabled = false;
|
||||
cb_StarValueLowOverlapUp.Enabled = false;
|
||||
|
||||
cb_TopVol.Enabled = false;
|
||||
tb_TopVolCnt.Enabled = false;
|
||||
|
||||
|
||||
ck_BigMoneyVol.Enabled = false;
|
||||
ck_BuyBigthanHighVal.Enabled = false;
|
||||
cb_BigMoneyVolType.Enabled = false;
|
||||
@@ -250,7 +260,9 @@ namespace Million_Buyer
|
||||
cb_BigMoneyVolType.Enabled = true;
|
||||
cb_BuyBigthanHighType.Enabled = true;
|
||||
tb_BigMoneyVolCnt.Enabled = true;
|
||||
|
||||
cb_TopVol.Enabled = true;
|
||||
tb_TopVolCnt.Enabled = true;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -384,6 +396,7 @@ namespace Million_Buyer
|
||||
sw.Start();
|
||||
#endregion
|
||||
|
||||
|
||||
while (ThreadFlag)
|
||||
{
|
||||
try
|
||||
@@ -395,7 +408,6 @@ namespace Million_Buyer
|
||||
InsertLog("Alive");
|
||||
}
|
||||
|
||||
|
||||
#region 기본 데이터 Setting
|
||||
if (firstFlag)
|
||||
{
|
||||
@@ -437,7 +449,7 @@ namespace Million_Buyer
|
||||
#endregion
|
||||
|
||||
firstFlag = false;
|
||||
|
||||
|
||||
sw.Stop();
|
||||
InsertLog("Deafult Data Setting 완료..\\r\n" + "Default 계산 시간 : " + sw.Elapsed.ToString());
|
||||
LogManager.WriteLog("Default 계산 시간 : " + sw.Elapsed.ToString());
|
||||
@@ -459,9 +471,21 @@ namespace Million_Buyer
|
||||
}
|
||||
#endregion
|
||||
|
||||
var nameList = realTimeMsg.coinFullNameList;
|
||||
var filterNameList = new List<string>();
|
||||
if (TopVolFlag)
|
||||
{
|
||||
var tickerList = UpbitApi.GetTickerList(realTimeMsg.coinFullNameList).OrderByDescending(t => t.AccumulateTradeVolume).ToList();
|
||||
if (tickerList.Count > TopVolCnt)
|
||||
{
|
||||
tickerList.RemoveRange(TopVolCnt, tickerList.Count - TopVolCnt);
|
||||
filterNameList = tickerList.Select(t => t.CoinFullName).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
if (buyList.Count == 0) allSell = false;
|
||||
|
||||
foreach (var item in realTimeMsg.coinFullNameList)
|
||||
foreach (var item in nameList)
|
||||
{
|
||||
#region Indicator 계산 -> Code full name 으로 for문 돌면서 계산 처리
|
||||
sw.Restart();
|
||||
@@ -591,6 +615,16 @@ namespace Million_Buyer
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (TopVolFlag)
|
||||
{
|
||||
if(!filterNameList.Any(t=> t== item))
|
||||
{
|
||||
overlapBuyManagementList[item] = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
InsertLog("Insert Buy Logic");
|
||||
if (programMode == BuyerMode.Buyer)
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
@@ -26,36 +26,36 @@
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user