From 5c65623ce3b5b25762a5519ea979fc98a2327454 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 4 May 2024 19:18:13 +0330 Subject: [PATCH] last ... --- MQLTestWorkspace/BKPS/Temp/conditions.old.mq5 | 192 ++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 MQLTestWorkspace/BKPS/Temp/conditions.old.mq5 diff --git a/MQLTestWorkspace/BKPS/Temp/conditions.old.mq5 b/MQLTestWorkspace/BKPS/Temp/conditions.old.mq5 new file mode 100644 index 0000000..1828dcb --- /dev/null +++ b/MQLTestWorkspace/BKPS/Temp/conditions.old.mq5 @@ -0,0 +1,192 @@ +// +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 +// //