cleanup and apply typo fix ...

This commit is contained in:
2024-06-12 11:19:56 +03:30
parent a34d471d6e
commit af3f646051
2 changed files with 8 additions and 246 deletions
+8 -8
View File
@@ -74,7 +74,7 @@ ENUM_SERIESMODE ToSeriesMode(ENUM_X_SWING_TYPE value)
int FindSwing(
string mSymbol, // Trading Symbol ...
ENUM_TIMEFRAMES mPeriod, // Trading Period ...
ENUM_X_SWING_TYPE mode, // Swing Based On Price mode ...
ENUM_X_SWING_TYPE mMode, // Swing Based On Price mode ...
int mLength, // Loopback ...
int bar_index // BarIndex ...
)
@@ -83,7 +83,7 @@ int FindSwing(
int result = -1;
//
if (StringLen(mSymbol) == 0 || (mode != X_SWING_HIGH && mode != X_SWING_LOW))
if (StringLen(mSymbol) == 0 || (mMode != X_SWING_HIGH && mMode != X_SWING_LOW))
{
return result;
}
@@ -93,7 +93,7 @@ int FindSwing(
int founded = FindNextSwing(
mSymbol,
mPeriod,
mode,
mMode,
(mLength * 2) + 1,
current - mLength);
@@ -104,7 +104,7 @@ int FindSwing(
current = FindNextSwing(
mSymbol,
mPeriod,
mode,
mMode,
mLength,
current + 1);
@@ -112,7 +112,7 @@ int FindSwing(
founded = FindNextSwing(
mSymbol,
mPeriod,
mode,
mMode,
(mLength * 2) + 1,
current - mLength);
}
@@ -129,7 +129,7 @@ int FindSwing(
int FindNextSwing(
string mSymbol, // Trading Symbol ...
ENUM_TIMEFRAMES mPeriod, // Trading Period ...
ENUM_X_SWING_TYPE mode, // Swing Based On Price mode ...
ENUM_X_SWING_TYPE mMode, // Swing Based On Price mode ...
int mLength, // Loopback ...
int bar_index // BarIndex ...
)
@@ -145,10 +145,10 @@ int FindNextSwing(
}
//
ENUM_SERIESMODE mSeriesMode = ToSeriesMode(mode);
ENUM_SERIESMODE mSeriesMode = ToSeriesMode(mMode);
//
result = mode == X_SWING_HIGH
result = mMode == X_SWING_HIGH
? iHighest(
mSymbol,
mPeriod,