📚 ATRIN DADE PISHRO User Manual
AI-Powered Trading Strategy Generator
🚀 Getting Started
What is ATRIN DADE PISHRO?
ATRIN DADE PISHRO is an AI-powered trading strategy generator that uses genetic algorithms to discover profitable
trading strategies from your historical price data.
System Requirements
- Web Browser: Chrome, Firefox, Safari, or Edge (latest version)
- MetaTrader: MT4 or MT5 (for data export)
- License Key: Required for access
🔑 License Activation
Step 1: Obtain License Key
Purchase a license from:
Step 2: Activate License
- Open the application at: https://web.fxmathquant.com/login.html
- Enter your license key in the format:
XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
- Click "Activate License"
- Wait for validation (requires internet connection)
- You'll be redirected to the main application
Session Duration: Your session remains active until you logout or clear browser data. There
is no automatic logout.
📊 Exporting Data from MT4/MT5
Download Data Provider EA
Download the EA from the application:
- MT4:
ATRIN DADE PISHRO_DataExporter_MT4.ex4
- MT5:
ATRIN DADE PISHRO_DataExporter_MT5.ex5
For detailed step-by-step instructions, see the EA Setup Guide.
Export Historical Data
- Open a chart (e.g., XAUUSD H1)
- Drag the EA onto the chart
- Configure settings:
- Bars to Export: 10,000 (recommended)
- Remove Suffix: true
- Export Folder: ATRIN DADE PISHRO
- Click "Export to CSV" button
- Wait for completion message
- Find your file:
MQL4/Files/ATRIN DADE PISHRO/XAUUSD_H1.csv
Recommended Data
| Timeframe |
Bars |
Use Case |
| M15 |
10,000 |
Scalping strategies |
| H1 |
10,000 |
Intraday trading |
| H4 |
5,000 |
Swing trading |
| D1 |
3,000 |
Position trading |
📤 Uploading Data
- Click "Browse" or drag-and-drop your CSV file
- Select the file exported from MT4/MT5
- Wait for parsing (10,000 bars ≈ 2-3 seconds)
- Confirmation: "Data loaded successfully: X bars"
⚙️ Configuring Strategy Generation
Genetic Algorithm Settings
| Parameter |
Default |
Range |
Description |
| Population Size |
100 |
50-500 |
Number of strategies per generation |
| Generations |
50 |
10-200 |
Number of evolution cycles |
| Mutation Rate |
0.1 |
0.01-0.5 |
Probability of random changes |
| Crossover Rate |
0.7 |
0.3-0.9 |
Probability of combining strategies |
🔬 Walk-Forward Analysis
Walk-forward analysis validates strategies on out-of-sample data to detect overfitting and ensure real-world
performance.
What is Overfitting? A strategy that performs well on historical data but fails in live
trading due to being too closely fitted to past price patterns.
How It Works
- Data Splitting: Historical data is divided into training and testing periods
- Training Period: Strategy is optimized on this data (e.g., 70% of bars)
- Testing Period: Strategy is validated on unseen data (e.g., 30% of bars)
- Performance Comparison: Metrics are compared between training and testing
- Robustness Score: A score (0-100) indicates how well the strategy generalizes
Configuration
- Enable Walk-Forward Validation: Check this box to activate the feature
- Training Period: Adjust the slider (50-90%, default: 70%)
- Higher ratio = More data for training, less for validation
- Lower ratio = Less training data, more for validation
- Recommended: 70% for most cases
Understanding the Badges
Each strategy card displays a walk-forward badge showing its robustness:
| Badge |
Score Range |
Meaning |
Recommendation |
| ✓ ROBUST (Green) |
60-100 |
Strategy passed validation |
Safe to use for live trading |
| ⚠ OVERFITTED (Orange) |
0-59 |
Strategy failed validation |
Avoid - likely curve-fitted |
Robustness Score Interpretation
- 80-100: Excellent - Minimal degradation, high confidence
- 60-79: Good - Acceptable degradation, suitable for trading
- 40-59: Moderate - Concerning degradation, needs review
- 0-39: Poor - High overfitting risk, avoid
What Gets Measured
The robustness score is calculated based on degradation in:
- Profit Factor: How much profit factor drops in testing vs. training
- Win Rate: Percentage point decrease in win rate
- Max Drawdown: Increase in maximum drawdown
- Trade Count: Sufficient trades in testing period
Important: A strategy with excellent training performance but poor testing performance is
likely overfitted and should be avoided.
Best Practices
- Use at least 1,000 bars of data (minimum 300 for testing)
- Keep training ratio at 70% for balanced results
- Only trade strategies with robustness score ≥ 60
- Prefer strategies with scores above 80 for higher confidence
- If all strategies fail, try different data or settings
Impact on Strategy Generation
When walk-forward is enabled:
- Failed strategies: Receive 50% fitness penalty (less likely to be selected)
- Robust strategies: Receive up to 50% fitness bonus (prioritized)
- Result: GA naturally evolves toward robust, non-overfitted strategies
🎲 Monte Carlo Simulation
Monte Carlo simulation is a powerful risk analysis tool that tests strategy robustness by randomly shuffling
the order of trades thousands of times.
Why Use Monte Carlo? It reveals whether your strategy's performance is due to genuine edge
or just lucky trade sequencing. A robust strategy should show consistent positive returns across most
simulations.
How It Works
- Trade Extraction: All trades from the backtest are collected
- Random Shuffling: Trades are randomly reordered (Fisher-Yates algorithm)
- Equity Calculation: Account balance is recalculated for each shuffle
- Statistical Analysis: Results are analyzed across thousands of iterations
- Risk Assessment: Probability distributions and risk metrics are calculated
Configuration
| Parameter |
Default |
Range |
Description |
| Enable Monte Carlo |
Off |
On/Off |
Activate Monte Carlo analysis |
| Iterations |
1,000 |
100-10,000 |
Number of random shuffles |
| Risk of Ruin Threshold |
20% |
10-50% |
Loss threshold for RoR calculation |
Recommended Settings
- Quick Analysis: 1,000 iterations (1-2 seconds)
- Standard Analysis: 5,000 iterations (3-4 seconds)
- Thorough Analysis: 10,000 iterations (6-8 seconds)
Requirements
- Minimum 20 trades for meaningful results
- More trades = more accurate analysis
- Enable before generating strategies
Understanding the Results
When you click the "🎲 MC" button on a strategy card, a professional modal displays:
Risk Assessment Banner
| Risk Level |
RoR Range |
Meaning |
Recommendation |
| ✅ LOW RISK |
< 5% |
Excellent robustness |
Safe to trade |
| ⚠️ MODERATE RISK |
5-15% |
Acceptable variability |
Monitor closely |
| ❌ HIGH RISK |
> 15% |
High variance |
Reduce position size |
Key Metrics
- Expected Return: Average outcome across all simulations (more reliable than single
backtest)
- Risk of Ruin: Probability of losing threshold % of capital (lower is better)
- Standard Deviation: Measure of result variability (lower = more consistent)
- Percentiles: Distribution of outcomes (5th, 25th, 50th, 75th, 95th)
- Confidence Intervals: Range where 90% or 50% of outcomes fall
Equity Distribution Histogram
The histogram shows the distribution of final equity with color-coded bars:
- Red bars: Worst 5% of outcomes (below 5th percentile)
- Orange bars: Below average (5th-25th percentile)
- Green bars: Typical range (25th-75th percentile)
- Teal bars: Best outcomes (above 75th percentile)
What to Look For
- Normal distribution: Bell curve shape is ideal
- Narrow spread: Consistent results (safer)
- Positive 5th percentile: Even worst case is profitable
- Low RoR: Less than 10% is good, less than 5% is excellent
Warning Signs: Very wide distribution, negative 25th percentile, high risk of ruin (>
20%), or bimodal distribution (two peaks) indicate a risky strategy.
Best Practices
Before Trading:
- Run Monte Carlo on all strategies
- Only trade strategies with RoR < 10%
- Check 5th percentile is acceptable
- Verify normal distribution shape
Position Sizing:
- Low Risk (< 5% RoR): Standard position size
- Moderate Risk (5-15% RoR): Reduce position by 50%
- High Risk (> 15% RoR): Avoid or use micro lots
Ongoing Monitoring:
- Re-run Monte Carlo monthly with fresh data
- Compare live results to MC predictions
- Stop trading if results fall below 5th percentile
- Adjust position size based on actual variance
🎯 Generating Strategies
- Review your settings
- Click "Start Generation"
- Monitor progress (current generation, strategies found, best fitness)
- Wait for completion (30 seconds to 5 minutes)
📈 Viewing Results
Each strategy shows:
- Profit Factor: Ratio of gross profit to gross loss
- Win Rate: Percentage of winning trades
- Total Trades: Number of trades executed
- Net Profit: Total profit in currency
- Max Drawdown: Largest equity drop
Click "View Details" to see:
- Performance Metrics
- BUY/SELL Rules
- Equity Curve Chart
- Hourly Performance
- Complete Trade Statement
💾 Downloading Strategies
Available Formats
- MetaTrader 4 (.mq4) - For MT4 platform
- MetaTrader 5 (.mq5) - For MT5 platform
- cTrader (.cs) - For cTrader platform
- TradingView (Pine Script) - For TradingView
- HTML Report - Comprehensive performance report
- JSON Data - Raw strategy data
🐛 Troubleshooting
CSV Upload Issues
Error: "CSV must contain: time, open, high, low, close columns"
Solution: Ensure CSV has required columns. Column names can be lowercase or capitalized.
License Issues
Error: "Invalid license key"
Solution: Check key format (32 characters with dashes). Copy-paste from email.
Generation Issues
No strategies found
Solution: Relax criteria (lower Min Profit Factor, Win Rate). Increase population size and
generations.
📞 Contact Support
⚠️ Disclaimer: Past performance does not guarantee future results. Always test strategies
on demo account first. Use proper risk management.
© 2026 ATRIN DADE PISHRO. All rights reserved.