This commit is contained in:
kyh
2025-06-09 11:27:53 +09:00
parent c2870042f7
commit 53ee8f1595
3 changed files with 57 additions and 56 deletions

View File

@@ -27,7 +27,7 @@ namespace BitgetApi.IndicatorConditionSetup
public class SMABandConditionSetup
{
private readonly int rangeLookback = 12;
private readonly double rangeThresholdPercent = 0.7;
private readonly double rangeThresholdPercent = 2;
/// <summary>
/// false 는 구매 전, true는 판매 후
/// </summary>
@@ -77,8 +77,8 @@ namespace BitgetApi.IndicatorConditionSetup
var cloudTopNow = Math.Max(ichmok.SenkouSpanA, ichmok.SenkouSpanB);
var cloudBottomNow = Math.Min(ichmok.SenkouSpanA, ichmok.SenkouSpanB);
bool isSma4BelowCloud = sma4 < cloudBottomNow;
bool isSma4AboveCloud = sma4 > cloudTopNow;
bool isSma4BelowCloud = low[i] < cloudBottomNow;
bool isSma4AboveCloud = high[i] > cloudTopNow;
bool cloudFlag = false;
if (!firstCloudFlag)