Sync vault notes: April-November 2026 sessions, projects, and architecture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe4fe656be
commit
994c7ae577
379 files changed
+55216
-107
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# 2026-04-08 - Confluence EA 17:00 Trading Stop Check
|
||||
|
||||
## Question
|
||||
User asked to double-check the Confluence EA code to ensure it does not stop trading at 17:00 every day.
|
||||
|
||||
## Investigation
|
||||
|
||||
### Code Analysis
|
||||
Reviewed `MultiSignal_Confluence_EA.mq5` for any time-based trading restrictions.
|
||||
|
||||
### Key Finding
|
||||
The only reference to hour 17 is in the **weekend protection** logic:
|
||||
- `InpWeekendCloseHour = 17` (input parameter, line 53)
|
||||
- Logic at line 1030: `if(dt.hour >= InpWeekendCloseHour)`
|
||||
|
||||
**Critical**: This code is wrapped in `if(dt.day_of_week != FRIDAY)` check (line 1018), so it ONLY triggers on Friday, NOT every day.
|
||||
|
||||
### Other Potential Causes for Trading Stop at 17:00
|
||||
1. **Daily drawdown limit** - `InpMaxDailyDrawdown` (default 3%)
|
||||
2. **ADX filter** - Blocks trades if ADX < `InpMinADX` (default 20)
|
||||
3. **Volatility filter** - Blocks trades if ATR < `InpMinATRPercent`
|
||||
|
||||
## Conclusion
|
||||
**No bug found.** The EA does NOT stop trading at 17:00 every day. The 17:00 check only applies to Friday close protection.
|
||||
|
||||
If trading stops at 17:00, likely causes:
|
||||
- Daily drawdown limit reached
|
||||
- ADX too low (market ranging)
|
||||
- ATR too low (low volatility)
|
||||
- Actually Friday and weekend protection triggered
|
||||
Reference in new issue
Block a user