605faf5310
Add cluster audit pipeline, united EA updates, brochure generators, and publication hygiene (gitignore, MT5 path desensitization, pre-upload scan). Remove tracked reports, models, and binary artifacts from the repo. Co-authored-by: Cursor <cursoragent@cursor.com>
Algorithmic Trading Strategies: LaTeX Paper
This directory contains a comprehensive LaTeX paper documenting all MQL5 Expert Advisors and TradingView Pine Script strategies.
Structure
paper/
├── main.tex # Main LaTeX document
├── chapters/
│ ├── introduction.tex # Introduction and overview
│ ├── mql5_basics.tex # MQL5 programming fundamentals
│ ├── algorithms.tex # Detailed algorithm analysis
│ ├── tradingview.tex # TradingView Pine Script strategies
│ ├── profitability.tex # Why strategies make money
│ └── conclusion.tex # Conclusion and future directions
└── README.md # This file
Compilation
Prerequisites
You need a LaTeX distribution installed:
- Windows: MiKTeX or TeX Live
- macOS: MacTeX
- Linux: TeX Live
Compiling the Document
Using pdflatex (Recommended)
cd paper
pdflatex main.tex
pdflatex main.tex # Run twice for references
Using Overleaf (Online)
- Upload all files to Overleaf
- Set main.tex as the main document
- Click "Compile"
Using VS Code with LaTeX Workshop
- Install LaTeX Workshop extension
- Open main.tex
- Press Ctrl+Alt+B (or Cmd+Option+B on Mac) to build
Build Process
The document requires two compilation passes:
- First pass: Generates content and collects references
- Second pass: Resolves cross-references and table of contents
Contents
The paper covers:
- Introduction: Overview of algorithmic trading and strategy categories
- MQL5 Basics: Programming fundamentals, indicator management, trading operations
- Algorithms: Detailed analysis of 13+ Expert Advisors:
- RSI Reversal strategies (AUD/USD, EUR/USD)
- RSI Scalping strategies (XAU/USD, Equities)
- EMA-based strategies
- Darvas Box breakout system
- Multi-strategy systems
- TradingView: Pine Script implementation analysis
- Profitability: Theoretical foundations and why strategies work
- Conclusion: Summary and future directions
Features
- Code Listings: Syntax-highlighted MQL5 and Pine Script code
- Mathematical Formulations: Equations for indicators and metrics
- Tables: Strategy comparisons and performance metrics
- Cross-References: Internal links between sections
- Bibliography: References to key trading literature
Customization
Adding New Algorithms
- Add algorithm description to
chapters/algorithms.tex - Include code examples using
\lstlistingenvironment - Update strategy comparison table if needed
Modifying Style
Edit main.tex to customize:
- Document class options
- Page margins
- Code listing styles
- Bibliography style
Troubleshooting
Missing Packages
If compilation fails with "Package not found" errors:
- Install missing packages via your LaTeX distribution's package manager
- Or use
tlmgr(TeX Live):tlmgr install <package-name>
Reference Errors
If references don't resolve:
- Run
pdflatextwice - Or use
latexmk -pdf main.texfor automatic multiple passes
Code Listing Issues
If code listings don't appear:
- Ensure
listingspackage is installed - Check that code blocks are properly formatted
- Verify file paths in
\lstinputlistingcommands (if used)
Output
The compiled document will be:
- main.pdf: Complete paper with all sections
- Approximately 50-60 pages (depending on content)
- Professional academic formatting
- Ready for printing or digital distribution
License
This paper documents algorithms from the profitable-expert-advisor repository. Refer to the main repository for licensing information.
Contributing
To improve the paper:
- Edit relevant
.texfiles - Maintain consistent formatting
- Test compilation before submitting
- Update this README if structure changes
Contact
For questions about the algorithms, refer to the main repository documentation.