193 lines
3.4 KiB
Plaintext
193 lines
3.4 KiB
Plaintext
//
|
|
bool isSMLLSames =
|
|
//
|
|
(
|
|
//
|
|
conditions.xmanInfo.sLLs[0] == conditions.xmanInfo.sLLs[1] &&
|
|
conditions.xmanInfo.sLLs[1] == conditions.xmanInfo.sLLs[2] &&
|
|
//
|
|
conditions.xmanInfo.mLLs[0] == conditions.xmanInfo.mLLs[1] &&
|
|
conditions.xmanInfo.mLLs[1] == conditions.xmanInfo.mLLs[2] &&
|
|
//
|
|
conditions.xmanInfo.sLLs[1] == conditions.xmanInfo.mLLs[1]
|
|
//
|
|
)
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isSMLLLSames =
|
|
//
|
|
(
|
|
//
|
|
isSMLLSames &&
|
|
//
|
|
conditions.xmanInfo.lLLs[0] == conditions.xmanInfo.lLLs[1] &&
|
|
conditions.xmanInfo.lLLs[1] == conditions.xmanInfo.lLLs[2] &&
|
|
//
|
|
conditions.xmanInfo.mLLs[1] == conditions.xmanInfo.lLLs[1]
|
|
//
|
|
)
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isSMLHLLSames =
|
|
//
|
|
(
|
|
//
|
|
isSMLLLSames &&
|
|
//
|
|
conditions.xmanInfo.hLLs[0] == conditions.xmanInfo.hLLs[1] &&
|
|
conditions.xmanInfo.hLLs[1] == conditions.xmanInfo.hLLs[2] &&
|
|
//
|
|
conditions.xmanInfo.lLLs[1] == conditions.xmanInfo.hLLs[1]
|
|
//
|
|
)
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isHLLSameIn5Past =
|
|
//
|
|
conditions.xmanInfo.hLLs[0] == conditions.xmanInfo.hLLs[1] &&
|
|
conditions.xmanInfo.hLLs[1] == conditions.xmanInfo.hLLs[2] &&
|
|
conditions.xmanInfo.hLLs[3] == conditions.xmanInfo.hLLs[4]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isSLLBullish =
|
|
//
|
|
conditions.xmanInfo.sLLs[0] > conditions.xmanInfo.sLLs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isSHHBearish =
|
|
//
|
|
conditions.xmanInfo.sHHs[0] < conditions.xmanInfo.sHHs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isMLLBullish =
|
|
//
|
|
conditions.xmanInfo.mLLs[0] > conditions.xmanInfo.mLLs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isMHHBearish =
|
|
//
|
|
conditions.xmanInfo.mHHs[0] < conditions.xmanInfo.mHHs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isLLLBullish =
|
|
//
|
|
conditions.xmanInfo.lLLs[0] > conditions.xmanInfo.lLLs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isLHHBearish =
|
|
//
|
|
conditions.xmanInfo.lHHs[0] < conditions.xmanInfo.lHHs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isHLLBullish =
|
|
//
|
|
conditions.xmanInfo.hLLs[0] > conditions.xmanInfo.hLLs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isHHHBearish =
|
|
//
|
|
conditions.xmanInfo.hHHs[0] < conditions.xmanInfo.hHHs[1]
|
|
//
|
|
;
|
|
|
|
//
|
|
XOHCL hkC1;
|
|
hkC1.open = conditions.xmanInfo.hkOpens[0];
|
|
hkC1.high = conditions.xmanInfo.hkHighs[0];
|
|
hkC1.low = conditions.xmanInfo.hkLows[0];
|
|
hkC1.close = conditions.xmanInfo.hkCloses[0];
|
|
|
|
//
|
|
bool isCandle1Doji =
|
|
//
|
|
IsDojiCandle(conditions.candles[1])
|
|
//
|
|
;
|
|
bool isHKCandle1Doji =
|
|
//
|
|
IsDojiCandle(hkC1)
|
|
//
|
|
;
|
|
bool isCandle1Bullish =
|
|
//
|
|
IsBullishCandle(conditions.candles[1])
|
|
//
|
|
;
|
|
bool isHKCandle1Bullish =
|
|
//
|
|
conditions.xmanInfo.isHKBullish
|
|
//
|
|
;
|
|
bool isCandle1CrossShadows =
|
|
//
|
|
IsCrossShadowCandle((conditions.candles[1]))
|
|
//
|
|
;
|
|
bool isHKCandle1CrossShadows =
|
|
//
|
|
IsCrossShadowCandle(hkC1)
|
|
//
|
|
;
|
|
|
|
//
|
|
bool isVale1ShadowHunt =
|
|
//
|
|
IsShadowHuntCandle(conditions.candles[1], conditions.xmanInfo.vales[1])
|
|
//
|
|
;
|
|
|
|
// isHKCandle1Doji &&
|
|
// isHKCandle1Bullish &&
|
|
// isHKCandle1CrossShadows
|
|
//
|
|
// isVale1ShadowHunt
|
|
//
|
|
// isSLLBullish &&
|
|
// isSMLHLLSames &&
|
|
// isHLLSameIn5Past
|
|
//
|
|
//
|
|
// //
|
|
// (isSMLLSames ||
|
|
// isSMLLLSames ||
|
|
// isSMLHLLSames)
|
|
// //
|
|
// &&
|
|
// //
|
|
// (isSLLBullish ||
|
|
// isMLLBullish)
|
|
// //
|
|
// &&
|
|
// //
|
|
// !(isSHHBearish ||
|
|
// isMHHBearish ||
|
|
// isLHHBearish ||
|
|
// isHHHBearish)
|
|
// //
|
|
// &&
|
|
// //
|
|
// conditions.xmanInfo.isTrendBullish
|
|
// //
|