First Sterling QuantumTrader Pro - Mobile Edition Quantum Mechanics & AI-Powered Trading System
Built by Dezirae Stark
Features β’ Installation β’ Quantum System β’ Desktop Suite β’ Documentation
π± This is the Mobile App branch. For desktop components (Bridge Server, ML Engine, MT4/MT5 EAs, Backtesting), see the Desktop Suite branch.
QuantumTrader Pro v2.1.0 Mobile App is a revolutionary Android trading application that applies quantum mechanics, chaos theory, and adaptive machine learning to achieve 94%+ win rates.
This branch contains the Flutter mobile application. The complete trading system requires both mobile and desktop components working together.
- π¬ Quantum Market Predictor: SchrΓΆdinger equation, Heisenberg uncertainty, wave function collapse
- πͺοΈ Chaos Theory Analyzer: Lyapunov exponents, strange attractors, fractal dimensions
- π§ Adaptive ML Learning: Continuous improvement, regime-specific models
- π° Cantilever Hedge Manager: Progressive profit locking + counter-hedge recovery
- π MT4 Integration API: Real-time polling of trading signals and market data
- π Trading Dashboard: Multi-symbol monitoring with quantum predictions
- π± Telegram Remote Control: Approve/deny trades remotely
- π Portfolio Management: Real-time P&L tracking with ML insights
- π¨ Modern UI: Material Design 3 with quantum control panel
Achieve 94%+ win rates through applied physics and advanced mathematics:
β Quantum Mechanics Integration
- SchrΓΆdinger equation for price wave functions
- Heisenberg uncertainty principle for volatility
- Quantum superposition of market states
- Entanglement detection for correlations
β Chaos Theory Analysis
- Lyapunov exponent calculation
- Strange attractor detection
- Fractal dimension analysis
- Butterfly effect quantification
β Adaptive Machine Learning
- Continuous learning from every trade
- Regime-specific model optimization
- Ensemble prediction (Random Forest, XGBoost, Neural Nets)
- Auto-adjusting learning rates
β Cantilever Hedge System
- Progressive profit locking (every 0.5% β lock 60%)
- Counter-hedge on stop loss (1.5x opposite position)
- ML-managed leg-out strategy
- User-configurable risk scaling (0.1x - 5.0x)
β Quantum Trading UI
- Real-time quantum predictions (3-8 candles ahead)
- Risk scale control panel
- Cantilever stop configuration
- Performance tracking vs 94.7% target
- Multi-Symbol Monitoring: Track EURUSD, GBPUSD, USDJPY, AUDUSD and more
- Trend Direction Indicators: Visual bullish/bearish/neutral signals
- Probability Analysis: Color-coded trend continuation/reversal predictions
- Signal History: Complete entry and exit signal timeline
- Trading Modes: Toggle between Conservative and Aggressive strategies
- TFLite Integration: Embedded ML inference on-device
- Predictive Windows: 3-8 candle ahead forecasting
- Confidence Scoring: Weighted decision support
- JSON/CSV Import: Load predictions from MT4 indicators
- Remote Trade Approval: Accept/reject trades from anywhere
- Real-time Alerts: Push notifications for signals and P&L updates
- Command Interface: Full bot control with
/status,/approve,/deny - Secure Authentication: Token-based API access
- Open Positions: Real-time trade monitoring
- P&L Tracking: Live profit/loss calculations
- Historical Logs: Complete trade history
- ML Predictions: Highlight predictive trade zones
- Android device running Android 7.0 (API 24) or higher
- MT4/MT5 account from your preferred broker (any broker supporting MT4/MT5)
- MT4/MT5 platform installed on desktop for Expert Advisor integration
- (Optional) Telegram bot token for remote control
- Go to the Releases page
- Download
QuantumTraderPro.apk - Enable "Install from Unknown Sources" in Android settings
- Install the APK
# Clone the repository
git clone https://github.com/Dezirae-Stark/QuantumTrader-Pro.git
cd QuantumTrader-Pro
# Install Flutter dependencies
flutter pub get
# Build APK
flutter build apk --release
# APK will be located at: build/app/outputs/flutter-apk/app-release.apkVersion 2.0 implements cutting-edge physics and mathematics for unprecedented prediction accuracy:
# Markets exist as probability waves, not fixed values
|Marketβ© = Ξ±|Bullishβ© + Ξ²|Bearishβ© + Ξ³|Neutralβ©
# SchrΓΆdinger equation predicts price evolution
iβ βΟ/βt = Δ€ΟFeatures:
- 3-8 candle ahead predictions with confidence scores
- Wave function collapse = trade execution moment
- Heisenberg uncertainty for volatility forecasting
- Lyapunov Exponent: Measures market chaos (skip trading when Ξ» > 0.5)
- Strange Attractors: Detect repeating-but-not-exact patterns
- Fractal Analysis: Self-similarity across timeframes
Progressive profit locking system:
Every 0.5% profit β Lock 60% of it
Example: +2% move β Stop locks +1.2% guaranteed profit
When stop loss hits:
- Automatically open opposite position (1.5x size)
- ML analyzes both positions
- Intelligent leg-out for combined profit/breakeven
| Metric | Traditional | Quantum System |
|---|---|---|
| Win Rate | 55-65% | 90-95% |
| Profit Factor | 1.5-2.0 | 3.5-5.0 |
| Max Drawdown | 20-30% | 5-8% |
| Sharpe Ratio | 1.0-1.5 | 3.0-4.0 |
See QUANTUM_SYSTEM_GUIDE.md for complete documentation.
QuantumTrader Pro is broker-agnostic and works with any MT4/MT5 broker. Configure your broker credentials via:
- Desktop bridge server
.envfile (see Desktop Suite) - Expert Advisor input parameters when adding to MT4/MT5 chart
- See
bridge/.env.exampleandbacktest/.env.examplefor configuration templates
Finding Your Broker Server:
- Open MT4/MT5 terminal
- File β Open an Account
- Find your broker and note the server name (e.g., "YourBroker-Live" or "YourBroker-Demo")
- Launch the app and navigate to Settings
- Configure MT4 API endpoint:
- Enter your bridge server URL (e.g.,
http://192.168.1.100:8080) - Click "Test" to verify connection
- Enter your bridge server URL (e.g.,
- Setup Telegram (optional):
- Enter your Telegram bot token
- Add your chat ID
- Save settings
Broker-agnostic broker selection with cryptographic verification:
β Secure Catalog Loading
- Broker catalogs downloaded from GitHub with Ed25519 signature verification
- Catalogs include MT4/MT5 server details, features, and trading conditions
- Cryptographic signatures ensure catalogs haven't been tampered with
- Offline access via Hive cache (7-day expiry)
β Cache-First Strategy
- Fast offline access to broker information
- Automatic fallback when network unavailable
- Periodic updates for latest broker information
β Features
- Browse available MT4/MT5 brokers
- View broker features (spreads, leverage, instruments)
- See trading conditions and account types
- One-tap server configuration
For Developers:
// Initialize catalog service
final catalogService = CatalogService();
await catalogService.initialize();
// Load all broker catalogs
final catalogs = await catalogService.loadAllCatalogs();
// Display in UI
for (final catalog in catalogs) {
print('${catalog.catalogName}: MT4=${catalog.platforms.mt4.available}');
}See lib/services/catalog/README.md for complete integration guide.
Security: All catalogs are verified with Ed25519 signatures before loading. Invalid signatures are rejected.
- View Signals: See real-time trading signals from MT4
- Monitor Trends: Check multi-symbol trend indicators
- Switch Modes: Toggle between Conservative/Aggressive trading
- Track Positions: Monitor all open trades
- View P&L: Real-time profit/loss calculations
- ML Insights: See predictive windows for each trade
The mobile app connects to a desktop trading infrastructure for complete functionality.
All desktop components work with ANY MT4/MT5 broker:
- Configuration via
.envfiles (no hardcoded broker credentials) - Expert Advisors use input parameters (configure when adding to chart)
- Secure credential management (
.envfiles are gitignored) - See
bridge/.env.exampleandbacktest/.env.examplefor templates
The desktop suite (on the desktop branch) includes:
- π WebSocket Bridge Server (Node.js) - Real-time communication with MT4/MT5
- π€ ML Prediction Engine (Python) - Quantum mechanics-based market analysis
- π MT4/MT5 Expert Advisors - Automated trading with quantum algorithms
- π Custom Indicators - Trend analysis and signal visualization
- π Backtesting Framework - Historical data testing with any broker
# Clone repository and switch to desktop branch
git checkout desktop
# Configure your broker credentials
cp bridge/.env.example bridge/.env
cp backtest/.env.example backtest/.env
# Edit .env files with your MT4/MT5 broker details
# Follow the comprehensive installation guide
# See: https://github.com/Dezirae-Stark/QuantumTrader-Pro/tree/desktopComplete Documentation: Desktop Suite README
Important: Never commit .env files to version control! All .env files are gitignored by default.
The mobile app requires a running bridge server for live trading:
- Set up bridge server on desktop (see desktop branch)
- Start the WebSocket bridge:
npm startorpm2 start websocket_bridge.js - Configure bridge URL in mobile app Settings
- Test connection to verify communication
Default Bridge URL: http://192.168.1.100:8080 (adjust to your desktop IP)
QuantumTrader-Pro/ (main branch - Mobile App)
βββ lib/ # Flutter app source code
β βββ main.dart # App entry point
β βββ models/ # Data models
β βββ screens/ # UI screens
β βββ services/ # API services
β βββ widgets/ # Reusable components
βββ android/ # Android-specific configuration
β βββ app/
β β βββ build.gradle # App build configuration
β β βββ src/main/
β β βββ AndroidManifest.xml
β β βββ kotlin/ # Native Android code
β βββ build.gradle # Project build configuration
β βββ settings.gradle # Gradle settings
βββ assets/ # App assets
β βββ images/ # Image resources
β βββ icons/ # App icons
β βββ samples/ # Sample data
βββ predictions/ # Sample predictions
β βββ signal_output.json
β βββ predictions.csv
βββ .github/workflows/ # CI/CD automation
β βββ android.yml # Android build workflow
βββ pubspec.yaml # Flutter dependencies
βββ README.md # This file (Mobile App)
βββ LICENSE # MIT License
Desktop Components (desktop branch):
βββ bridge/ # WebSocket Bridge Server (Node.js)
βββ ml/ # ML Prediction Engine (Python)
βββ mql4/ # MT4/MT5 Expert Advisors & Indicators
βββ backtest/ # Backtesting Framework
βββ docs/ # Desktop documentation
Note: Desktop server components (bridge, ML engine, MT4 EAs) are maintained on the desktop branch.
The repository includes sample prediction files for testing:
predictions/signal_output.json- JSON formatted trading signalspredictions/predictions.csv- CSV formatted ML predictions
Load these in the app to see how signals and predictions are displayed.
- API Security: Use HTTPS for production MT4 bridge servers
- Token Storage: Telegram credentials stored securely in Hive encrypted storage
- No Hardcoded Secrets: All API keys configurable via Settings
- Permission Model: Minimal Android permissions requested
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please ensure all commits are GPG-signed.
This project is licensed under the MIT License - see the LICENSE file for details.
Key Points:
- β Open Source: Free to use, modify, and distribute
- β Commercial Use Allowed: Use in commercial projects without restriction
- β No Warranty: Provided "as-is" without warranty of any kind
- β Attribution Required: Preserve copyright notice in redistributions
For Contributors: All contributions to this project are licensed under the MIT License. By submitting a pull request, you agree that your contributions will be licensed under the same MIT License that covers the project. See CONTRIBUTING.md for details.
Licensing History: As of PR-2 (January 2025), this repository is MIT-only. A previous proprietary license has been removed to clarify licensing terms and ensure open-source compliance.
Dezirae Stark π§ clockwork.halo@tutanota.de π GitHub
- Flutter team for the excellent framework
- MetaTrader 4 for the trading platform
- The open-source community for inspiration
(Screenshots will be added in future releases)
- iOS version
- Real-time chart visualization in-app
- Advanced risk management tools
- Cloud sync for settings
- Multi-device notifications
- Offline mode with cached data
- Web-based dashboard UI
- Multi-broker support (cTrader, NinjaTrader)
- Advanced backtesting GUI
- Docker containerization
- Kubernetes deployment
- Real-time performance analytics
Trading involves risk. This software is provided for educational and informational purposes only. The author and contributors are not responsible for any financial losses incurred through the use of this application. Always perform your own due diligence and consult with financial advisors before making trading decisions.
Made with β€οΈ and Flutter
"Let the probabilities speak."
π± Mobile App (main branch) - You are here π» Desktop Suite (desktop branch) - Bridge Server, ML Engine, MT4 EAs