last works ...
This commit is contained in:
@@ -979,6 +979,66 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
||||
bool isBearish = false;
|
||||
int barIndex = bar.Index() + 1;
|
||||
|
||||
//
|
||||
// TEST ...
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowBullish(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowSwitchedToBullish(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowBearish(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowSwitchedToBearish(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowOverLast(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowUnderLast(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowSameAsLast(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowSwitchedOverLast(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
// if (kiParser.IsKISuperSlowSwitchedUnderLast(barIndex))
|
||||
// {
|
||||
// DebugBreak();
|
||||
// }
|
||||
|
||||
//
|
||||
return false;
|
||||
|
||||
//
|
||||
// Initialize Indexed Bar ...
|
||||
XOHCL iBar;
|
||||
@@ -1072,44 +1132,44 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
||||
|
||||
//
|
||||
// Count Touches ...
|
||||
int bullishTouches = 0;
|
||||
int bearishTouches = 0;
|
||||
if (result)
|
||||
{
|
||||
//
|
||||
kiParser.CountTouches(
|
||||
bullishTouches,
|
||||
bearishTouches,
|
||||
barIndex,
|
||||
4 // Loopback ...
|
||||
);
|
||||
// int bullishTouches = 0;
|
||||
// int bearishTouches = 0;
|
||||
// if (result)
|
||||
// {
|
||||
// //
|
||||
// kiParser.CountTouches(
|
||||
// bullishTouches,
|
||||
// bearishTouches,
|
||||
// barIndex,
|
||||
// 4 // Loopback ...
|
||||
// );
|
||||
|
||||
//
|
||||
isBullish =
|
||||
isBullish &&
|
||||
bullishTouches >= bearishTouches;
|
||||
// //
|
||||
// isBullish =
|
||||
// isBullish &&
|
||||
// bullishTouches >= bearishTouches;
|
||||
|
||||
//
|
||||
isBearish =
|
||||
isBearish &&
|
||||
bearishTouches >= bullishTouches;
|
||||
// //
|
||||
// isBearish =
|
||||
// isBearish &&
|
||||
// bearishTouches >= bullishTouches;
|
||||
|
||||
//
|
||||
// Summarize Result ...
|
||||
result = isBullish || isBearish;
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
isBullish = false;
|
||||
isBearish = false;
|
||||
}
|
||||
// //
|
||||
// // Summarize Result ...
|
||||
// result = isBullish || isBearish;
|
||||
// if (!result)
|
||||
// {
|
||||
// //
|
||||
// isBullish = false;
|
||||
// isBearish = false;
|
||||
// }
|
||||
|
||||
//
|
||||
if (bullishTouches > 0 || bearishTouches > 0)
|
||||
{
|
||||
// DebugBreak();
|
||||
}
|
||||
}
|
||||
// //
|
||||
// if (bullishTouches > 0 || bearishTouches > 0)
|
||||
// {
|
||||
// // DebugBreak();
|
||||
// }
|
||||
// }
|
||||
|
||||
//
|
||||
if (!result)
|
||||
|
||||
Reference in New Issue
Block a user