Find a file
google-labs-jules[bot] fdb7747488 Setup research schedule and integrate NotebookLM context
- Updated docs/NOTEBOOK_LM_CONTEXT.txt with provided URL.
- Verified market_research.py and upgrade_repo.py functionality.
- Generated initial market research report and upgrade suggestions using Gemini-flash-latest.
- Started research scheduler background process.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-26 19:44:51 +00:00
.github Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
.jules Bolt: Optimize market data fetching with bulk download 2026-01-26 05:13:57 +00:00
config Setup Market Research Scheduler (Scandal) 2026-01-22 19:36:23 +00:00
dashboard Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
data Setup research schedule and integrate NotebookLM context 2026-01-26 19:44:51 +00:00
docs Setup research schedule and integrate NotebookLM context 2026-01-26 19:44:51 +00:00
logs Add automation features documentation and integration tests 2026-01-06 04:25:48 +00:00
mt5/MQL5 feat: add Jules API integration to SMC_TrendBreakout_MTF_EA 2026-01-22 21:31:57 +00:00
scripts Bolt: Optimize market data fetching with bulk download 2026-01-26 05:13:57 +00:00
.dockerignore feat: Add cloud deployment configurations and automation - Added Dockerfile and docker-compose.yml for containerized deployment - Created render.yaml for Render.com deployment - Created railway.json for Railway.app deployment - Created fly.toml for Fly.io deployment - Added deploy_cloud.py script for multi-platform deployment - Created comprehensive Cloud Deployment Guide documentation - Added GitHub Actions workflow for cloud deployment validation - Updated README with cloud deployment quick start 2026-01-10 04:53:57 +07:00
.editorconfig feat: Add GitHub Actions for CI, automerge, and sync 2025-12-27 06:02:09 +00:00
.env.example feat: add Cloudflare configuration and secret management tools 2026-01-21 15:17:38 +00:00
.gcloudignore Add GCP deployment configuration and scripts 2026-01-24 19:21:00 +00:00
.gitignore Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
.nojekyll Fix 404 error on GitHub Pages by ensuring index.html exists in root and docs 2026-01-22 00:02:38 +00:00
AGENTS.md Add agent workflow guidance (#108) 2026-01-16 00:14:14 +07:00
app.yaml Bolt: Optimize health check endpoint 2026-01-21 05:17:23 +00:00
AUTOMATION_FEATURES.md feat: Implement automatic retry logic for failed components - Added retry mechanism using max_startup_retries config setting - Components now retry up to configured number of attempts - Improved error handling and logging for retry attempts - Updated documentation to reflect new feature 2026-01-10 04:36:53 +07:00
cloudbuild.yaml Add GCP deployment configuration and scripts 2026-01-24 19:21:00 +00:00
docker-compose.yml Add Docker Hub deployment scripts and update configuration 2026-01-21 17:54:06 +00:00
Dockerfile feat: Add cloud deployment configurations and automation - Added Dockerfile and docker-compose.yml for containerized deployment - Created render.yaml for Render.com deployment - Created railway.json for Railway.app deployment - Created fly.toml for Fly.io deployment - Added deploy_cloud.py script for multi-platform deployment - Created comprehensive Cloud Deployment Guide documentation - Added GitHub Actions workflow for cloud deployment validation - Updated README with cloud deployment quick start 2026-01-10 04:53:57 +07:00
fly.toml feat: Add cloud deployment configurations and automation - Added Dockerfile and docker-compose.yml for containerized deployment - Created render.yaml for Render.com deployment - Created railway.json for Railway.app deployment - Created fly.toml for Fly.io deployment - Added deploy_cloud.py script for multi-platform deployment - Created comprehensive Cloud Deployment Guide documentation - Added GitHub Actions workflow for cloud deployment validation - Updated README with cloud deployment quick start 2026-01-10 04:53:57 +07:00
index.html Fix 404 error on GitHub Pages by ensuring index.html exists in root and docs 2026-01-22 00:02:38 +00:00
LICENSE Initial commit 2025-12-26 13:13:16 +07:00
QUICK_REFERENCE.md Update docs to warn about Exness Web Terminal limitations 2026-01-18 21:10:55 +00:00
railway.json feat: Add cloud deployment configurations and automation - Added Dockerfile and docker-compose.yml for containerized deployment - Created render.yaml for Render.com deployment - Created railway.json for Railway.app deployment - Created fly.toml for Fly.io deployment - Added deploy_cloud.py script for multi-platform deployment - Created comprehensive Cloud Deployment Guide documentation - Added GitHub Actions workflow for cloud deployment validation - Updated README with cloud deployment quick start 2026-01-10 04:53:57 +07:00
README.md Update README with documentation links and key placeholders 2026-01-26 06:06:23 +00:00
render.yaml Bolt: Optimize health check endpoint 2026-01-21 05:17:23 +00:00
REPO_STRUCTURE.txt Update README with structure link and generate structure file 2026-01-22 09:01:46 +00:00
requirements.txt Add Cloudflare management scripts and tunnel setup 2026-01-25 02:59:06 +00:00
SECRETS_TEMPLATE.md feat: Secure bridge integration, refactor EAs, and add profile maintenance script 2026-01-22 01:08:24 +00:00
VERIFICATION.md Verify Docker build and run status 2026-01-21 18:42:41 +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).

