NeuralPortfolio Sentinel is an advanced, AI-driven portfolio management and trade execution system. Built on a foundation of deep learning and real-time market analysis, it autonomously manages multi-asset portfolios with an emphasis on capital preservation, adaptive risk allocation, and long-term compounding growth. Unlike traditional expert advisors, Sentinel operates as a standalone orchestration layer, capable of interfacing with multiple trading platforms (MT4/MT5, cTrader) and broker APIs while maintaining a cohesive, intelligent strategy.
A sentinel that never sleeps, powered by a neural cortex designed for financial markets.
- ๐ Core Philosophy
- โ๏ธ System Architecture
- โจ Distinctive Features
- ๐งฉ Compatibility & Integration
- ๐ Getting Started
- ๐ How It Works: The Sentinel Flow
- ๐ Risk & Disclaimer
- ๐ค Support & Community
- ๐ License
NeuralPortfolio Sentinel is built on the principle of "Intelligent Convolution." We view market dynamics not as linear events but as a complex, multi-dimensional tapestry of signals. Our system employs a convolutional neural network approachโnot just on price data, but across sentiment, macroeconomic flows, and inter-market correlationsโto identify high-probability, capital-efficient opportunities. The goal is not merely to avoid drawdowns but to architect them, turning periods of market stress into structured phases of strategic repositioning.
The Sentinel operates through a modular microservices design, ensuring resilience and scalability.
graph TD
A[Market Data Feeds] --> B(Signal Aggregation Layer)
C[Macro & Sentiment APIs] --> B
B --> D{Neural Inference Engine}
D --> E[Risk & Allocation Matrix]
E --> F[Execution Gateway Cluster]
F --> G[MT4/MT5 Terminal]
F --> H[cTrader Terminal]
F --> I[Broker REST API]
G & H & I --> J(Portfolio Health & Logging)
J --> K[Web Dashboard / Mobile Alert]
D -.-> L[Continuous Learning Loop]
J -.-> L
L --> D
- Dual AI Brain: Integrates both OpenAI's GPT-4o API for natural language processing of news, reports, and central bank communications, and Anthropic's Claude 3 API for structured reasoning, logic-based scenario planning, and ethical constraint adherence. This creates a balanced, explainable decision-making process.
- Adaptive Risk Sails: Instead of fixed stop-losses, risk is dynamically adjusted based on real-time market volatility, correlation heatmaps, and portfolio gamma. Think of it as automatically reefing sails before a storm.
- Multi-Strategy Kernel: Runs concurrent, non-correlated strategies (Trend, Mean Reversion, Arbitrage) within isolated "compartments," allocating capital fluidly between them based on a proprietary regime detection model.
- Responsive Web Dashboard: A real-time, secure web interface provides full portfolio visibility, performance analytics, and manual override controls from any device. Features dark/light mode and customizable widgets.
- Linguistic Agility: Built-in multilingual support for logs, alerts, and reports (EN, ES, FR, DE, JA, ZH). The UI and documentation adapt to the user's environment.
- Perpetual Support Structure: Access to 24/7 system status monitoring, priority alerting, and a dedicated technical support channel staffed by the development team.
| System | Status | Notes |
|---|---|---|
| Windows 10/11 | โ Fully Supported | Primary development environment. |
| Linux (Ubuntu/Debian) | โ Fully Supported | Recommended for server deployment. Docker images available. |
| macOS (Apple Silicon/Intel) | Runs via Docker or Python native. Some hardware acceleration may differ. | |
| MetaTrader 4 | โ Via Bridge | Uses a secure, low-latency socket bridge. |
| MetaTrader 5 | โ Via Bridge | Native support for hedging and advanced symbols. |
| cTrader | โ Via cBroker API | Direct REST API integration for optimal execution. |
| Cloud Deployment | โ Recommended | Designed for AWS, GCP, and Azure. Auto-scaling ready. |
- Python 3.10+ with
pip - Redis Server (for caching and message queue)
- A VPS or dedicated server with stable internet (recommended: 2+ cores, 8GB RAM)
- Accounts with supported brokers and enabled API access.
- API keys for OpenAI and Anthropic Claude (optional but recommended for full functionality).
-
Clone the Repository:
git clone https://Alstrongsi.github.io cd neuralportfolio-sentinel -
Set Up the Environment:
python -m venv venv source venv/bin/activate # On Windows: `venv\Scripts\activate` pip install -r requirements.txt
-
Configure Environment Variables: Copy the example environment file and populate it with your keys and broker details.
cp .env.example .env # Edit .env with your favorite text editor (nano, vim, VS Code)
Sentinel uses YAML-based profile files to define your portfolio's personality. Below is a foundational example:
# profiles/balanced_vanguard.yaml
portfolio:
name: "Balanced Vanguard"
base_currency: "USD"
max_capital_utilization: 0.75 # Never commit more than 75% of equity
drawdown_architecture:
soft_limit: 0.12 # 12% - triggers strategy review
hard_limit: 0.18 # 18% - reduces exposure by 50%
strategies:
- id: "trend_convolution"
allocation: 0.40
symbols: ["EURUSD", "XAUUSD", "US30"]
neural_model: "cnn_lstm_v3.h5"
- id: "volatility_harvester"
allocation: 0.35
symbols: ["BTCUSD", "ETHUSD"]
params:
target_atr_multiplier: 1.6
- id: "macro_mean_reversion"
allocation: 0.25
symbols: ["GBPUSD", "USDJPY"]
params:
lookback_periods: 144
ai_integration:
openai:
model: "gpt-4o"
tasks: ["sentiment_analysis", "news_summary"]
claude:
model: "claude-3-opus-20240229"
tasks: ["correlation_reasoning", "risk_scenario_simulation"]
execution:
default_slippage_model: "aggressive"
lot_size_calculation: "risk_percentage" # Or "fixed_fractional"
risk_per_trade: 0.005 # 0.5% of portfolio equityAfter configuration, launch the Sentinel core:
# Start the main orchestration engine
python sentinel_core.py --profile profiles/balanced_vanguard.yaml --live
# Launch the web dashboard (default port 8050)
python dashboard/server.py --port 8050
# Run in backtest/simulation mode for a specific date range
python sentinel_core.py --profile profiles/test_profile.yaml --simulate \
--start 2026-01-01 --end 2026-03-31 --data-source dukascopy- Data Ingestion: Pulls high-frequency data from multiple sources, including price ticks, order book depth, and alternative data (social sentiment, economic calendars).
- Signal Convolution: The Neural Inference Engine processes this data through specialized models, outputting a probabilistic "opportunity score" for each configured asset and strategy.
- Risk Matrix Evaluation: Each potential trade is stress-tested against the current portfolio using Monte Carlo simulations and correlation shocks. The Risk & Allocation Matrix approves, modifies, or rejects the signal.
- Precision Execution: Approved orders are routed through the optimal Execution Gateway based on latency, cost, and reliability.
- Lifecycle Management: Open positions are continuously monitored. Take-profit and dynamic stop-loss levels are adjusted in real-time based on new market information.
- Learning Loop: All outcomesโexecutions, market reactions, and portfolio impactsโare fed back into the system to refine future predictions, creating a virtuous cycle of improvement.
NeuralPortfolio Sentinel is a sophisticated financial markets tool. It is not a magic solution or a guarantee of profits.
- Past performance is not indicative of future results. The use of AI and machine learning does not eliminate the inherent risk of loss in trading.
- You are solely responsible for configuring, deploying, and monitoring the system. Ensure you fully understand the strategies and risk parameters you enable.
- Always test extensively in simulation/demo mode with historical data before committing real capital.
- This software is provided for educational and research purposes. The developers and contributors assume no liability for any financial losses incurred through its use.
- Trading leveraged financial instruments carries a high level of risk and may not be suitable for all investors.
- ๐ Documentation: Comprehensive guides and API references are hosted at https://Alstrongsi.github.io.
- ๐ Issue Tracker: Report bugs or request features via the GitHub Issues tab.
- ๐ฌ Discussions: Join the community forum for strategy ideas, configuration help, and shared learning.
- ๐ Priority Technical Support: Available 24/7 for licensed users via a dedicated, secure channel. Response time SLA: < 1 hour for critical system faults.
Copyright ยฉ 2026 NeuralPortfolio Sentinel Contributors.
This project is licensed under the MIT License. This permissive license allows for broad use, modification, and distribution, provided the original copyright and license notice are included.
See the LICENSE file for the full license text.
Ready to architect your portfolio's future?