<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="nlm-ta">reapress</journal-id>
      <journal-id journal-id-type="publisher-id">null</journal-id>
      <journal-title>reapress</journal-title><issn pub-type="ppub">3042-2248</issn><issn pub-type="epub">3042-2248</issn><publisher>
      	<publisher-name>reapress</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">https://doi.org/10.48313/maa.v2i3.48</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Article</subject>
        </subj-group>
        <subj-group><subject>Portfolio optimization, Machine learning, Deep reinforcement learning, Tehran stock exchange, Random forest, XGBoost, Risk management</subject></subj-group>
      </article-categories>
      <title-group>
        <article-title>Dynamic Portfolio Optimization in the Tehran Stock Exchange Using Machine Learning and Deep Earning Algorithms</article-title><subtitle>Dynamic Portfolio Optimization in the Tehran Stock Exchange Using Machine Learning and Deep Earning Algorithms</subtitle></title-group>
      <contrib-group><contrib contrib-type="author">
	<name name-style="western">
	<surname>Pira </surname>
		<given-names>Hossein</given-names>
	</name>
	<aff>Department of Computer Engineering, Ayandegan University, Tonkabon, Iran.</aff>
	</contrib></contrib-group>		
      <pub-date pub-type="ppub">
        <month>09</month>
        <year>2025</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>12</day>
        <month>09</month>
        <year>2025</year>
      </pub-date>
      <volume>3</volume>
      <issue>2</issue>
      <permissions>
        <copyright-statement>© 2025 reapress</copyright-statement>
        <copyright-year>2025</copyright-year>
        <license license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/2.5/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</p></license>
      </permissions>
      <related-article related-article-type="companion" vol="2" page="e235" id="RA1" ext-link-type="pmc">
			<article-title>Dynamic Portfolio Optimization in the Tehran Stock Exchange Using Machine Learning and Deep Earning Algorithms</article-title>
      </related-article>
	  <abstract abstract-type="toc">
		<p>
			Classical optimization models are applicable for portfolio optimization when capital market constraints and portfolio construction criteria are limited. However, given the existing complexities in capital markets, intricate relationships, and non-linear issues, classical models exhibit significant weaknesses and limitations. To address and solve such problems, computers and Machine Learning (ML)-based models have emerged to assist human decision-makers. Recently, techniques based on hybrid ML models have been designed, demonstrating robust capabilities in handling non-linear problems. This paper proposes a hybrid ML model for portfolio optimization based on specific historical data in the capital market. For this purpose, daily returns from 20 high-liquidity companies listed on the Tehran Stock Exchange (TSE) over a specific timeframe were utilized. The proposed framework integrates Random Forest (RF) for feature importance analysis and Extreme Gradient Boosting (XGBoost) for return prediction, combined with a Deep Reinforcement Learning (DRL) agent using Proximal Policy Optimization (PPO) for dynamic asset allocation. Portfolio performance is evaluated across four distinct risk metrics: Variance, Mean Absolute Deviation (MAD), Semi-Variance, and Conditional Value at Risk (CVaR). Based on evaluations of portfolio return, risk indices, and other key indicators, the results of this research indicate that the performance of the proposed ML model is at an optimal and desirable level.
		</p>
		</abstract>
    </article-meta>
  </front>
  <body></body>
  <back>
    <ack>
      <p>null</p>
    </ack>
  </back>
</article>