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
File diff suppressed because it is too large Load Diff
+14 -4
View File
@@ -158,14 +158,14 @@ public:
bool isInBearishTrend = false; bool isInBearishTrend = false;
// //
isInBullishTrend = bar.HasBullishTrend( isInBullishTrend = cBar.HasBullishTrend(
highSwingBars, highSwingBars,
lowSwingBars // lowSwingBars //
); );
if (!isInBullishTrend) if (!isInBullishTrend)
{ {
// //
isInBearishTrend = bar.HasBearishTrend( isInBearishTrend = cBar.HasBearishTrend(
highSwingBars, highSwingBars,
lowSwingBars // lowSwingBars //
); );
@@ -264,7 +264,12 @@ public:
// //
if (result) if (result)
{ {
//
type = POSITION_TYPE_BUY; type = POSITION_TYPE_BUY;
sl = support.low - threshold;
//
support.Clean();
} }
} }
else if (isInBearishTrend) else if (isInBearishTrend)
@@ -327,7 +332,12 @@ public:
// //
if (result) if (result)
{ {
//
type = POSITION_TYPE_SELL; type = POSITION_TYPE_SELL;
sl = resistance.high + threshold;
//
resistance.Clean();
} }
} }
} }
@@ -461,8 +471,8 @@ private:
// Finding Analyzing Bar ... // Finding Analyzing Bar ...
result = bar.Init( result = bar.Init(
mSymbol, mSymbol,
mAnalyzingPeriod, mPeriod, // mAnalyzingPeriod,
1 // 1 //
); );
if (!result) if (!result)
{ {