2026-02-10 17:31:30 +07:00
## 📓 Knowledge Base
2026-02-18 05:55:01 +00:00
- **NotebookLM (Primary)**: [Access here ](https://notebooklm.google.com/notebook/e8f4c29d-9aec-4d5f-8f51-2ca168687616 )
- **NotebookLM (Blueprint & Strategy)**: [Access here ](https://notebooklm.google.com/notebook/da5f7773-bb49-40d5-975c-2a30fd6b37c3 )
- **Note**: These notebooks are available for reading and writing. AI agents must read them before starting work.
2026-02-10 17:31:30 +07:00
2025-12-26 07:26:47 +00:00
## SMC + Trend Breakout (MTF) for Exness MT5
This repo contains:
- `mt5/MQL5/Indicators/SMC_TrendBreakout_MTF.mq5` : visual indicator (BOS/CHoCH + Donchian breakout + lower-timeframe confirmation).
- `mt5/MQL5/Experts/SMC_TrendBreakout_MTF_EA.mq5` : Expert Advisor (alerts + optional auto-trading).
2026-01-10 04:53:57 +07:00
### ☁️ Cloud Deployment
**Deploy to cloud platforms:**
- **Render.com**: Auto-deploy with `render.yaml`
- **Railway.app**: Deploy with `railway.json`
- **Fly.io**: Deploy with `fly.toml`
- **Docker**: Build and deploy anywhere
**Quick Deploy:**
```bash
# Setup all platform configs
python scripts/deploy_cloud.py all
# Deploy to specific platform
python scripts/deploy_cloud.py render
python scripts/deploy_cloud.py railway
python scripts/deploy_cloud.py flyio
python scripts/deploy_cloud.py docker --build
```
2026-01-21 17:54:06 +00:00
**🐳 Docker Hub Deployment:**
1. **Publish Image ** (Run locally):
```bash
./scripts/deploy_docker_hub.sh <USERNAME> <TOKEN>
```
2. **Run on VPS/Laptop ** :
```bash
# Update and run
./scripts/update_vps.sh <USERNAME> <TOKEN>
```
2026-01-10 04:53:57 +07:00
📖 **For detailed cloud deployment instructions, see [Cloud Deployment Guide](docs/Cloud_Deployment_Guide.md) **
2026-02-08 04:12:44 +00:00
### 🤖 Telegram Bot Deployment
**Deploy and manage your trading system via Telegram!**
- **API Reference**: https://core.telegram.org/bots/api
**Available Commands:**
- `/deploy_flyio` - Deploy to Fly.io
- `/deploy_render` - Deploy to Render.com
- `/deploy_railway` - Deploy to Railway.app
- `/status` - Check deployment status
**Setup:**
```bash
# Set your Telegram user ID for access control
export TELEGRAM_ALLOWED_USER_IDS="your_telegram_user_id"
# Start the bot
python scripts/telegram_deploy_bot.py
```
📖 **For detailed setup instructions, see [Telegram Bot Setup Guide](scripts/TELEGRAM_BOT_SETUP.md) **
2026-02-18 09:17:49 +00:00
### 🤖 Jules AI Coding Agent
**Integrate with Google Jules for AI-powered coding assistance!**
Jules is Google's autonomous coding agent that can help with code improvements, bug fixes, and feature development.
**Current Task:**
- Task ID: `11566195936388909103`
- View task: https://jules.google.com/task/11566195936388909103
**Setup:**
```bash
# Install Jules CLI
npm install -g @google/jules
# Authenticate with Google
jules login
# Pull the task
jules remote pull --session 11566195936388909103
# Or use the helper script
bash scripts/setup_jules_task.sh
```
📖 **For detailed Jules integration instructions, see [Jules Task Setup Guide](docs/Jules_Task_Setup.md) **
2025-12-28 05:31:17 +00:00
### Render workspace
2026-01-10 04:57:37 +07:00
My Blue watermelon Workspace
2025-12-28 05:31:17 +00:00
tea-d1joqqi4d50c738aiujg
2026-01-04 06:29:51 +00:00
### Quick Start: Full Setup
Run the automated setup script to validate your environment and get started:
```bash
bash setup.sh
```
This interactive script will:
- Check for required dependencies (Python 3, Bash, Git)
- Validate repository structure and shell scripts
- Show CLI tools installation status (GitHub CLI, Firebase, Docker, Cursor, Jules)
- Help you package MT5 files
For non-interactive/CI environments:
```bash
bash setup.sh --ci
```
2025-12-26 07:26:47 +00:00
### Install into Exness MetaTrader 5
2026-01-18 21:05:02 +00:00
> **⚠️ Note:** Custom Indicators and EAs are **not supported** on the Exness Web Terminal. You must use the **Desktop** version of MT5.
2026-01-06 01:53:30 +00:00
**📖 For detailed deployment instructions, see [Exness Deployment Guide ](docs/Exness_Deployment_Guide.md )**
Quick start:
2025-12-26 07:26:47 +00:00
1. Open **Exness MT5 ** .
2. Go to **File → Open Data Folder ** .
3. Copy:
- `SMC_TrendBreakout_MTF.mq5` to `MQL5/Indicators/`
- `SMC_TrendBreakout_MTF_EA.mq5` to `MQL5/Experts/`
4. In MT5, open **MetaEditor ** (or press **F4 ** ) and compile the files.
5. Back in MT5: **Navigator → Refresh ** .
2026-01-06 04:21:36 +00:00
### 🚀 Automated Startup (NEW!)
**Quick Start:**
- **Windows**: `powershell -ExecutionPolicy Bypass -File scripts\startup.ps1`
2026-01-21 17:44:15 +00:00
- **Ubuntu/VPS**:
```bash
# First time setup (installs Python, Wine, etc.)
bash scripts/setup_ubuntu.sh
# Start the system
./scripts/startup.sh
```
2026-01-06 04:21:36 +00:00
- **Linux/WSL**: `./scripts/startup.sh`
**Auto-Start on Boot:**
- **Windows**: `powershell -ExecutionPolicy Bypass -File scripts\startup.ps1 -CreateScheduledTask`
- **Linux**: `./scripts/startup.sh --setup-systemd`
2026-01-10 04:57:37 +07:00
📚 **Documentation ** :
2026-02-26 16:19:15 +00:00
- [**Open Source Licenses** ](docs/OPEN_SOURCE_LICENSES.md ) - Third-party component attributions
2026-01-22 01:20:17 +00:00
- [**Full Documentation Index** ](docs/INDEX.md ) - 👈 Start here for all guides
2026-01-26 06:06:23 +00:00
- [**Setup & Deployment (Comprehensive)** ](docs/SETUP_AND_DEPLOY.md ) - 🛠️ Start here for manual setup & GCP
- [WSL & VPS Guide ](docs/WSL_AND_VPS_DEPLOYMENT.md ) - Windows/Linux setup guide
2026-01-06 20:44:12 +00:00
- [Quick Reference Guide ](QUICK_REFERENCE.md ) - Command cheat sheet
- [Verification Report ](VERIFICATION.md ) - System status and test results
- [Startup Automation Guide ](docs/Startup_Automation_Guide.md ) - Complete guide
- [Quick Start ](docs/Quick_Start_Automation.md ) - Quick start instructions
2026-02-05 02:53:31 +07:00
- [Release Process ](docs/RELEASE_PROCESS.md ) - Creating and managing releases
- [Changelog ](CHANGELOG.md ) - Version history and changes
2026-01-06 04:21:36 +00:00
2026-02-10 06:17:10 +00:00
📖 **GitHub Features ** :
- [GitHub Profile README Guide ](docs/GitHub_Profile_README_Guide.md ) - Create an impressive profile page
- [GitHub Gists Guide ](docs/GitHub_Gists_Guide.md ) - Share code snippets easily
2026-01-06 04:21:36 +00:00
The automation system handles:
- MT5 Terminal startup
- Python scripts execution
- Scheduled tasks configuration
- Process monitoring and logging
- Windows Task Scheduler integration
- Linux systemd/cron integration
2025-12-26 08:26:52 +00:00
### Optional: package / deploy helpers
- Create a zip you can copy to your PC:
- `bash scripts/package_mt5.sh` → outputs `dist/Exness_MT5_MQL5.zip`
- Copy directly into your MT5 Data Folder (run this on the machine that has MT5 installed):
- `bash scripts/deploy_mt5.sh "/path/from/MT5/File->Open Data Folder"`
2026-02-09 05:09:47 +00:00
### 📺 Demo Scripts
**Echo and Hello Window Demo:**
- `python3 scripts/echo_hello.py` - Run echo and hello window demo (Python version)
- `bash scripts/echo_hello.sh` - Run echo and hello window demo (Shell version)
These simple demonstration scripts showcase basic functionality:
- Echo messages to console
- Display formatted hello window
- Cross-platform support
📖 **See [Echo and Hello Window Guide](docs/Echo_Hello_Guide.md) for details **
2025-12-27 06:02:09 +00:00
### GitHub automation (reviews, CI, auto-merge, OneDrive sync)
This repo includes GitHub Actions workflows under `.github/workflows/` :
2026-02-08 16:16:13 +00:00
- **CD (`CD - Continuous Deployment` )**: comprehensive deployment automation
- Triggered on push to main, tag creation, or manual dispatch
- Builds MT5 package and Docker images
- Deploys to cloud platforms (Render, Railway, Fly.io)
- Deploys dashboard to GitHub Pages
- Creates GitHub releases with assets
- 📖 See [CD Workflow Guide ](docs/CD_WORKFLOW_GUIDE.md ) for details
2025-12-27 06:02:09 +00:00
- **CI (`CI` )**: runs on pull requests and pushes to `main/master`
- Validates repo structure
- Builds `dist/Exness_MT5_MQL5.zip` and uploads it as an artifact
- **Auto-merge enablement (`Enable auto-merge (label-driven)` )**: if a PR has the label * * `automerge` **, it will enable GitHub’s auto-merge (squash). Your branch protection rules still control * when * it can merge (required reviews, required CI, etc.).
- **OneDrive sync (`Sync to OneDrive (rclone)` )**: on pushes to `main` (and manual runs), syncs `mt5/MQL5` to OneDrive via `rclone` .
Recommended repo settings (GitHub → **Settings ** ):
- **Branch protection (main)**:
- Require pull request reviews (at least 1)
- Require status checks: `CI / validate-and-package`
- (Optional) Require CODEOWNERS review
- **Auto-merge**: enable “Allow auto-merge” in repo settings
OneDrive sync setup (required secrets):
- **`RCLONE_CONFIG_B64` **: base64 of your `rclone.conf` containing a OneDrive remote.
Example (run locally, then paste into GitHub Secrets):
```bash
rclone config
base64 -w0 ~/.config/rclone/rclone.conf
```
Optional secrets:
- **`ONEDRIVE_REMOTE` **: remote name in `rclone.conf` (default: `onedrive` )
- **`ONEDRIVE_PATH` **: destination folder path (default: `Apps/MT5/MQL5` )
2026-01-16 00:12:27 +07:00
Firefox Relay API key (optional secrets):
- **`SCRSOR` **
- **`COPILOT` **
Set both to your Firefox Relay profile API key (`https://relay.firefox.com/accounts/profile/` ). Store these as GitHub Secrets or in a local `.env` file (see `.env.example` ). Do not commit secret values.
2026-01-21 15:17:38 +00:00
Cloudflare Configuration (required for domain registration/management):
- **`CLOUDFLARE_ZONE_ID` **: Your Cloudflare Zone ID.
- **`CLOUDFLARE_ACCOUNT_ID` **: Your Cloudflare Account ID.
- **`DOMAIN_NAME` **: Your domain name (e.g., `Lengkundee01.org` ).
Store these as GitHub Secrets or in a local `.env` file. See [Secrets Management Guide ](docs/Secrets_Management.md ) for more details.
You can use the helper script to set these secrets if you have the GitHub CLI installed:
```bash
# First, update config/vault.json with your credentials
# Then run:
bash scripts/set_github_secrets.sh vault
```
2025-12-26 07:26:47 +00:00
### Use the indicator
- Attach `SMC_TrendBreakout_MTF` to a chart (your main timeframe).
- Set **LowerTF ** to a smaller timeframe (ex: main = M15, lower = M5 or M1).
- Signals require lower-TF confirmation by default (EMA fast/slow direction).
### Use the EA (push to terminal + optional auto trading)
- Attach `SMC_TrendBreakout_MTF_EA` to a chart.
- Enable **Algo Trading ** in MT5 if you want auto entries.
- If you want phone push alerts:
- MT5 → **Tools → Options → Notifications **
- enable push notifications and set your MetaQuotes ID.
2026-01-05 11:37:02 +00:00
- For web request integrations (ZOLO-A6-9V-NUNA- plugin):
2026-02-10 04:38:44 +00:00
- Set the EA input `WebRequestURL` to your bridge endpoint (example: `https://your-bridge.example/api/signal` )
- Enable the EA input `EnableWebRequest`
- Add your bridge URL to MT5's allowed URLs list:
2026-01-05 11:37:02 +00:00
- MT5 → **Tools → Options → Expert Advisors **
- Check "Allow WebRequest for listed URL"
2026-02-10 04:38:44 +00:00
- Add the URL: `https://your-bridge.example`
2025-12-26 07:26:47 +00:00
2026-01-23 19:50:48 +00:00
### 🤖 AI Integration (Gemini & Jules)
2026-01-19 04:57:49 +00:00
2026-01-23 19:50:48 +00:00
The EA supports **Google Gemini ** and **Jules AI ** to confirm trades before entry.
2026-01-19 04:57:49 +00:00
**Setup:**
2026-01-23 19:50:48 +00:00
1. **Get an API Key ** :
* Gemini: [Google AI Studio ](https://aistudio.google.com/ )
* Jules: Your Jules API Dashboard
2026-01-19 04:57:49 +00:00
2. **Configure MT5 ** :
* Go to **Tools → Options → Expert Advisors ** .
* Check * * "Allow WebRequest for listed URL"**.
2026-01-23 19:50:48 +00:00
* Add the URLs:
* `https://generativelanguage.googleapis.com` (for Gemini)
* Your Jules API URL (e.g., `https://api.jules.ai` or similar)
2026-01-19 04:57:49 +00:00
3. **Configure the EA ** :
2026-01-23 19:50:48 +00:00
* Set `UseGeminiFilter` to `true` (Enable AI).
* Select `AiProvider` : `PROVIDER_GEMINI` or `PROVIDER_JULES` .
* Paste your API Key into `GeminiApiKey` or `JulesApiKey` .
2026-01-26 06:06:23 +00:00
**Shared/Default Keys: **
* **Gemini ** : `[INSERT_GEMINI_API_KEY]`
* **Jules ** : `[INSERT_JULES_API_KEY]`
2026-01-23 19:50:48 +00:00
### 🧠 AI Market Research & Upgrade Automation (New!)
Automate market analysis and code upgrades using Gemini and Jules.
**Setup:**
1. Run the setup script:
```bash
./scripts/setup_research.sh
```
2. Add your API keys to the `.env` file generated:
```
GEMINI_API_KEY=...
JULES_API_KEY=...
JULES_API_URL=...
```
**Features:**
- **Market Research**: Fetches real market data (via `yfinance` ) and generates a report (`docs/market_research_report.md` ).
- **Code Upgrades**: Suggests EA improvements based on the research (`docs/upgrade_suggestions.md` ).
- **Scheduling**: Runs automatically every 4 hours via `scripts/schedule_research.py` .
2026-01-19 04:57:49 +00:00
2025-12-26 08:17:39 +00:00
### Auto SL/TP + risk management (EA)
In `SMC_TrendBreakout_MTF_EA` :
- **SLMode**
- `SL_ATR` : SL = ATR × `ATR_SL_Mult`
- `SL_SWING` : SL beyond last confirmed fractal swing (with `SwingSLBufferPoints` ), fallback to ATR if swing is missing/invalid
- `SL_FIXED_POINTS` : SL = `FixedSLPoints`
- **TPMode**
- `TP_RR` : TP = `RR` × SL distance
- `TP_FIXED_POINTS` : TP = `FixedTPPoints`
- `TP_DONCHIAN_WIDTH` : TP = Donchian channel width × `DonchianTP_Mult` (fallback to ATR width if needed)
- **RiskPercent**
- If `RiskPercent > 0` , lots are calculated from SL distance so the **money at risk ≈ RiskPercent of Equity ** (or Balance if you disable `RiskUseEquity` ).
- `RiskClampToFreeMargin` can reduce lots if required margin is too high.
2025-12-26 07:26:47 +00:00
### Notes / safety
- This is a rules-based implementation of common “SMC” ideas (fractal swing BOS/CHoCH) and a Donchian breakout.
- Test in Strategy Tester and/or demo before using real funds.
2025-12-26 08:45:42 +00:00
2025-12-28 05:20:45 +00:00
### Project links
2026-01-22 01:20:17 +00:00
- [**User Notes & References** ](docs/USER_NOTES.md ) - 📝 Personal notes and external links
2026-01-26 06:06:23 +00:00
- **OneDrive Vault Password**: `[ACCESS_CODE_REQUIRED]` (Access Code)
2026-02-18 05:55:01 +00:00
- **NotebookLM Context (Primary)**: [NotebookLM ](https://notebooklm.google.com/notebook/e8f4c29d-9aec-4d5f-8f51-2ca168687616 )
- **NotebookLM Blueprint & Strategy**: [NotebookLM ](https://notebooklm.google.com/notebook/da5f7773-bb49-40d5-975c-2a30fd6b37c3 )
- **OneDrive Blueprint Notes**: [Quick Notes - Blueprint ](https://onedrive.live.com/view.aspx?resid=8F247B1B46E82304%21s47a25b152cbc4de0986115d88145a225&id=documents&wd=target%28Quick%20Notes.one%7C8BA711F8-2F20-4E7B-80E6-8A8AE35E44EE%2F%F0%9F%9F%A6Blueprint%7C537850C8-5311-4245-998C-DF5B039E5053%2F%29&wdpartid={2A7121B3-322E-660B-0CE6-D3E30D3240A7}{1}&wdsectionfileid=8F247B1B46E82304!s1989476304ab43a4b1dec048cc4fe5ec )
2026-01-26 06:06:23 +00:00
- **Cursor Connect**: [Join Session ](https://prod.liveshare.vsengsaas.visualstudio.com/join?9C5AED55D7D6624FE2E1B50AD9F14D1339A5 )
2025-12-28 05:20:45 +00:00
- Developer tip window project: https://chatgpt.com/g/g-p-691e9c0ace5c8191a1b409c09251cc2b-window-for-developer-tip/project
2026-01-26 06:06:23 +00:00
- GenX Workspace (VSCode): [OneDrive Folder ](https://1drv.ms/f/c/8F247B1B46E82304/IgCPaN4jwMKZTar1XBwn8W9zAYFz0tYoNz7alcAhiiI9oIQ )
2026-01-22 09:01:46 +00:00
- Samurai All Branch Structure: [OneDrive Folder ](https://1drv.ms/f/c/8F247B1B46E82304/IgDpUzdplXkDTpiyCkdNDZpXASUMJEccVuNGxAaY3MxB1sA )
2026-01-22 00:49:14 +00:00
- Plugin Integration: [ZOLO-A6-9V-NUNA- ](https://1drv.ms/f/c/8F247B1B46E82304/IgBYRTEjjPv-SKHi70WnmmU8AZb3Mr5X1o3a0QNU_mKgAZg )
2026-01-05 11:37:02 +00:00
- GitHub Pages: https://github.com/Mouy-leng/-LengKundee-mql5.github.io.git
2026-02-10 04:38:44 +00:00
- ZOLO Bridge Endpoint: (set this privately in EA inputs / vault)
2025-12-28 05:20:45 +00:00
2025-12-26 08:45:42 +00:00
### Contact
- Email: `Lengkundee01.org@domain.com`
2025-12-28 05:21:56 +00:00
- WhatsApp: [Agent community ](https://chat.whatsapp.com/DYemXrBnMD63K55bjUMKYF )