This commit is contained in:
2024-11-22 20:38:14 +03:30
parent 09fd3627c6
commit b99cba1272
@@ -310,7 +310,8 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
if (hasLong) { if (hasLong) {
// //
// selectedSL = conditions.xpvConditions.peaks[1]; // selectedSL = conditions.xpvConditions.peaks[1];
selectedSL = conditions.xchsarConditions.cSars[1]; // selectedSL = conditions.xchsarConditions.cSars[1];
selectedSL = cBar.low;
} }
// //
@@ -323,10 +324,11 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
conditions.xchsarConditions.cSars[0] > cBar.high conditions.xchsarConditions.cSars[0] > cBar.high
// //
; ;
if (hasLong) { if (hasShort) {
// //
// selectedSL = conditions.xpvConditions.vales[1]; // selectedSL = conditions.xpvConditions.vales[1];
selectedSL = conditions.xchsarConditions.cSars[1]; // selectedSL = conditions.xchsarConditions.cSars[1];
selectedSL = cBar.high;
} }
} }
} }