TSNReposIndex/Conventions/MqlFiles.md

52 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2026-04-23 21:40:14 +00:00
# File Conventions
2026-04-23 21:35:20 +00:00
2026-04-23 21:40:14 +00:00
This MD details how files should be named, project structure, etc.
## File Naming
- Type: PascalCase, examples:
2026-04-23 21:35:20 +00:00
```
Core.mqh
Main.mqh
```
2026-04-23 21:40:14 +00:00
This applies only to actual MQL5 code files. In case other ecosystems are combined (e.g., web/Python), naming conventions from those ecosystems may be accepted.
2026-04-23 21:35:20 +00:00
2026-04-23 21:40:14 +00:00
## Project Structure for Libraries
For projects that are modules/libraries, the following structure is recommended:
2026-04-23 21:35:20 +00:00
```
RepoName/
2026-04-23 21:40:14 +00:00
├── # Note: Folders for workflows, etc. may be included here
├── Src/ # Actual code of the repo
├── Validation/ # Folder for final repo tests (for CI)
└── Images/ # Images to be used in the wiki/MDs/banner of the repo
2026-04-23 21:35:20 +00:00
```
2026-04-23 21:40:14 +00:00
## Project Structure for EAs (Non-AI)
For projects that are modules/libraries, the following structure is recommended:
2026-04-23 21:35:20 +00:00
```
RepoName/
2026-04-23 21:40:14 +00:00
├── # Note: Folders for workflows, etc. may be included here
├── Core/ # Main + Defines + EAName + Global + (Functions if applicable)
├── Validation/ # Folder for final EA tests (for CI)
├── Resrc/ # Embedded resources (optional, only if applicable)
└── Images/ # Images to be used in the wiki/MDs/banner of the repo
2026-04-23 21:35:20 +00:00
```
2026-04-23 21:40:14 +00:00
## Project Structure for EAs Implementing AI (AiDataGenByLeo Convention)
2026-04-23 21:35:20 +00:00
2026-04-23 21:40:14 +00:00
For projects that are modules/libraries, the following structure is recommended:
2026-04-23 21:35:20 +00:00
2026-04-23 21:40:14 +00:00
```
RepoName/
├── # Note: Folders for workflows, etc. may be included here
├── AiAd/ # Folder for prediction classes
├── Models/ # Integration of specific ONNX models
├── Core/ # Main + Defines + EAName + Global + (Functions if applicable)
├── Resrc/ # Embedded resources of the EA
├── Validation/ # Folder for final EA tests (for CI)
└── Images/ # Images to be used in the wiki/MDs/banner of the repo
```