Buyer나 Realtime의 경우 저가 고가 계산 안함

This commit is contained in:
kyh
2024-05-24 10:12:58 +09:00
parent 3b681659dd
commit c1e6aafac4

View File

@@ -644,26 +644,28 @@ namespace Million.Manager
{
continue;
}
// 고가
if (type == 1)
if(!(programMode == BuyerMode.Buyer || programMode == BuyerMode.BuyerRealtime))
{
if (parent.IndicatorDic[subKey].highValue != 0 &&
parent.IndicatorDic[key].highValue != 0)
// 고가
if (type == 1)
{
subIndiOverlapVal = parent.IndicatorDic[subKey].highValue;
overlapValue = parent.IndicatorDic[key].highValue;
if (parent.IndicatorDic[subKey].highValue != 0 &&
parent.IndicatorDic[key].highValue != 0)
{
subIndiOverlapVal = parent.IndicatorDic[subKey].highValue;
overlapValue = parent.IndicatorDic[key].highValue;
}
}
}
// 저가
if (type == 2)
{
if (parent.IndicatorDic[subKey].lowValue != 0 &&
parent.IndicatorDic[key].lowValue != 0)
// 저가
if (type == 2)
{
subIndiOverlapVal = parent.IndicatorDic[subKey].lowValue;
overlapValue = parent.IndicatorDic[key].lowValue;
if (parent.IndicatorDic[subKey].lowValue != 0 &&
parent.IndicatorDic[key].lowValue != 0)
{
subIndiOverlapVal = parent.IndicatorDic[subKey].lowValue;
overlapValue = parent.IndicatorDic[key].lowValue;
}
}
}