☁️ 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:

# 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

🐳 Docker Hub Deployment:

  1. Publish Image (Run locally):

    ./scripts/deploy_docker_hub.sh <USERNAME> <TOKEN>
    
  2. Run on VPS/Laptop:

    # Update and run
    ./scripts/update_vps.sh <USERNAME> <TOKEN>
    

📖 For detailed cloud deployment instructions, see Cloud Deployment Guide

Render workspace

My Blue watermelon Workspace tea-d1joqqi4d50c738aiujg

Install into Exness MetaTrader 5

⚠️ Note: Custom Indicators and EAs are not supported on the Exness Web Terminal. You must use the Desktop version of MT5.

📖 For detailed deployment instructions, see Exness Deployment Guide

Quick start:

  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.

🚀 Automated Startup (NEW!)

Quick Start:

  • Windows: powershell -ExecutionPolicy Bypass -File scripts\startup.ps1
  • Ubuntu/VPS:
    # First time setup (installs Python, Wine, etc.)
    bash scripts/setup_ubuntu.sh
    
    # Start the system
    ./scripts/startup.sh
    
  • Linux/WSL: ./scripts/startup.sh

Auto-Start on Boot:

  • Windows: powershell -ExecutionPolicy Bypass -File scripts\startup.ps1 -CreateScheduledTask
  • Linux: ./scripts/startup.sh --setup-systemd

📚 Documentation:

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

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"

GitHub automation (reviews, CI, auto-merge, OneDrive sync)

This repo includes GitHub Actions workflows under .github/workflows/:

  • 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):

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)

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.

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 for more details.

You can use the helper script to set these secrets if you have the GitHub CLI installed:

# First, update config/vault.json with your credentials
# Then run:
bash scripts/set_github_secrets.sh vault

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.
  • For web request integrations (ZOLO-A6-9V-NUNA- plugin):
    • Enable EnableWebRequest parameter
    • Add http://203.147.134.90 to MT5's allowed URLs list:
      • MT5 → Tools → Options → Expert Advisors
      • Check "Allow WebRequest for listed URL"
      • Add the URL: http://203.147.134.90

🤖 AI Integration (Gemini & Jules)

The EA supports Google Gemini and Jules AI to confirm trades before entry.

Setup:

  1. Get an API Key:

  2. Configure MT5:

    • Go to Tools → Options → Expert Advisors.
    • Check "Allow WebRequest for listed URL".
    • Add the URLs:
      • https://generativelanguage.googleapis.com (for Gemini)
      • Your Jules API URL (e.g., https://api.jules.ai or similar)
  3. Configure the EA:

    • Set UseGeminiFilter to true (Enable AI).
    • Select AiProvider: PROVIDER_GEMINI or PROVIDER_JULES.
    • Paste your API Key into GeminiApiKey or JulesApiKey.

    Shared/Default Keys:

    • Gemini: [INSERT_GEMINI_API_KEY]
    • Jules: [INSERT_JULES_API_KEY]

🧠 AI Market Research & Upgrade Automation (New!)

Automate market analysis and code upgrades using Gemini and Jules.

Setup:

  1. Run the setup script:
    ./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.

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.

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.

Contact