{'fraction_non_alphanumeric': 0.02448352142776799, 'fraction_numerical': 0.015110044617749615, 'mean_word_length': 4.808362369337979, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Building an efficient portfolio by using the weighted moving average in the light of the global pandemic (COVID19) (An applied study in the Iraq stock market)

The research aims to study how to build an efficient portfolio by using the weighted moving average in the light of the global pandemic and compare it with the efficient portfolio for the previous period before the global pandemic. The rapid spread of Corona virus (COVID-19) is having major impacts on the financial markets around the world. However, the global pandemic caused a great risk, which led the investors to suffer huge losses in a very short period of time, in addition, to the global Covid-19 pandemic, the economic recession and the drop in oil prices led to a drop in the share prices of companies, as well as most of the companies listed in the Iraq Stock Market (Iraq Stock Exchange), trading in their shares decreased after the appearance of the first case in Iraq in 25/2/2019. The weighted moving average is one of the technical analysis tools, and this technical and mathematical tool has been used to build a portfolio consists of (24 companies). The first ten companies that have the highest weighted moving average have been selected and the research period is divided into the period before the global pandemic which started from 25/2/2019 to 24/2/2020 and the concurrent period of the global pandemic from 25/2/2020 to 2/24/2021 and the researcher used the statistical program [Microsoft Excel 10]. It has been concluded from the research that the Sharpe ratio for the technical portfolio for the concurrent period of the global pandemic was higher than the Sharpe ratio for the previous technical portfolio before the global pandemic, although the Sharpe ratio for both portfolios is negative, meaning that the returns of the portfolio are less than the risk-free return, but the Sharpe ratio for the technical portfolio for the concurrent period is better than the technical portfolio for the previous period, which confirms that the decrease in the number of trading sessions and the volume of trading have affected the performance of the investment portfolio, the smaller the number of trading volume, the better the performance of the portfolio. The researcher recommends with using other technical and mathematical tools to build an efficient investment portfolio in the light of the global pandemic.


Introduction
On 25, February, 2020, the Iraq authorities in the city of Al-Najaf announced the first infection with the Corona virus, and this virus is considered as a global epidemic. The number of confirmed infections has increased and the number of infections has continued to rise for more than 170 affected countries. The rapid spread of this disease has great economic effects. Therefore, since many countries adopt strict quarantine policies, their economic activities are greatly limited, and the damages caused by the global pandemic are mass unemployment and failure of business and industrial works. The global pandemic has affected the countries of the world in general and Iraq in particular [1]. The selection of an efficient investment portfolio is an important academic topic for several years, as well as the large number of studies on this subject. The problem of this research lies in the fact that the returns on shares of companies which are listed in the Iraq Stock Exchange have negative values, i.e., low returns with high risks, so the importance of the research lies in studying how to build an efficient investment portfolio by using the weighted moving average. As usual when a devastating shock (e.g.,  hits the financial and economic systems the way they are now. This calls into a question about the appropriateness of the current theories and hypotheses [2][3][4]. In this spirit, we re-search for a hypothesis that an efficient investment portfolio can be built by using mathematical technical analysis tools in light of the global pandemic.

Problem
The companies listed on the Iraq Stock Exchange have achieved low returns due to their high risk. The companies listed in the Iraq Stock Exchange have been affected by the global pandemic, and Iraq has faced financial pressures as a result of the worsening political situations, besides the black cloud of Corona, whose effects have reverberated on all economies of the world, in addition to the factor of the decline in oil prices, which is considered as the main source of the country. Therefore, the research seeks to answer the following questions: A-Is it possible to build an efficient investment portfolio by using the weighted moving average indicator for the previous period before the global pandemic? B-Is it possible to build an efficient investment portfolio by using the weighted moving average indicator for the concurrent period of the global pandemic?

Hypotheses
Through the problem of the research, the hypotheses of the research can be written in the following form: A-It is not possible to build an efficient investment portfolio by using the weighted moving average indicator for the previous period before the global pandemic. B-It is not possible to build an efficient investment portfolio by using the weighted moving average index for the concurrent period of the global pandemic.

Important of the research
A-The importance of the research stems from the use of one of the mathematical technical analysis tools in building their efficient investment portfolios in light of the global pandemic. B-Comparing the evaluation of the performance of the investment portfolio which is built in the period preceding the global pandemic and the concurrent period of the global pandemic. C-The possibility of knowing the impact of the decrease in the number of trading sessions in choosing shares to build the investment portfolio. The shares of the companies that have their high views were selected from among the companies listed in the Iraq Stock Exchange, with the exclusion of the companies that do not have views during the research period.

Objectives of the research
A-Studying how to build an efficient portfolio by using the weighted moving average in light of the global pandemic. B-Contribute to providing an intellectual and theoretical framework for technical analysis and the investment portfolio. C-The current research aims to arrange stocks and choose the shares of the highest companies through one of the mathematical technical analysis tools, specifically the weighted moving indicator. D-Making a comparison between the portfolios that were built during the concurrent period of the global pandemic and the period before it.

The community and the sample of the research
The community of the research includes all the companies which were listed in the Iraq Stock Exchange for the seven sectors, namely, (banks, insurance, investment, services, industry, hotels, tourism, agriculture), which amounted to 117 companies. The sample of the research was selected from companies that have more than 100 views. Therefore, the sample of the research consists of 24 companies, so the research period was represented by the previous and concurrent periods of the global pandemic. A-The previous period for the global pandemic was from 25/2/2019 to 24/2/2020. B-The concurrent period of the global pandemic was from 25/2/2020 to 24/2/2021. It was used in the research: A-The daily closing prices of all shares of the companies listed on the Iraq Stock Exchange. B-The annual risk-free rate of return.

The indicators
A-Arranging the stocks of the companies through one of the technical analysis tools specifically (the weighted moving indicator) and ranking the companies in descending order and choosing the top ten companies through the following equation [5]. The Weighted Moving Average = [ (1× Day 1 closing price) + (2 × Day 2 closing price) + (3 × Day 3 closing price) + (4 × Day 4 closing price) + (5 × Day 5 closing price)] ÷ total weighted Moving Average of Closing pric . [6] by using the following equation Calculating returns of the stocks -B Rᵢ t = LN (P t ) -LN (P t -1) Rᵢ t = return of the stock P t = the current closing price (P t -1= Previous closing price LN = the natural logarithm C-Calculating the risks of each stock through the following equation [7]. σ²i = (Sstock return -Average Return) ² / n σ²i = standard deviation Return of the Stock Average Return of the Stock N = Number of the Views D-Calculating the return of the portfolio, noting that the return of the portfolio was calculated under the equal weights by using the following equation [8]. r p = Return of the portfolio W = Weight of the Stock Rᵢ = Average of the Return of the Stock of the Companies E-Calculating the risk of the portfolio, noting that the risk of the portfolio was calculated under the equal weights by using the following equation [9]. X = Weight of the Stock σ j = The Standard Deviation of the returns of the j Stock σd = The Standard Deviation of the returns of the k Stock σ jk = The Covariance between the Stocks k, j σ p = risk of the portfolio F-Calculating the ratio of Sharpe to evaluate the performance of the investment portfolio by using the following equation [10]. S P = Ratio of the Sharpe r p = Return of the portfolio r f = Average of the risk-free return σ p = Risk of the portfolio

Technical analysis
Technical analysis is a search in the recurring patterns of stock prices to predict future prices, where most technical analysts rely on price charts and trading volume [11,12]. So, technicians are only concerned with the movement of prices in the financial markets, and technical analysis only studies supply and demand in the market, but it must continue in the future, i.e. technical analysis tries to understand and determine market behavior by studying the market itself, so understanding the benefits of technical analysis will give a set New tools that can be the best trader or investor [13,14] Technical analysts are called graphic lists because they study the records or charts of past stock prices to obtain recurring patterns that they can exploit to make profits [15]. Technical analysis relies heavily on the study of the past patterns, supply and demand of the stocks, psychology (behavioral finance), and the use of certain mechanical rules. These rules include [16].
• Using a moving average of the price of the stock over time (often 20, 40, or 200 days), trying to determine when a stock is oversold due to an upward correction (or vice versa).
• Studying the number of the daily rises and falls in the prices and the number of the stocks traded on that day, and such a rise in the price and volume indicates an increase in the investors' benefits.
• Determining areas of support, the prices at which investors will buy more stocks (and the areas of resistance, the prices at which investors will sell). Technical analysis widely uses different mathematical indicators or tools to show different aspects of the price, such as indicators that measure momentum, or the rate of change in the price, and these tools are called technical indicators [17]. Among these indicators is the moving average, which is the most used technical tool and is applied by technical analysts. The moving average is one of the easiest and widely used indicators, as it is designed to know the current trend and know what it will take from the trend in the future, and one of its types is the weighted moving average [18][19][20]. The weighted moving average has been applied to time series data to smooth out irregular changes or fluctuations in the data, and thus for the technical analyst to identify the price patterns more easily. It is used as a means of calculating short-term forecasts for time series [21,22], and the weighted moving average indicator is calculated by giving different weights to the prices of daily correlations collected for a certain period and the weight is given to the highest prices of the last closing and thus can reflect the movement of time series efficiently in the prediction models [23]. Thus, the reason behind giving the highest weight to the last closing prices is that the movement of the last closing prices is the best indicator of the future movement [24]. The weighted moving average indicator was used through its ability to arrange the companies in descending order and to choose the top ten first companies in building the investment portfolio.

The investment portfolio
In the past and before the appearance of modern MPT theory, investment was related to returns only and not to risk [25]. John Burr Williams mentioned in his book 'The Theory of Investment Value' in 1938 that the value of an investment is the present value of the dividend of the profits of the stock which are of great importance to the investor because it is the value that cannot be bought or owned without the investor taking the risk [25]. However, perhaps the intent of the famous saying which states (Do not put all the eggs in one basket) is to distribute the investor's risks on his investments, so this approach is called the naive approach, or the random approach based on the number. Thus, the choice of securities in the portfolio was based on the intuition, and instinct, and not the choice of securities intentionally [26], but in 1952 Markowitz's entry came, which is the pioneering basis for what is known as the modern portfolio theory, where he developed portfolio theory through his article, which was published for the first time in the Financial Journal, which was entitled (Portfolio Selection: Portfolio Selection: Efficient Diversification [27]. Although Markowitz laid the foundation for the modern conservative theory, this approach is rarely used in practical application because it requires a large number of inputs and its use leads to the consumption of effort, time and cost [28], and on this basis, Tobin in 1958 simplified the number of Markowitz entries by adding a risk-free asset, that is, investors in the market will keep the risk-free assets in the market. Their investment terms, that is, their portfolio will consist of two parts, one part carries risk, such as stocks, and the other part is risk-free, such as treasury bonds [27] and the later development in 1964, when sharp contributed to the development of modern portfolio theory by replacing the standard deviation with the beta coefficient. This means from unsystematic risk through portfolio diversification and valuation of securities as a function of systemic risk [29]. Sharp was awarded the Nobel Prize in Economics for his contribution to the development of investment portfolio theory through the capital asset pricing model [30] (CAPM) The Sharp Capital Asset Pricing Model (CAPM) is based on linking the risks that are measured by the beta coefficient to the expected rate of return or (the required rate of return on the security [31], then the (CAPM) is a fixed model Linear, one-factor, assumes that the opportunity cost of equity is determined by the level of the company of exposure to financial market risks (measured by a beta coefficient) and that the basic assumption of the pricing model is For capital assets, the cost of equity is affected by risk factors that vary with sources of systemic risk, and therefore not by the individual risks of each company [32]. Later on, started Sharp another development known with the name as the single indicator model (the market model) [33]. Sharp's single-indicator model is based on portfolio construction on the assumption that stock prices move due to a common response to market changes, and that according to the single-index model, the market return is taken as an indicator of the macroeconomic factor [28]. Sharp has simplified the joint covariance matrix for Markowitz through the single indicator model, assuming that the joint movement between stock returns is due to the movement of the market index [33]. In 1976, Rose developed the (CAPM) Capital Asset Pricing Model. The model was called the Arbitrage Pricing Theory (APT) [34], Rose relied on many factors such as (risk premium, company size, market value, inflation), in addition to the market return, which affects the return and risk of the security [35,36]. The investment portfolio is intended as a composite tool with at least two different assets and that the investor who owns investments can use them optimally, (i.e.,) the investor tries to achieve the highest return at a certain level of risk, or achieve the lowest risk at a certain level of return and this can be achieved by intentionally choosing assets when building an investment portfolio [37]. The investment portfolio includes a set of investment tools that achieve the best exchange between the expected return and risk, and the greater the volatility of the investment tools, the greater the potential risk, and therefore the expected rate of return will increase, so it is necessary to limit the volatility of investment tools [38]. Through what have been mentioned earlier, it can be said that the investment portfolio includes a group of financial instruments such as stocks, bonds, treasury bonds, cash, certificates of deposit, commodities, real estate and other investment tools, meaning that the investment portfolio consists of two parts, the first part includes risky assets, while the other part includes risk-free assets and that the objective The investor from the investment portfolio is to diversify his investments in order to achieve the trade-off between return and risk]04 ,93[ .

Arranging (ranking) the companies according to the weighted moving average indicator for the period prior to the global pandemic
When building an efficient investment portfolio by using one of the technical analysis tools, which is the weighted moving average indicator, where the weighted moving average is calculated based on the weighted moving average for the inputs for a specific period of time with the giving bigger weight to the last closing prices. This is done by multiplying the weight factor by the total closing price for a certain group and then summarizing the resulting values, so this indicator was applied to all companies listed in the Iraq Stock Exchange. The companies that have more than (100 views) were selected, amounting to 24 companies, with the exclusion of the companies that do not have daily data during the research period. The weighted moving indicator has reached as in Table (1) for the companies that are listed in the Iraq Stock Exchange and included in the construction of the portfolio, and that the companies are arranged in descending order, and only the top ten companies were chosen to build the efficient investment portfolio that has the highest weighted moving average [41]. The ranking of the companies is due to the different closing prices, meaning that the Babylon Hotel took the highest weighted moving average during the period and it reached (63.76660033) because the prices of the shares which belong to the Babylon Hotel are high and they are ahead of all the similar companies and other companies in the Iraq Stock Exchange and that the hotel is making very good profits, while the lowest weighted moving average for the National Chemical Industries Company reached (1.109410256), the first ten companies are involved in building the investment portfolio, because their closing prices are high, so the weighted moving average took an advanced arrangement and excluded companies that have low closing prices.

Calculating the return and risks for the period preceding the global pandemic
It is clear in Table (2) that there is a discrepancy in the return of the ten companies, and the highest return for the National Chemical Industries Company reached (0.00503954), causing its risk to rise, while the lowest return for Babylon Hotel was (-0.000556327). The reason belongs to the change in the prices of the stock during the research period, while the highest risk was for the Iraqi Company for Meat Production and Marketing, it amounted to (0.109514084), while the lowest risk was in the Baghdad Hotel, which amounted to (0.01515396), meaning that the low return led to a decrease in the risk.

Ranking of the companies according to the weighted moving average indicator for the concurrent period of the global pandemic
When building an efficient investment portfolio by using the weighted moving average indicator during the period from 25/2/2020 to 24/2/2021. The companies with more than (100 views) were selected and the number of 24 companies, with the exclusion of companies that do not have daily data during the period of the global pandemic. The weighted moving indicator, as shown in Table (3), reached the companies that are listed in the Iraq Stock Exchange and included in the construction of the portfolio. The companies are arranged in descending order, as well as, only ten companies were selected to build an efficient investment portfolio, which has the highest weighted moving average. United Bank BUND 0.070702703 The ranking of the companies is due to the different closing prices, meaning that the Babylon Hotel took the highest weighted moving average during the period and it reached (72.29) because the closing prices of the Babylon Hotel are high and it is ahead of all similar companies and other companies in the Iraqi market for securities and that the hotel is making very good profits. While the lowest weighted moving average for Al-Mamoura Company for Iraqi Investment Company was reached (1.938948718) and the first ten companies are involved in building the investment portfolio, because its closing prices are high, so it took an advanced arrangement with the exclusion of companies that do not take the beneficiary arrangement of the weighted moving average index.

Calculating the return and risks for the concurrent period of the global pandemic
It is obvious in Table 2 that there is a discrepancy in the return for the ten companies, and the highest return for the modern sewing company was (0.006687), while the lowest return for the Babylon hotel was (0.000446) due to the high risk, while It was a risk for the Modern Sewing Company, which amounted to (0.049368), while the lowest risks were in the Iraqi Carpet and Furniture Company, which amounted to (0.021804).  Table 5 shows that the matrix of joint variance varies from one company to another and that some of them have a positive variance, such as the Iraqi Company for Carpets and Furniture, and this indicates the high risk of the portfolio because Markowitz emphasized the intentional selection of the stocks when building the investment portfolio, by selecting the stocks that have a negative common variance, and the common variance has reached (0.000000220).  Table 6 illustrates that the covariance matrix varies from one company to the other and that some of them have a positive variance, which indicates a high portfolio risk. The covariance has reached (0.0001850). After building the two portfolios of the top ten companies for the previous and concurrent period of the global pandemic, we note from Table (7) that the highest return of the technology portfolio for the concurrent period of the global pandemic (0.001660), which is greater than the return of the technical portfolio for the period preceding the global pandemic (0.00110), while the risk of the technical portfolio for the concurrent period was the risk of the technical portfolio for the period preceding the global pandemic is (0.055694005), and the most important thing is that the Sharpe ratios of the technical portfolio for the concurrent period of the global pandemic (-0.5010), which is higher than the Sharpe ratio of the technical portfolio for the simultaneous period of the global pandemic (-2.13756), which indicates the inefficiency of the technical portfolio of the previous and concurrent global pandemic because the return of the portfolio is less than the risk-free rate of return. As a result, the hypothesis that (it is not possible to build an efficient investment portfolio by using the weighted moving average indicator for the period prior to the global pandemic) should be rejected, as well as reject the second hypothesis which states (it is not possible to build an efficient investment portfolio by using the weighted moving average indicator for the concurrent period of the global pandemic).

Conclusions
The current research reached a set of conclusions, the most important of which are:  The study concludes that the decrease in the number of trading sessions after the global pandemic, the decrease in the returns of the stocks and the high risk of previous and concurrent periods of the global pandemic have significantly affected the construction of the investment portfolio and its performance.  The economic and political conditions greatly affected the prices of the stocks of the companies, which led to a significant decrease in their returns with a high risk.  By using the daily data of the shares of the company, it is possible to build an efficient investment portfolio during the period of crises.  The study concludes that the return of the technical portfolio for the concurrent period of the global pandemic is higher than the returns of the technical portfolio for the period prior to the global pandemic, due to the high risk.  The study concludes although the return of the portfolio for the concurrent period of the global pandemic is higher than the return of the technical portfolio for the period prior to the global pandemic, and that its performance was weak when compared with the technical portfolio for the period prior to the global pandemic. This confirms that the decrease in the number of trading sessions and trading volume affected the performance of the investment portfolio.

Recommendations
The current research reached a set of recommendations, the most important of which are:  The researchers recommend measuring the market portfolio and comparing it with the technical portfolio in the light of the global pandemic to show the extent to which the efficient technical portfolio differs in the light of the global pandemic with the reference portfolio.  The investor must balance his investment tools in terms of the return and risk according to sound foundations and rules.  The necessity of benefiting from the current study and previous studies similar to it, in order to increase investors' awareness of these important tools in building a portfolio.  The researchers recommend using other technical mathematical tools to build an efficient investment portfolio in the light of the global pandemic.