This commit is contained in:
kyh
2025-06-16 15:05:53 +09:00
parent 4742970f2d
commit abf8a4f7f2

View File

@@ -452,8 +452,8 @@ namespace BitgetAPI.IndicatorConditionSetup
continue;
else if (nowTime < buyTwoTime)
{
if (sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.LongBuy, true) &&
!sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.LongSell, true))
if (!(sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.LongBuy, true) &&
!sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.LongSell, true)))
{
buyItem["Flag"] = true;
}
@@ -646,8 +646,8 @@ namespace BitgetAPI.IndicatorConditionSetup
continue;
else if (nowTime < buyTwoTime)
{
if (sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.ShortBuy, true) &&
!sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.ShortSell, true))
if (!(sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.ShortBuy, true) &&
!sMABandConditionSetup.Calculate(candleDatas_30_TempList, SMABandType.ShortSell, true)))
{
buyItem["Flag"] = true;
}