From 607dd5f55b457186b9d5aae5f173fb4934770f36 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 8 Jan 2026 04:26:32 +0330 Subject: [PATCH] last ... --- Documents/Diagrams/MQL5.X121XKI.Board.kanban | 310 ++++++++--------- Helpers/x-saherelm.x121.xki.helper.mq5 | 6 +- .../x-ki.parser.conditions.tester.bkp.mq5 | 321 ++++++++++++++++++ .../x-saherelm.x121.xki.signaller.class.mq5 | 53 --- 4 files changed, 479 insertions(+), 211 deletions(-) diff --git a/Documents/Diagrams/MQL5.X121XKI.Board.kanban b/Documents/Diagrams/MQL5.X121XKI.Board.kanban index 66f22db7..ad0a2bbc 100644 --- a/Documents/Diagrams/MQL5.X121XKI.Board.kanban +++ b/Documents/Diagrams/MQL5.X121XKI.Board.kanban @@ -202,227 +202,257 @@ { "id": "abd7362a-29ba-4f92-9fe0-0496ccb7e9c6", "title": "IsKIWaveBullish", - "checked": false + "checked": true }, { "id": "440e446f-9aa9-4f74-a950-63a013b42fa5", "title": "IsKIWaveBearish", - "checked": false + "checked": true }, { "id": "2606bddb-aae1-4cca-8a29-b11c9f7015e6", "title": "IsKIWaveSwitchedToBullish", - "checked": false + "checked": true }, { "id": "2036fddf-c4eb-4c5d-a550-d3f84341e78b", "title": "IsKIWaveSwitchedToBearish", - "checked": false + "checked": true }, { "id": "649905b4-d0e9-4009-aeda-08a633861201", "title": "IsKIWaveOverLast", - "checked": false + "checked": true }, { "id": "cc181a1f-298a-438d-afc8-74b0d4200228", "title": "IsKIWaveUnderLast", - "checked": false + "checked": true }, { "id": "66bafec6-7794-4650-8919-d6409b49fbdf", "title": "IsKIWaveSwitchedOverLast", - "checked": false + "checked": true }, { "id": "a5a714cb-ea11-42e3-8e9c-8745405998ae", "title": "IsKIWaveSwitchedUnderLast", - "checked": false + "checked": true }, { "id": "b94e9071-5f85-4a38-828c-7cf8a1e99a63", "title": "IsPriceOverKIUpper", - "checked": false - }, - { - "id": "c3a7d88b-c81f-46d4-a3cc-a0d1f5597371", - "title": "IsPriceUnderKIUpper", - "checked": false - }, - { - "id": "1efcb06a-0edd-41d0-8e8b-18cba4f64226", - "title": "IsPriceOverKILower", - "checked": false - }, - { - "id": "7e95d7e0-a50f-412b-a024-2568bf66c3f1", - "title": "IsPriceUnderKILower", - "checked": false - }, - { - "id": "d747f70e-af68-42f1-a621-efd3ce518b47", - "title": "IsPriceInsideKIBands", - "checked": false + "checked": true }, { "id": "f534622b-5a7f-4c9c-85ed-c562d907fd89", "title": "IsPriceSwitchedOverKIUpper", - "checked": false + "checked": true + }, + { + "id": "c3a7d88b-c81f-46d4-a3cc-a0d1f5597371", + "title": "IsPriceUnderKIUpper", + "checked": true }, { "id": "8e559cb9-f6a9-412e-8882-e622030cf838", "title": "IsPriceSwitchedUnderKIUpper", - "checked": false + "checked": true + }, + { + "id": "1efcb06a-0edd-41d0-8e8b-18cba4f64226", + "title": "IsPriceOverKILower", + "checked": true }, { "id": "b16ad1a1-1fb2-4bb6-b2f8-f9310d012f4f", "title": "IsPriceSwitchedOverKILower", - "checked": false + "checked": true + }, + { + "id": "7e95d7e0-a50f-412b-a024-2568bf66c3f1", + "title": "IsPriceUnderKILower", + "checked": true }, { "id": "dd0deb1f-a259-4ce9-a471-92e268e10abe", "title": "IsPriceSwitchedUnderKILower", - "checked": false + "checked": true + }, + { + "id": "d747f70e-af68-42f1-a621-efd3ce518b47", + "title": "IsPriceInsideKIBands", + "checked": true }, { "id": "ebf997ee-8944-4442-86fb-6d01ea64b8a6", "title": "IsMAFastBullish", - "checked": false - }, - { - "id": "11eb8b4c-004c-4272-921f-4067315aac6a", - "title": "IsMAFastBearish", - "checked": false - }, - { - "id": "90451b0f-ec2e-48e0-8797-7f48cedf743c", - "title": "IsMAFastOverLast", - "checked": false - }, - { - "id": "6158296f-fec3-443e-826b-84a481225013", - "title": "IsMAFastUnderLast", - "checked": false - }, - { - "id": "14210197-c670-4f49-8935-b65926945837", - "title": "IsMAFastSwitchedOverLast", - "checked": false - }, - { - "id": "e84b372e-fbdc-45da-a604-76a0fc6381c4", - "title": "IsMAFastSwitchedUnderLast", - "checked": false + "checked": true }, { "id": "e756a5d0-4477-4277-be7d-5897079add6a", "title": "IsMAFastSwitchedToBullish", - "checked": false + "checked": true + }, + { + "id": "11eb8b4c-004c-4272-921f-4067315aac6a", + "title": "IsMAFastBearish", + "checked": true }, { "id": "548819d7-06fa-4ca5-adf2-c4c2d3064d7e", "title": "IsMAFastSwitchedToBearish", - "checked": false + "checked": true + }, + { + "id": "90451b0f-ec2e-48e0-8797-7f48cedf743c", + "title": "IsMAFastOverLast", + "checked": true + }, + { + "id": "14210197-c670-4f49-8935-b65926945837", + "title": "IsMAFastSwitchedOverLast", + "checked": true + }, + { + "id": "6158296f-fec3-443e-826b-84a481225013", + "title": "IsMAFastUnderLast", + "checked": true + }, + { + "id": "e84b372e-fbdc-45da-a604-76a0fc6381c4", + "title": "IsMAFastSwitchedUnderLast", + "checked": true }, { "id": "ef0feb55-069c-4e9a-a56e-de05f6b6801f", "title": "IsMASlowBullish", - "checked": false - }, - { - "id": "630cd36a-f848-44d6-958b-728c4757df6e", - "title": "IsMASlowBearish", - "checked": false - }, - { - "id": "acca2b2e-27d6-44dc-bd7f-98857e1b7e64", - "title": "IsMASlowOverLast", - "checked": false - }, - { - "id": "49631b5a-8b69-4649-a47d-bef5bda3e137", - "title": "IsMASlowUnderLast", - "checked": false - }, - { - "id": "762fd136-113c-444f-8373-2104bc4db466", - "title": "IsMASlowSwitchedOverLast", - "checked": false - }, - { - "id": "3cd7c2a1-8a8a-4aba-85c2-6279a356c49e", - "title": "IsMASlowSwitchedUnderLast", - "checked": false + "checked": true }, { "id": "0568553a-8ad1-4588-834e-26befe2a9bbb", "title": "IsMASlowSwitchedToBullish", - "checked": false + "checked": true + }, + { + "id": "630cd36a-f848-44d6-958b-728c4757df6e", + "title": "IsMASlowBearish", + "checked": true }, { "id": "62899e4a-87da-4fc9-8b4b-f1b8b077c177", "title": "IsMASlowSwitchedToBearish", - "checked": false + "checked": true + }, + { + "id": "acca2b2e-27d6-44dc-bd7f-98857e1b7e64", + "title": "IsMASlowOverLast", + "checked": true + }, + { + "id": "762fd136-113c-444f-8373-2104bc4db466", + "title": "IsMASlowSwitchedOverLast", + "checked": true + }, + { + "id": "49631b5a-8b69-4649-a47d-bef5bda3e137", + "title": "IsMASlowUnderLast", + "checked": true + }, + { + "id": "3cd7c2a1-8a8a-4aba-85c2-6279a356c49e", + "title": "IsMASlowSwitchedUnderLast", + "checked": true }, { "id": "43bbc4df-7601-4460-b636-61b73b30f10a", "title": "IsMASuperSlowBullish", - "checked": false - }, - { - "id": "91c30277-6ea9-40e8-8467-d06beabf486b", - "title": "IsMASuperSlowBearish", - "checked": false - }, - { - "id": "0a102b6a-fabe-4aba-938f-d87a22e11b5e", - "title": "IsMASuperSlowOverLast", - "checked": false - }, - { - "id": "97e4a349-77c8-4997-8f1b-875fff8229ab", - "title": "IsMASuperSlowUnderLast", - "checked": false - }, - { - "id": "cc1a7131-227d-4007-82ed-78c8cc9ef33e", - "title": "IsMASuperSlowSwitchedOverLast", - "checked": false - }, - { - "id": "93899467-f06d-420a-ac6e-e645c8c07389", - "title": "IsMASuperSlowSwitchedUnderLast", - "checked": false + "checked": true }, { "id": "a64507e6-c99a-4e6a-a995-c1be671d1083", "title": "IsMASuperSlowSwitchedToBullish", - "checked": false + "checked": true + }, + { + "id": "91c30277-6ea9-40e8-8467-d06beabf486b", + "title": "IsMASuperSlowBearish", + "checked": true }, { "id": "65295670-87f7-481c-ab9e-a92c8606923f", "title": "IsMASuperSlowSwitchedToBearish", - "checked": false + "checked": true + }, + { + "id": "0a102b6a-fabe-4aba-938f-d87a22e11b5e", + "title": "IsMASuperSlowOverLast", + "checked": true + }, + { + "id": "cc1a7131-227d-4007-82ed-78c8cc9ef33e", + "title": "IsMASuperSlowSwitchedOverLast", + "checked": true + }, + { + "id": "97e4a349-77c8-4997-8f1b-875fff8229ab", + "title": "IsMASuperSlowUnderLast", + "checked": true + }, + { + "id": "93899467-f06d-420a-ac6e-e645c8c07389", + "title": "IsMASuperSlowSwitchedUnderLast", + "checked": true }, { "id": "2cbc64ba-1882-47a6-9206-7b25e8008395", "title": "IsMACrossoverBullish", - "checked": false - }, - { - "id": "44b233e6-5a56-4f3a-9c28-60e11aa2059a", - "title": "IsMACrossoverBearish", - "checked": false + "checked": true }, { "id": "d7af351b-1de4-4ca9-958a-388d944d4fa9", "title": "IsMACrossoverSwitchedToBullish", - "checked": false + "checked": true + }, + { + "id": "44b233e6-5a56-4f3a-9c28-60e11aa2059a", + "title": "IsMACrossoverBearish", + "checked": true }, { "id": "5af39475-d1f8-477f-b867-5359aaaf94fa", "title": "IsMACrossoverSwitchedToBearish", - "checked": false + "checked": true + }, + { + "id": "d2a8183b-3553-4016-8155-a114c70da5ec", + "title": "IsPeakSameAsLast", + "checked": true + }, + { + "id": "7395f77c-7491-417e-8ca8-a41923b46b68", + "title": "IsPeakOverLast", + "checked": true + }, + { + "id": "afdae94d-1a14-408d-b1bd-e84c0868a655", + "title": "IsPeakUnderLast", + "checked": true + }, + { + "id": "45f52be4-1f08-4e7a-b15b-d8db48752449", + "title": "IsValeSameAsLast", + "checked": true + }, + { + "id": "ebc003bc-850d-44e2-a0ed-5ddaba71ae1a", + "title": "IsValeOverLast", + "checked": true + }, + { + "id": "c979f0c3-e356-4fa6-bead-596e4a06b962", + "title": "IsValeUnderLast", + "checked": true }, { "id": "dd69c2c0-c999-4235-8cb5-74607b27c7ec", @@ -523,36 +553,6 @@ "id": "a3e07f9c-72da-49b4-8101-f742644a2b81", "title": "IsRSISwitchedToBearish", "checked": false - }, - { - "id": "d2a8183b-3553-4016-8155-a114c70da5ec", - "title": "IsPeakSameAsLast", - "checked": false - }, - { - "id": "7395f77c-7491-417e-8ca8-a41923b46b68", - "title": "IsPeakOverLast", - "checked": false - }, - { - "id": "afdae94d-1a14-408d-b1bd-e84c0868a655", - "title": "IsPeakUnderLast", - "checked": false - }, - { - "id": "45f52be4-1f08-4e7a-b15b-d8db48752449", - "title": "IsValeSameAsLast", - "checked": false - }, - { - "id": "ebc003bc-850d-44e2-a0ed-5ddaba71ae1a", - "title": "IsValeOverLast", - "checked": false - }, - { - "id": "c979f0c3-e356-4fa6-bead-596e4a06b962", - "title": "IsValeUnderLast", - "checked": false } ], "comments": [] diff --git a/Helpers/x-saherelm.x121.xki.helper.mq5 b/Helpers/x-saherelm.x121.xki.helper.mq5 index b6817114..7f2b11d2 100644 --- a/Helpers/x-saherelm.x121.xki.helper.mq5 +++ b/Helpers/x-saherelm.x121.xki.helper.mq5 @@ -220,10 +220,10 @@ struct X121XKIInputs int maSuperSlowLength; // MA Super Slow Length ENUM_MA_METHOD maMethod; // MA Mode ENUM_APPLIED_PRICE maAppliedTo; // MA Applied To - double rsiBullishConfirmation; // RSI Bullish Confirmation Level - double rsiBearishConfirmation; // RSI Bearish Confirmation Level int rsiLength; // RSI Length ENUM_APPLIED_PRICE rsiAppliedTo; // RSI Applied To + double rsiBullishConfirmation; // RSI Bullish Confirmation Level + double rsiBearishConfirmation; // RSI Bearish Confirmation Level int kiWaveSmoothingLength; // RSI KI Wave Smoothing Length ENUM_X_MA_METHOD kiWaveSmoothingMode; // RSI KI Wave Smoothing Method double rsiMultiplier; // RSI Multiplier @@ -572,9 +572,9 @@ class XCX121XKIHelper : public XCBaseHelper mInputs.maMethod, mInputs.maAppliedTo, mInputs.rsiLength, + mInputs.rsiAppliedTo, mInputs.rsiBullishConfirmation, mInputs.rsiBearishConfirmation, - mInputs.rsiAppliedTo, mInputs.kiWaveSmoothingLength, mInputs.kiWaveSmoothingMode, mInputs.rsiMultiplier, diff --git a/X121XKIEA/Backup/x-ki.parser.conditions.tester.bkp.mq5 b/X121XKIEA/Backup/x-ki.parser.conditions.tester.bkp.mq5 index c1ead7f7..ddda3efc 100644 --- a/X121XKIEA/Backup/x-ki.parser.conditions.tester.bkp.mq5 +++ b/X121XKIEA/Backup/x-ki.parser.conditions.tester.bkp.mq5 @@ -166,3 +166,324 @@ // } // #endregion +// #region KI Wave ... +// +// if (kiParser.IsKIWaveBullish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveBearish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveSwitchedToBullish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveSwitchedToBearish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveUnderLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveSwitchedOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsKIWaveSwitchedUnderLast(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + +// #region KI Band ... +// +// if (kiParser.IsPriceOverKIUpper(barIndex, X_PRICE_LOW)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceSwitchedOverKIUpper(barIndex, X_PRICE_LOW)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceUnderKIUpper(barIndex, X_PRICE_HIGH)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceSwitchedUnderKIUpper(barIndex, X_PRICE_HIGH)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceOverKILower(barIndex, X_PRICE_LOW)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceSwitchedOverKILower(barIndex, X_PRICE_LOW)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceUnderKILower(barIndex, X_PRICE_HIGH)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceSwitchedUnderKILower(barIndex, X_PRICE_HIGH)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPriceInsideKIBands(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } +// #endregion + +// #region MA ... +// #region MA Fast ... +// +// if (kiParser.IsMAFastBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastSwitchedToBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastSwitchedToBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastSwitchedOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastUnderLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMAFastSwitchedUnderLast(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + +// #region MA Slow ... +// +// if (kiParser.IsMASlowBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowSwitchedToBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowSwitchedToBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowSwitchedOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowUnderLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASlowSwitchedUnderLast(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + +// #region MA Super Slow ... +// +// if (kiParser.IsMASuperSlowBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowSwitchedToBullish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowSwitchedToBearish(barIndex, X_PRICE_CLOSE)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowSwitchedOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowUnderLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMASuperSlowSwitchedUnderLast(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + +// +// if (kiParser.IsMACrossoverBullish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMACrossoverSwitchedToBullish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMACrossoverBearish(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsMACrossoverSwitchedToBearish(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + +// #region PV ... +// +// if (kiParser.IsPeakSameAsLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPeakOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsPeakUnderLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsValeSameAsLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsValeOverLast(barIndex)) +// { +// DebugBreak(); +// } + +// +// if (kiParser.IsValeUnderLast(barIndex)) +// { +// DebugBreak(); +// } +// #endregion + + diff --git a/X121XKIEA/Classes/x-saherelm.x121.xki.signaller.class.mq5 b/X121XKIEA/Classes/x-saherelm.x121.xki.signaller.class.mq5 index 6ff5a568..e8bb8e48 100644 --- a/X121XKIEA/Classes/x-saherelm.x121.xki.signaller.class.mq5 +++ b/X121XKIEA/Classes/x-saherelm.x121.xki.signaller.class.mq5 @@ -982,59 +982,6 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller // // 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;