last works on tools library for drawing all different states ...

This commit is contained in:
2024-07-16 04:17:13 +03:30
parent 6d7f366f73
commit 3294ea9f21
2 changed files with 1143 additions and 1571 deletions
+14 -4
View File
@@ -158,14 +158,14 @@ public:
bool isInBearishTrend = false;
//
isInBullishTrend = bar.HasBullishTrend(
isInBullishTrend = cBar.HasBullishTrend(
highSwingBars,
lowSwingBars //
);
if (!isInBullishTrend)
{
//
isInBearishTrend = bar.HasBearishTrend(
isInBearishTrend = cBar.HasBearishTrend(
highSwingBars,
lowSwingBars //
);
@@ -264,7 +264,12 @@ public:
//
if (result)
{
//
type = POSITION_TYPE_BUY;
sl = support.low - threshold;
//
support.Clean();
}
}
else if (isInBearishTrend)
@@ -327,7 +332,12 @@ public:
//
if (result)
{
//
type = POSITION_TYPE_SELL;
sl = resistance.high + threshold;
//
resistance.Clean();
}
}
}
@@ -461,8 +471,8 @@ private:
// Finding Analyzing Bar ...
result = bar.Init(
mSymbol,
mAnalyzingPeriod,
1 //
mPeriod, // mAnalyzingPeriod,
1 //
);
if (!result)
{