This commit is contained in:
2024-05-30 15:14:24 +03:30
parent 9bd69ff00f
commit de6e6d32e9
2 changed files with 139 additions and 25 deletions
+41 -15
View File
@@ -8640,35 +8640,61 @@ private:
int pIndex = cIndex + 1; int pIndex = cIndex + 1;
// //
bool hasCMarketConditions = cMarket.HasX121ShortConditions(); bool cHasX121 = cMarket.HasX121ShortConditions();
bool sHasX121 = sMarket.HasX121ShortConditions();
bool mHasX121 = mMarket.HasX121ShortConditions();
bool lHasX121 = lMarket.HasX121ShortConditions();
bool hHasX121 = hMarket.HasX121ShortConditions();
// //
if (hasCMarketConditions) if (cHasX121)
{ {
// sl = cMarket.mrb.GetFast(cIndex);
XOHCL cBar = cMarket.GetBar(cIndex); }
else if (sHasX121)
// {
r2r = 1.5; sl = sMarket.mrb.GetFast(cIndex);
}
// else if (mHasX121)
sl = cBar.FindHighest( {
3, sl = mMarket.mrb.GetFast(cIndex);
MODE_HIGH // }
); else if (lHasX121)
{
sl = lMarket.mrb.GetFast(cIndex);
}
else if (hHasX121)
{
sl = hMarket.mrb.GetFast(cIndex);
} }
// //
result = result =
// //
hasCMarketConditions cHasX121
//
||
//
sHasX121
//
||
//
mHasX121
//
||
//
lHasX121
//
||
//
hHasX121
// //
; ;
// //
if (result) if (result)
{ {
Print("Salam"); r2r = 1.5;
} }
// //
+98 -10
View File
@@ -6341,16 +6341,104 @@ public:
// //
; ;
// // //
// result = // Combine MRB and MC ...
// //
// (isMRBFastCrossedUnderSlow && //
// (isCHEBearish && bool isCMRBFastOverVerifier = cMRBFast > cMCVerifier;
// isTrendBearish && bool isPMRBFastOverVerifier = pMRBFast > pMCVerifier;
// isMCFastUnderSlow &&
// isMCFastUnderVerifier)) //
// // bool isCMRBFastUnderVerifier = cMRBFast < cMCVerifier;
// ; bool isPMRBFastUnderVerifier = pMRBFast < pMCVerifier;
//
bool isCMRBSlowOverVerifier = cMRBSlow > cMCVerifier;
bool isPMRBSlowOverVerifier = pMRBSlow > pMCVerifier;
//
bool isCMRBSlowUnderVerifier = cMRBSlow < cMCVerifier;
bool isPMRBSlowUnderVerifier = pMRBSlow < pMCVerifier;
//
bool isMRBFastOverVerifier = isCMRBFastOverVerifier;
bool isMRBFastUnderVerifier = isCMRBFastUnderVerifier;
//
bool isMRBFastCrossedtOverVerifier =
//
isCMRBFastOverVerifier &&
!isPMRBFastOverVerifier
//
;
//
bool isMRBFastCrossedUnderVerifier =
//
isCMRBFastUnderVerifier &&
!isPMRBFastUnderVerifier
//
;
//
bool isMRBSlowOverVerifier = isCMRBSlowOverVerifier;
bool isMRBSlowUnderVerifier = isCMRBSlowUnderVerifier;
//
bool isMRBSlowCrossedtOverVerifier =
//
isCMRBSlowOverVerifier &&
!isPMRBSlowOverVerifier
//
;
//
bool isMRBSlowCrossedUnderVerifier =
//
isCMRBSlowUnderVerifier &&
!isPMRBSlowUnderVerifier
//
;
//
result =
//
(isMRBFastCrossedUnderSlow &&
(isCHEBearish &&
isTrendBearish &&
isMCFastUnderSlow))
//
||
//
(isMRBSlowCrossedUnderVerifier &&
(isCHEBearish &&
isTrendBearish &&
isMCFastUnderSlow &&
isMRBFastUnderSlow))
//
||
//
(isCHESwitchedToBearish &&
(isTrendBearish &&
isMCFastUnderSlow &&
isMRBFastUnderSlow))
//
||
//
(isTrendSwitchedToBearish &&
(isCHEBearish &&
isMCFastUnderSlow &&
isMRBFastUnderSlow))
//
||
//
(isMCFastCrossedUnderSlow &&
(isCHEBearish &&
isTrendBearish &&
isMRBFastUnderSlow &&
isMCSlowUnderVerifier))
//
;
// //
return result; return result;