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;
|
||||
|
||||
//
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user