AiDataGenByLeo/README.md
2026-04-14 22:18:57 +00:00

3.7 KiB

AiDataGenByLeo Logo

Build AI-powered trading systems with automatic feature generation, DSL-based configuration, and 85+ built-in features.


Main Features

DSL-Based Feature Definition

Define features declaratively without writing repetitive code:

@ New vector
{
  [Rsi_Valor][](Period=14|Applied=0)
  [Vidya_Tendencia][](CmoPeriod=9|EmaPeriod=12)
  [News_HasCpiUsaToday][]()
}

Automatic Data Generation

// Initialize feature generator
m_generator.Init("MyStrategy", features_dsl);

// Generate feature vector on each bar
m_generator.ObtenerDataEnVector(vector, curr_time);

Python Training Pipeline

# Load generated data
df = pd.read_csv('data.csv')

# Train classifier
model = train_classifier(df, selected_features)

# Export to ONNX
export_model(model, 'model.onnx')

Real-Time AI Predictions

// In your EA
if(m_predictor.CheckOpenOrder(trade_config)) {
   // AI approved - execute trade
   OpenPosition(type, entry, sl, tp);
}

EasySb - ICT EA with AI


Repository Structure

AiDataGenByLeo/
├── Extra/         # Library to measure correlations (with integrated plot)
├── GenericData/   # Classifier, DSL Parser, Feature Factory
├── Py/            # Python script for model training
└── Images/        # Repo banner

License

Read Full License

By downloading or using this repository, you accept the license.


Requirements

  • For python see the requirements.txt
  • For project see the dependencies.json

Installation

  • Clone the Git repository into shared projects via CMD
  • Contact me on MQL5 (user: nique_372) to be added as a collaborator with your MQL5 nickname (read-only access), which will make the repository automatically appear in your Shared Projects folder
  • Or fork the repository

Quick Start

# 1. Generate training data
# Run EA in training mode
# Data will be saved to: TerminalPath/Files/Common/EasySbAi/data.csv

# 2. Train model
# Execute the Python script
# 3 files will be generated in TerminalPath/Files/Common/EasySbAi/
# Copy the ONNX model and scaler file to:
# AiDataGenByLeo/Examples/EAs/TTrades/EasySb/res/

# 3. Run the EA
# Execute Ea.mq5 with the training parameter set to false

Disclaimer

Trading involves substantial risk of loss.

  • This software is a technical tool, not financial advice
  • Past performance does not guarantee future results
  • You are solely responsible for your trading decisions
  • Always test thoroughly before deploying with real capital
  • Use appropriate risk management in all operations

The authors assume no liability for trading losses, system failures, or any damages arising from the use of this software.


Contact and Support


Copyright © 2026 Nique-Leo. All rights reserved.