Initial Commit ...
@@ -0,0 +1,79 @@
|
||||
Longs
|
||||
\\\\\\\\\\\\\\\\\\
|
||||
//////////////////
|
||||
|
||||
// 1/
|
||||
// isXTDSignalCrossedOverBear
|
||||
|
||||
2/3/4/6/7/9/
|
||||
isXTDSignalUnderBear
|
||||
|
||||
5/8/10/
|
||||
isXTDSignalOverBear
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1/2/4/5/6/7/8/9/10/
|
||||
isXOBDSignalUnderSwingHigh
|
||||
|
||||
// 3/
|
||||
// isXOBDSignalOverSwingHigh
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1/3/4/8/9/
|
||||
isXCHLHSignalBOverSignalT
|
||||
|
||||
1/2/3/4/5/6/7/8/9/
|
||||
isXCHLHSignalBOverLCLL
|
||||
|
||||
1/4/5/7/8/10/
|
||||
isXCHLHMCLCHHSame
|
||||
|
||||
2/5/6/7/10/
|
||||
isXCHLHSignalBUnderSignalT
|
||||
|
||||
// 2/7/
|
||||
// isXCHLHSCMCLLSame
|
||||
|
||||
// 2/
|
||||
// isXCHLHSCLCLLSame
|
||||
|
||||
2/3/10/
|
||||
isXCHLHMCLCLLSame
|
||||
|
||||
// 10/
|
||||
// isXCHLHSignalBUnderLCLL
|
||||
|
||||
|
||||
|
||||
|
||||
1/5/6/10/
|
||||
isXCHMASCFastUnderSlow
|
||||
|
||||
1/3/4/7/8/9/
|
||||
isXCHMAMCFastOverSlow
|
||||
|
||||
// 1/2/
|
||||
// isXCHMALCFastUnderSlow
|
||||
|
||||
2/3/4/7/8/9/
|
||||
isXCHMASCFastOverSlow
|
||||
|
||||
2/5/6/10/
|
||||
isXCHMAMCFastUnderSlow
|
||||
|
||||
3/4/5/6/7/8/9/10/
|
||||
isXCHMALCFastOverSlow
|
||||
|
||||
Shorts
|
||||
\\\\\\\\\\\\\\\\\\
|
||||
//////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,293 @@
|
||||
//
|
||||
// START Indicator/Oscillator(s) Cases ...
|
||||
//
|
||||
|
||||
//
|
||||
// XTD ...
|
||||
bool xTDCase1 = conditions.isXTDSignalCrossedOverBear;
|
||||
bool xTDCase2 = conditions.isXTDSignalUnderBear;
|
||||
bool xTDCase3 = conditions.isXTDSignalOverBear;
|
||||
|
||||
//
|
||||
// XOBD ...
|
||||
bool xOBDCase1 = conditions.isXOBDSignalUnderSwingHigh;
|
||||
bool xOBDCase2 = conditions.isXOBDSignalOverSwingHigh;
|
||||
|
||||
//
|
||||
// XCHLH ...
|
||||
bool xCHLHCase1 =
|
||||
conditions.isXCHLHSignalBOverSignalT &&
|
||||
conditions.isXCHLHSignalBOverLCLL;
|
||||
|
||||
bool xCHLHCase2 = conditions.isXCHLHMCLCHHSame;
|
||||
bool xCHLHCase3 = conditions.isXCHLHSignalBUnderSignalT;
|
||||
bool xCHLHCase4 = conditions.isXCHLHSignalBOverLCLL;
|
||||
bool xCHLHCase5 =
|
||||
conditions.isXCHLHSCMCLLSame &&
|
||||
conditions.isXCHLHSCLCLLSame;
|
||||
bool xCHLHCase6 = conditions.isXCHLHMCLCLLSame;
|
||||
|
||||
//
|
||||
// XCHMA ...
|
||||
bool xCHMACase1 =
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMALCFastUnderSlow;
|
||||
|
||||
bool xCHMACase2 =
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHMALCFastUnderSlow;
|
||||
|
||||
bool xCHMACase3 =
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow;
|
||||
|
||||
bool xCHMACase4 =
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHMALCFastOverSlow;
|
||||
|
||||
//
|
||||
// START Indicator/Oscillator(s) Cases ...
|
||||
//
|
||||
|
||||
//
|
||||
// In this Method we give XTM Signals as a Base and then try to
|
||||
// get Verifications from other stuffs ...
|
||||
// bool isMethod1HasSignal =
|
||||
// //
|
||||
// isXTMHasSignal &&
|
||||
// //
|
||||
// conditions.isXTMVale &&
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// xTDCase1 &&
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// xOBDCase1 &&
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// xCHLHCase1 &&
|
||||
// xCHLHCase2 &&
|
||||
// xCHMACase1
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ) ||
|
||||
// (
|
||||
// //
|
||||
// xTDCase2 &&
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// xOBDCase1 &&
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// (
|
||||
// //
|
||||
// xCHLHCase3 &&
|
||||
// xCHLHCase4 &&
|
||||
// xCHLHCase5 &&
|
||||
// xCHLHCase6 &&
|
||||
// //
|
||||
// xCHMACase2
|
||||
// //
|
||||
// ) ||
|
||||
// (
|
||||
// //
|
||||
// xCHLHCase1 &&
|
||||
// xCHLHCase6 &&
|
||||
// //
|
||||
// xCHMACase3
|
||||
// //
|
||||
// ) ||
|
||||
// (
|
||||
// //
|
||||
// xCHLHCase3 &&
|
||||
// xCHLHCase4 &&
|
||||
// xCHLHCase2 &&
|
||||
// //
|
||||
// xCHMACase4
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ;
|
||||
|
||||
//
|
||||
bool isMethod1HasSignal = false;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// XCHMA ...
|
||||
bool xCHMACase1 =
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMALCFastUnderSlow;
|
||||
|
||||
bool xCHMACase2 =
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHMALCFastUnderSlow;
|
||||
|
||||
bool xCHMACase3 =
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow;
|
||||
|
||||
bool xCHMACase4 =
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHMALCFastOverSlow;
|
||||
|
||||
//
|
||||
// XCHLH ...
|
||||
bool xCHLHCase = false;
|
||||
|
||||
bool xCHLHCase1 =
|
||||
conditions.isXCHLHSignalBOverSignalT &&
|
||||
conditions.isXCHLHSignalBOverLCLL;
|
||||
|
||||
bool xCHLHCase2 =
|
||||
conditions.isXCHLHSignalBUnderSignalT &&
|
||||
conditions.isXCHLHSignalBOverLCLL;
|
||||
|
||||
bool xCHLHCase3 =
|
||||
conditions.isXCHLHSignalBUnderSignalT &&
|
||||
conditions.isXCHLHSignalBUnderLCLL;
|
||||
|
||||
bool xCHLHCase4 = conditions.isXCHLHMCLCHHSame;
|
||||
|
||||
bool xCHLHCase5 = conditions.isXCHLHMCLCLLSame;
|
||||
|
||||
bool xCHLHCase6 = conditions.isXCHLHSCMCLLSame;
|
||||
|
||||
bool xCHLHCase7 = conditions.isXCHLHSCLCLLSame;
|
||||
|
||||
//
|
||||
bool xCHLHMAState1 =
|
||||
(
|
||||
//
|
||||
xCHLHCase1 &&
|
||||
conditions.isXOBDSignalUnderSwingHigh
|
||||
//
|
||||
(
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHCase4 &&
|
||||
//
|
||||
(
|
||||
xCHMACase1 ||
|
||||
xCHMACase3
|
||||
)
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHCase5 &&
|
||||
//
|
||||
xCHMACase3
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
xCHMACase3
|
||||
//
|
||||
)
|
||||
//
|
||||
);
|
||||
|
||||
//
|
||||
bool xCHLHMAState2 =
|
||||
(
|
||||
//
|
||||
xCHLHCase2 &&
|
||||
//
|
||||
(
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHCase5 &&
|
||||
xCHLHCase6 &&
|
||||
xCHLHCase7 &&
|
||||
//
|
||||
xCHMACase2
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHCase4 &&
|
||||
//
|
||||
xCHMACase4
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
xCHMACase4
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHCase4 &&
|
||||
xCHLHCase6 &&
|
||||
//
|
||||
xCHMACase3
|
||||
//
|
||||
)
|
||||
//
|
||||
)
|
||||
);
|
||||
|
||||
//
|
||||
// XCHLH => XCHMA ...
|
||||
bool xCHLHCombineXCHMA =
|
||||
//
|
||||
xCHLHMAState1
|
||||
//
|
||||
||
|
||||
//
|
||||
xCHLHMAState2
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
// XOBD => XCHLH => XCHMA ...
|
||||
bool xOBDCombineXCHLHCombineXCHMA =
|
||||
//
|
||||
;
|
||||
@@ -0,0 +1,111 @@
|
||||
bool method1Cond1 =
|
||||
//
|
||||
conditions.isXCHLHMCLCHHSame &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHLHSignalBOverSignalT &&
|
||||
conditions.isXOBDSignalUnderSwingHigh;
|
||||
|
||||
bool method1Cond2 =
|
||||
//
|
||||
conditions.isXCHLHMCLCLLSame &&
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBUnderSignalT;
|
||||
|
||||
bool method1Cond3 =
|
||||
//
|
||||
conditions.isXCHLHMCLCLLSame &&
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXCHLHSignalBOverSignalT;
|
||||
|
||||
bool method1Cond4 =
|
||||
//
|
||||
conditions.isXCHLHMCLCHHSame &&
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXCHLHSignalBOverSignalT &&
|
||||
conditions.isXOBDSignalUnderSwingHigh;
|
||||
|
||||
bool method1Cond5 =
|
||||
//
|
||||
conditions.isXCHLHMCLCHHSame &&
|
||||
conditions.isXTDSignalOverBear &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBUnderSignalT;
|
||||
|
||||
bool method1Cond6 =
|
||||
//
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXCHMASCFastUnderSlow &&
|
||||
conditions.isXCHMAMCFastUnderSlow &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBUnderSignalT;
|
||||
|
||||
bool method1Cond7 =
|
||||
//
|
||||
conditions.isXCHLHMCLCHHSame &&
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBUnderSignalT;
|
||||
|
||||
bool method1Cond8 =
|
||||
//
|
||||
conditions.isXCHLHMCLCHHSame &&
|
||||
conditions.isXTDSignalOverBear &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBOverSignalT;
|
||||
|
||||
|
||||
bool method1Cond9 =
|
||||
//
|
||||
conditions.isXTDSignalUnderBear &&
|
||||
conditions.isXCHMAMCFastOverSlow &&
|
||||
conditions.isXCHMASCFastOverSlow &&
|
||||
conditions.isXCHMALCFastOverSlow &&
|
||||
conditions.isXCHLHSignalBOverLCLL &&
|
||||
conditions.isXOBDSignalUnderSwingHigh &&
|
||||
conditions.isXCHLHSignalBOverSignalT;
|
||||
|
||||
bool isMethod1HasSignal =
|
||||
//
|
||||
// Merge Positions Conditions here ...
|
||||
conditions.isXTMVale && (
|
||||
//
|
||||
method1Cond1 ||
|
||||
method1Cond2 ||
|
||||
method1Cond3 ||
|
||||
method1Cond4 ||
|
||||
method1Cond5 ||
|
||||
method1Cond6 ||
|
||||
method1Cond7 ||
|
||||
method1Cond8 ||
|
||||
method1Cond9
|
||||
//
|
||||
);
|
||||
|
||||
@@ -0,0 +1,346 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// XCHMA Commonly Used Calculations ...
|
||||
|
||||
//
|
||||
// XCHMA Check LC State ...
|
||||
bool isLCFastOverSlow = XCHMAIsLCFastOverSlow(1);
|
||||
bool isLCFastUnderSlow = XCHMAIsLCFastUnderSlow(1);
|
||||
|
||||
//
|
||||
// XCHMA Check MC State ...
|
||||
bool isLMFastOverSlow = XCHMAIsMCFastOverSlow(1);
|
||||
bool isMCFastUnderSlow = XCHMAIsMCFastUnderSlow(1);
|
||||
|
||||
//
|
||||
double isSCFastCrossedOverSlow = XCHMAIsSCFastCrossedOverSlow(1);
|
||||
|
||||
//
|
||||
// XCHMA Min/Max MC/LC ...
|
||||
//
|
||||
// Candle 1 ...
|
||||
//
|
||||
// MIN ...
|
||||
double minLCMC1 = XCHMAGetMinMCLCValue(1);
|
||||
|
||||
//
|
||||
// MAX ...
|
||||
double maxLCMC1 = XCHMAGetMaxMCLCValue(1);
|
||||
|
||||
//
|
||||
// Candle 2 ...
|
||||
//
|
||||
// MIN ...
|
||||
double minLCMC2 = XCHMAGetMinMCLCValue(2);
|
||||
|
||||
//
|
||||
// MAX ...
|
||||
double maxLCMC2 = XCHMAGetMaxMCLCValue(2);
|
||||
|
||||
//
|
||||
// Max SC Fast Value ...
|
||||
double maxSCFast = XCHMAGetSCFastMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
double maxSCSlow = XCHMAGetSCSlowMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
|
||||
//
|
||||
// Max MC Fast Value ...
|
||||
double maxMCFast = XCHMAGetMCFastMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
double maxMCSlow = XCHMAGetMCSlowMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
|
||||
//
|
||||
// Max SC Fast Value ...
|
||||
double maxLCFast = XCHMAGetLCFastMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
double maxLCSlow = XCHMAGetLCSlowMaxInLoopback(xMAPNumberOfItemsPerTick);
|
||||
|
||||
//
|
||||
// XCHLH Verifications ...
|
||||
//
|
||||
bool isLCMCHHSame = XCHLHIsSameLCMCHH(1);
|
||||
bool isLCMCHHSameInPast = XCHLHIsLCMCHHSameInLoopback(xCHLHScLength);
|
||||
|
||||
//
|
||||
bool isLCMCLLSame = XCHLHIsSameLCMCLL(1);
|
||||
bool isLCMCLLSameInPast = XCHLHIsLCMCLLSameInLoopback(xCHLHScLength);
|
||||
|
||||
//
|
||||
bool isMCSCHHSame = XCHLHIsSameMCSCHH(1);
|
||||
bool isMCSCHHSameInPast = XCHLHIsMCSCHHSameInLoopback(xCHLHScLength);
|
||||
|
||||
//
|
||||
bool isMCSCLLSame = XCHLHIsSameMCSCLL(1);
|
||||
bool isMCSCLLSameInPast = XCHLHIsMCSCLLSameInLoopback(xCHLHScLength);
|
||||
|
||||
//
|
||||
double xCHLHLCDiff1 = XCHLHGetLCDiff(1);
|
||||
double xCHLHMCDiff1 = XCHLHGetMCDiff(1);
|
||||
|
||||
//
|
||||
// XCHMA Max LC MC Verify in Up Tredns ...
|
||||
bool isLCMCMaxVerified =
|
||||
isLCFastOverSlow &&
|
||||
isLMFastOverSlow
|
||||
? xCHMAMcFastBuffer[1] < maxMCFast &&
|
||||
xCHMALcFastBuffer[1] < maxLCFast
|
||||
: true;
|
||||
|
||||
//
|
||||
// XCHMA MC/LC Verification ...
|
||||
bool isMCLCVerified =
|
||||
//
|
||||
// Check MC or LC is Trens Up for Paste 3 Candle ...
|
||||
(
|
||||
//
|
||||
(xCHMAMcFastBuffer[1] > xCHMAMcSlowBuffer[1]) ||
|
||||
(xCHMALcFastBuffer[1] > xCHMALcSlowBuffer[1])
|
||||
//
|
||||
) &&
|
||||
(
|
||||
//
|
||||
(xCHMAMcFastBuffer[2] > xCHMAMcSlowBuffer[3]) ||
|
||||
(xCHMALcFastBuffer[2] > xCHMALcSlowBuffer[3])
|
||||
//
|
||||
) &&
|
||||
(
|
||||
//
|
||||
(xCHMAMcFastBuffer[3] > xCHMAMcSlowBuffer[3]) ||
|
||||
(xCHMALcFastBuffer[3] > xCHMALcSlowBuffer[3])
|
||||
//
|
||||
) &&
|
||||
//
|
||||
// Check SC Fast Over LC Slow and LC Fast ...
|
||||
xCHMAScFastBuffer[1] > xCHMALcFastBuffer[1] &&
|
||||
xCHMAScFastBuffer[1] > xCHMALcSlowBuffer[1]
|
||||
//
|
||||
&& isLCMCMaxVerified;
|
||||
;
|
||||
|
||||
//
|
||||
double signalSlope = GetSlope(2, 1, xTDSignalBuffer);
|
||||
double bearishSlope = GetSlope(2, 1, xTDBearishBuffer);
|
||||
double bullishSlope = GetSlope(2, 1, xTDBullishBuffer);
|
||||
|
||||
//
|
||||
double bullishSlopeOnCross = 0;
|
||||
int bullishCrossOverBearishCount = XTDCountBullOverBearCrossesInLoopback(xMAPNumberOfItemsPerTick);
|
||||
if (bullishCrossOverBearishCount > 0)
|
||||
{
|
||||
//
|
||||
int bullOverBearCrossIndex = XTDFindBullOverBearCrossIndexInLoopback(xMAPNumberOfItemsPerTick);
|
||||
if (bullOverBearCrossIndex > -1)
|
||||
{
|
||||
bullishSlopeOnCross = GetSlope(bullOverBearCrossIndex + 1, bullOverBearCrossIndex, xTDBullishBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Check MA States and LH States ...
|
||||
bool isLCUp = XCHMAIsLCFastOverSlow(1);
|
||||
bool isMCUp = XCHMAIsMCFastOverSlow(1);
|
||||
bool isSCUp = XCHMAIsSCFastOverSlow(1);
|
||||
bool isSameMCLCHH = XCHLHIsSameLCMCHH(1);
|
||||
bool isSameSCMCHH = XCHLHIsSameMCSCHH(1);
|
||||
bool isSCHHIncreaded = XCHLHIsLCHHInreasedInLoopback(xMAPNumberOfItemsPerTick);
|
||||
bool isSCLLIncreaded = XCHLHIsLCLLInreasedInLoopback(xMAPNumberOfItemsPerTick);
|
||||
double lcDiff = xCHLHLcHHBuffer[1] - xCHLHLcLLBuffer[1];
|
||||
double mcDiff = xCHLHMcHHBuffer[1] - xCHLHMcLLBuffer[1];
|
||||
double scDiff = xCHLHScHHBuffer[1] - xCHLHScLLBuffer[1];
|
||||
//
|
||||
// Gholleh ...
|
||||
bool isInPeak =
|
||||
//
|
||||
isLCUp
|
||||
//
|
||||
&&
|
||||
//
|
||||
isMCUp
|
||||
//
|
||||
&&
|
||||
//
|
||||
isSCUp
|
||||
//
|
||||
&&
|
||||
//
|
||||
isSCHHIncreaded
|
||||
//
|
||||
&&
|
||||
//
|
||||
isSCLLIncreaded
|
||||
//
|
||||
&&
|
||||
//
|
||||
lcDiff > mcDiff * 2 && mcDiff > scDiff * 1.3
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
// Darreh ...
|
||||
bool isInVale =
|
||||
//
|
||||
// Check XTD Vales ...
|
||||
|
||||
// lcDiff > mcDiff * 2 && mcDiff > scDiff * 1.3
|
||||
//
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Method 1
|
||||
// this Method works Based On SC Cycle and Get Verifications from Others ...
|
||||
bool isMethod1HasSignal =
|
||||
//
|
||||
// Check LC Fast Cross Over SC Slow ...
|
||||
xCHMAScFastBuffer[1] > xCHMAScSlowBuffer[1] &&
|
||||
!(xCHMAScFastBuffer[2] > xCHMAScSlowBuffer[2]) &&
|
||||
//
|
||||
isMCLCVerified &&
|
||||
//
|
||||
!isLCMCHHSame &&
|
||||
!isLCMCHHSameInPast &&
|
||||
!isMCSCHHSame &&
|
||||
!isMCSCHHSameInPast;
|
||||
|
||||
//
|
||||
// Method 1
|
||||
// this Method works Based On SC Cycle and Get Verifications from Others ...
|
||||
bool isMethod2HasSignal =
|
||||
//
|
||||
// Check LC Fast Over SC Slow ...
|
||||
xCHMAScFastBuffer[1] > xCHMAScSlowBuffer[1] &&
|
||||
xCHMAScFastBuffer[2] > xCHMAScSlowBuffer[2] &&
|
||||
//
|
||||
// Check Crosses Between SC Slow and minMCLC Value ...
|
||||
xCHMAScSlowBuffer[1] > minLCMC1 &&
|
||||
xCHMAScSlowBuffer[2] <= minLCMC2 &&
|
||||
//
|
||||
isMCLCVerified &&
|
||||
//
|
||||
!isLCMCHHSame &&
|
||||
!isLCMCHHSameInPast &&
|
||||
!isMCSCHHSame &&
|
||||
!isMCSCHHSameInPast
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
// Method 3 ...
|
||||
bool isMethod3HasSignal =
|
||||
//
|
||||
isSCFastCrossedOverSlow &&
|
||||
//
|
||||
xCHMAScFastBuffer[1] < maxLCMC1 &&
|
||||
//
|
||||
xCHMAScSlowBuffer[1] > minLCMC1 &&
|
||||
//
|
||||
xCHMAMcFastBuffer[1] <= xCHMALcFastBuffer[1] &&
|
||||
//
|
||||
isLCFastOverSlow &&
|
||||
//
|
||||
isLMFastOverSlow
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
// Method 4 ...
|
||||
// Using XCHLH in related to Crosses ...
|
||||
bool isMethod4HasSignal =
|
||||
//
|
||||
isSCFastCrossedOverSlow &&
|
||||
//
|
||||
XCHMAIsSCFastUnderSlow(2) &&
|
||||
XCHMAIsSCFastUnderSlow(3) &&
|
||||
XCHMAIsSCFastUnderSlow(4) &&
|
||||
//
|
||||
!(
|
||||
//
|
||||
isMCFastUnderSlow &&
|
||||
isLCFastUnderSlow
|
||||
//
|
||||
) &&
|
||||
//
|
||||
xCHMAScFastBuffer[1] < minLCMC1 &&
|
||||
//
|
||||
isLCMCLLSame &&
|
||||
//
|
||||
isMCSCLLSameInPast &&
|
||||
//
|
||||
xCHLHLCDiff1 > xCHLHMCDiff1 * 2 &&
|
||||
//
|
||||
(
|
||||
//
|
||||
xCHLHScHHBuffer[1] < xCHLHMcHHBuffer[1] &&
|
||||
xCHLHScLLBuffer[1] > xCHLHMcLLBuffer[1]
|
||||
//
|
||||
) &&
|
||||
//
|
||||
!XCHLHIsMCHHDecreasedInLoopback(xMAPNumberOfItemsPerTick);
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
// Method 5 ...
|
||||
bool isMethod5HasSignal =
|
||||
XCHMAIsMCFastCrossedOverSlow(1);
|
||||
|
||||
//
|
||||
// Method 6 ...
|
||||
bool isMethod6HasSignal =
|
||||
//
|
||||
// Signal Crossed Over Bearish ...
|
||||
XTDIsSignalCrossedOverBear(1)
|
||||
//
|
||||
&&
|
||||
//
|
||||
// Count Signal Crosses Not Big Than 1 ...
|
||||
XTDCountSignalOverBearCrossesInLoopback(xMAPNumberOfItemsPerTick) == 1
|
||||
//
|
||||
&&
|
||||
//
|
||||
// Check Slope of Signal Must be Greater tha Slope Of Bullish ...
|
||||
signalSlope > bullishSlope
|
||||
//
|
||||
&&
|
||||
//
|
||||
// Count Bull Cross Over Bear items Bigger than 0 ...
|
||||
bullishCrossOverBearishCount > 0
|
||||
//
|
||||
&&
|
||||
//
|
||||
// Check Signal Slope in Compare with Bull Cross Over Bear Slop ...
|
||||
signalSlope > bullishSlopeOnCross
|
||||
//
|
||||
&&
|
||||
//
|
||||
// MC HH Not Decreased ...
|
||||
!XCHLHIsMCHHDecreasedInLoopback(xMAPNumberOfItemsPerTick)
|
||||
//
|
||||
&&
|
||||
//
|
||||
!isInPeak
|
||||
//
|
||||
&&
|
||||
//
|
||||
isLCUp
|
||||
//
|
||||
&&
|
||||
//
|
||||
isMCUp
|
||||
//
|
||||
;
|
||||
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 136 KiB |