Last Works ...
This commit is contained in:
@@ -1129,3 +1129,119 @@
|
||||
//
|
||||
result = isConditionReadyForDemand ||
|
||||
isConditionReadyForSupply;
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//
|
||||
// Detect Trend ...
|
||||
// //
|
||||
// bool d1HasBullishTrend = HasBullishTrend(_1DState);
|
||||
// bool d1HasBearishTrend = HasBearishTrend(_1DState);
|
||||
|
||||
// //
|
||||
// bool h4HasBullishTrend = HasBullishTrend(_4HState);
|
||||
// bool h4HasBearishTrend = HasBearishTrend(_4HState);
|
||||
|
||||
// //
|
||||
// bool m15HasBullishTrend = HasBullishTrend(_15MState);
|
||||
// bool m15HasBearishTrend = HasBearishTrend(_15MState);
|
||||
|
||||
// //
|
||||
// bool m5HasBullishTrend = HasBullishTrend(_5MState);
|
||||
// bool m5HasBearishTrend = HasBearishTrend(_5MState);
|
||||
|
||||
// //
|
||||
// bool m1HasBullishTrend = HasBullishTrend(_1MState);
|
||||
// bool m1HasBearishTrend = HasBearishTrend(_1MState);
|
||||
|
||||
// //
|
||||
// bool isBullishTrendValid = m15HasBullishTrend &&
|
||||
// m5HasBullishTrend;
|
||||
// //
|
||||
// bool isBearishTrendValid = m15HasBearishTrend &&
|
||||
// m5HasBearishTrend;
|
||||
|
||||
// //
|
||||
// if (isBullishTrendValid)
|
||||
// {
|
||||
// Print("isBullishTrendValid");
|
||||
// }
|
||||
|
||||
// //
|
||||
// if (isBearishTrendValid)
|
||||
// {
|
||||
// Print("isBearishTrendValid");
|
||||
// }
|
||||
|
||||
// //
|
||||
// XOHCL tmpSWH[];
|
||||
// XOHCL tmpSWL[];
|
||||
|
||||
// //
|
||||
// XOHCL m15Bar;
|
||||
// result = m15Bar.Init(
|
||||
// _symbol,
|
||||
// PERIOD_M15,
|
||||
// cIndex //
|
||||
// );
|
||||
// if (!result)
|
||||
// {
|
||||
// return result;
|
||||
// }
|
||||
// bool m15HasBullishTrend =
|
||||
// m15Bar.HasBullishTrend(
|
||||
// tmpSWH,
|
||||
// tmpSWL,
|
||||
// true //
|
||||
// );
|
||||
// bool m15HasBearishTrend =
|
||||
// m15Bar.HasBearishTrend(
|
||||
// tmpSWH,
|
||||
// tmpSWL,
|
||||
// true //
|
||||
// );
|
||||
|
||||
// //
|
||||
// XOHCL m5Bar;
|
||||
// result = m5Bar.Init(
|
||||
// _symbol,
|
||||
// PERIOD_M5,
|
||||
// cIndex //
|
||||
// );
|
||||
// if (!result)
|
||||
// {
|
||||
// return result;
|
||||
// }
|
||||
// bool m5HasBullishTrend =
|
||||
// m5Bar.HasBullishTrend(
|
||||
// tmpSWH,
|
||||
// tmpSWL //
|
||||
// );
|
||||
// bool m5HasBearishTrend =
|
||||
// m5Bar.HasBearishTrend(
|
||||
// tmpSWH,
|
||||
// tmpSWL //
|
||||
// );
|
||||
|
||||
// //
|
||||
// bool hasBullishTrend =
|
||||
// m15HasBullishTrend &&
|
||||
// m5HasBullishTrend;
|
||||
|
||||
// //
|
||||
// bool hasBearishTrend =
|
||||
// m15HasBearishTrend &&
|
||||
// m5HasBearishTrend;
|
||||
|
||||
// //
|
||||
// if (hasBullishTrend)
|
||||
// {
|
||||
// Print("hasBullishTrend");
|
||||
// }
|
||||
|
||||
// //
|
||||
// if (hasBearishTrend)
|
||||
// {
|
||||
// Print("hasBearishTrend");
|
||||
// }
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user