Optimization of Algorithmic Trading and Portfolio Management
Keywords:
Optmization, Genetic Algorithm, Algorithmic Trading, Financial MarketAbstract
In algorithmic trading, computer programs are used to execute trades based on predefined logic, although their success depends critically on the choice of parameters. This study bridges the gap between theoretical models and practical trading by optimizing two technical indicators, Relative Strength Index (RSI) and Exponential Moving Average (EMA), using exhaustive grid search on historical EURUSD and GBPUSD data spanning January 2023 to June 2025. The optimization results show that optimal parameters vary across currency pairs. In addition, the study expands the optimization framework by incorporating position sizing and risk constraints to further bridge the gap between academic models and real-world trading activities. Statistical validation shows that the optimal strategies have significant mean returns (p < 0.001), while the confidence intervals of the Sharpe ratios do not include zero. These in-sample significance results are interpreted cautiously because the strategy selection process involved multiple parameter configurations.