last works on tools library for drawing all different states ...
This commit is contained in:
+1129
-1567
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user