수정t
This commit is contained in:
@@ -478,7 +478,7 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
전봉72 < 전봉2 && 전전봉72 < 전전봉2 && 전전봉12 > 전전봉2 && 전봉12 < 전봉2
|
||||
)
|
||||
{
|
||||
BuyShortStep[market + interval] = true;
|
||||
BuyLongStep[market + interval] = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,23 +102,9 @@ namespace BitgetAPI.IndicatorConditionSetup
|
||||
|
||||
t_Close += Math.Pow(data[j].Close - average, 2);
|
||||
|
||||
//하향선
|
||||
if (mvData.BolangerType == 0)
|
||||
{
|
||||
mvData.BolangerValue_Down = average - mvData.BolangerSquared * Math.Sqrt(t_Close / period);
|
||||
}
|
||||
//상향선
|
||||
else if (mvData.BolangerType == 1)
|
||||
{
|
||||
|
||||
mvData.BolangerValue_Up = average + mvData.BolangerSquared * Math.Sqrt(t_Close / period);
|
||||
}
|
||||
//기준선
|
||||
else if (mvData.BolangerType == 2)
|
||||
{
|
||||
|
||||
mvData.BolangerValue = average;
|
||||
}
|
||||
mvData.BolangerValue_Down = average - mvData.BolangerSquared * Math.Sqrt(t_Close / period);
|
||||
mvData.BolangerValue_Up = average + mvData.BolangerSquared * Math.Sqrt(t_Close / period);
|
||||
mvData.Average = average;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,10 @@ namespace BitgetAPI.Data.IndicatorData
|
||||
public double Value { get; set; }
|
||||
// Bol Value
|
||||
public double BolangerValue_Down { get; set; }
|
||||
public double BolangerValue { get; set; }
|
||||
public double Average { get; set; }
|
||||
public double BolangerValue_Up { get; set; }
|
||||
// Bol Type 0 하향 1 상향 2기준
|
||||
public int BolangerType { get; set; } = 0;
|
||||
|
||||
// Bol 편차
|
||||
public int BolangerSquared { get; set; } = 20;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user