Readme and Comments

This commit is contained in:
Bell
2026-05-17 23:23:44 +07:00
parent 5c90171709
commit 7f68c86846
14 changed files with 487 additions and 47 deletions
+18 -9
View File
@@ -1,5 +1,14 @@
//+------------------------------------------------------------------+
//| Config.mqh — inputs & hằng số |
//| Config.mqh |
//| Tham số input map spec → runtime |
//+------------------------------------------------------------------+
//| ĐÃ GIẢI QUYẾT: |
//| • InpHtf = H1 mặc định (§ HTF trend) |
//| • InpSwingRange — pivot §1.4 P2 & xác nhận đỉnh/đáy sau phá Key |
//| • InpFibMinRatio = 0.382 — chỉ tiên quyết trend (§ đầu) |
//| • InpSwingLookback — quét đủ H0L1 lúc lock snapshot |
//| • Màu / alpha — §1.3 vẽ vùng cung-cầu |
//| CHƯA CÓ: trading, session, LTF |
//+------------------------------------------------------------------+
#ifndef HYPERICT_CONFIG_MQH
#define HYPERICT_CONFIG_MQH
@@ -7,22 +16,22 @@
#include <HyperICT/Types.mqh>
input group "══ HTF Structure ══"
input ENUM_TIMEFRAMES InpHtf = PERIOD_H1;
input int InpSwingRange = 3;
input int InpSwingLookback = 400;
input double InpFibMinRatio = 0.382;
input ENUM_TIMEFRAMES InpHtf = PERIOD_H1; // §1: timeframe cấu trúc HTF
input int InpSwingRange = 3; // §1.4: số nến mỗi bên pivot (confirm đỉnh/đáy)
input int InpSwingLookback = 400; // quét swing lúc lock ban đầu
input double InpFibMinRatio = 0.382; // § tiên quyết: H1→L0 vs L1→H1 (chỉ lúc lock trend)
input group "══ Hiển thị ══"
input bool InpDrawSwings = true;
input bool InpDrawZones = true;
input bool InpDrawSwings = true; // §1.3 label H0L1
input bool InpDrawZones = true; // §1.3 rectangle Key LV1/L2
input bool InpDrawPanel = true;
input uchar InpZoneFillAlpha = 72;
input color InpClrBullHi = clrDodgerBlue;
input color InpClrBullLo = clrDeepSkyBlue;
input color InpClrBearHi = clrOrangeRed;
input color InpClrBearLo = clrGold;
input color InpClrSupply = C'140,50,55';
input color InpClrDemand = C'35,110,55';
input color InpClrSupply = C'140,50,55'; // vùng cung @ L0
input color InpClrDemand = C'35,110,55'; // vùng cầu @ H0
input int InpLabelFontSize = 9;
input int InpPanelX = 12;
input int InpPanelY = 28;