This paper conducts some experiments with forex trading data. The data being used is from kaggle.com, a website that provides datasets for machine learning and data scientists. The goal of the experiments is to know how to design many parameters in a forex trading robot. Some questions that want to be investigated are: How far the robot must set the stop loss or target profit level from the open position? When is the best time to apply for a forex robot that works only in a trending market? Which one is better: a forex trading robot that waits for a trending market or a robot that works during a sideways market? To answer these questions, some data visualizations are plotted in many types of graphs. The data representations are built using Weka, an open-source machine learning software. The data visualization helps the trader to design the strategy to trade the forex market.
This paper investigates if forecasting models based on Machine Learning (ML) Algorithms are capable to predict intraday prices in the small, frontier stock market of Romania. The results show that this is indeed the case. Moreover, the prediction accuracy of the various models improves as the forecasting horizon increases. Overall, ML forecasting models are superior to the passive buy and hold strategy, as well as to a naïve strategy that always predicts the last known price action will continue. However, we also show that this superior predictive ability cannot be converted into “abnormal”, economically significant profits after considering transaction costs. This implies that intraday stock prices incorporate information within the accepted bounds of weak-form market efficiency, and cannot be “timed” even by sophisticated investors equipped with state of the art ML prediction models.
A LINEAR REGRESSION APPROACH TO PREDICTION OF STOCK MARKET TRADING VOLUME: A ...ijmvsc
Predicting daily behavior of stock market is a serious challenge for investors and corporate stockholders and it can help them to invest with more confident by taking risks and fluctuations into consideration. In this paper, by applying linear regression for predicting behavior of S&P 500 index, we prove that our proposed method has a similar and good performance in comparison to real volumes and the stockholders can invest confidentially based on that.
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSIAEME Publication
Stock price forecasting is a popular and important topic in financial and academic
studies. Share market is an volatile place for predicting since there are no significant
rules to estimate or predict the price of a share in the share market. Many methods
like technical analysis, fundamental analysis, time series analysis and statistical
analysis etc. are used to predict the price in tie share market but none of these
methods are proved as a consistently acceptable prediction tool. In this paper, we
implemented a Random Forest approach to predict stock market prices. Random
Forests are very effectively implemented in forecasting stock prices, returns, and stock
modeling. We outline the design of the Random Forest with its salient features and
customizable parameters. We focus on a certain group of parameters with a relatively
significant impact on the share price of a company. With the help of sentiment
analysis, we found the polarity score of the new article and that helped in forecasting
accurate result. Although share market can never be predicted with hundred per-cent
accuracy due to its vague domain, this paper aims at proving the efficiency of Random
forest for forecasting the stock prices
In Stock Market Prediction, the aim is to predict the future value of the financial stocks of a company. The recent trend in stock market prediction technologies is the use of machine learning which makes predictions based on the values of current stock market indices by training on their previous values. Machine learning itself employs different models to make prediction easier and authentic.
STOCK TREND PREDICTION USING NEWS SENTIMENT ANALYSISijcsit
Efficient Market Hypothesis is the popular theory about stock prediction. With its failure much research
has been carried in the area of prediction of stocks. This project is about taking non quantifiable data such
as financial news articles about a company and predicting its future stock trend with news sentiment
classification. Assuming that news articles have impact on stock market, this is an attempt to study
relationship between news and stock trend. To show this, we created three different classification models
which depict polarity of news articles being positive or negative. Observations show that RF and SVM
perform well in all types of testing. Naïve Bayes gives good result but not compared to the other two.
Experiments are conducted to evaluate various aspects of the proposed model and encouraging results are
obtained in all of the experiments. The accuracy of the prediction model is more than 80% and in
comparison with news random labelling with 50% of accuracy; the model has increased the accuracy by
30%.
This paper investigates if forecasting models based on Machine Learning (ML) Algorithms are capable to predict intraday prices in the small, frontier stock market of Romania. The results show that this is indeed the case. Moreover, the prediction accuracy of the various models improves as the forecasting horizon increases. Overall, ML forecasting models are superior to the passive buy and hold strategy, as well as to a naïve strategy that always predicts the last known price action will continue. However, we also show that this superior predictive ability cannot be converted into “abnormal”, economically significant profits after considering transaction costs. This implies that intraday stock prices incorporate information within the accepted bounds of weak-form market efficiency, and cannot be “timed” even by sophisticated investors equipped with state of the art ML prediction models.
A LINEAR REGRESSION APPROACH TO PREDICTION OF STOCK MARKET TRADING VOLUME: A ...ijmvsc
Predicting daily behavior of stock market is a serious challenge for investors and corporate stockholders and it can help them to invest with more confident by taking risks and fluctuations into consideration. In this paper, by applying linear regression for predicting behavior of S&P 500 index, we prove that our proposed method has a similar and good performance in comparison to real volumes and the stockholders can invest confidentially based on that.
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSIAEME Publication
Stock price forecasting is a popular and important topic in financial and academic
studies. Share market is an volatile place for predicting since there are no significant
rules to estimate or predict the price of a share in the share market. Many methods
like technical analysis, fundamental analysis, time series analysis and statistical
analysis etc. are used to predict the price in tie share market but none of these
methods are proved as a consistently acceptable prediction tool. In this paper, we
implemented a Random Forest approach to predict stock market prices. Random
Forests are very effectively implemented in forecasting stock prices, returns, and stock
modeling. We outline the design of the Random Forest with its salient features and
customizable parameters. We focus on a certain group of parameters with a relatively
significant impact on the share price of a company. With the help of sentiment
analysis, we found the polarity score of the new article and that helped in forecasting
accurate result. Although share market can never be predicted with hundred per-cent
accuracy due to its vague domain, this paper aims at proving the efficiency of Random
forest for forecasting the stock prices
In Stock Market Prediction, the aim is to predict the future value of the financial stocks of a company. The recent trend in stock market prediction technologies is the use of machine learning which makes predictions based on the values of current stock market indices by training on their previous values. Machine learning itself employs different models to make prediction easier and authentic.
STOCK TREND PREDICTION USING NEWS SENTIMENT ANALYSISijcsit
Efficient Market Hypothesis is the popular theory about stock prediction. With its failure much research
has been carried in the area of prediction of stocks. This project is about taking non quantifiable data such
as financial news articles about a company and predicting its future stock trend with news sentiment
classification. Assuming that news articles have impact on stock market, this is an attempt to study
relationship between news and stock trend. To show this, we created three different classification models
which depict polarity of news articles being positive or negative. Observations show that RF and SVM
perform well in all types of testing. Naïve Bayes gives good result but not compared to the other two.
Experiments are conducted to evaluate various aspects of the proposed model and encouraging results are
obtained in all of the experiments. The accuracy of the prediction model is more than 80% and in
comparison with news random labelling with 50% of accuracy; the model has increased the accuracy by
30%.
Stock Market Prediction and Investment Portfolio Selection Using Computationa...iosrjce
IOSR Journal of Computer Engineering (IOSR-JCE) is a double blind peer reviewed International Journal that provides rapid publication (within a month) of articles in all areas of computer engineering and its applications. The journal welcomes publications of high quality papers on theoretical developments and practical applications in computer technology. Original research papers, state-of-the-art reviews, and high quality technical notes are invited for publications.
This presentation demonstrates that how economic concepts and/or econometric techniques can be useful in financial decision making (i.e. trading) and that how EViews can effectively handle the whole process.
Enhanced Decision Support System for Portfolio Management Using Financial Ind...ijbiss
In many cases, financial indicators are used for market analysis and to forecast the future of stock prices. Due to the high complexity of the stock market, determining which indicators should be used and the reliability of their outcomes have always been a challenge. In this article, a hybrid approach in the form of a decision support system is being introduced that offers the best suggestions in buying and selling stocks. This system will help an investor to identify the best portfolio of stocks using a series of financial indicators. These indices act as a model that forecast the future price of a stock by examining its activities and status in the past. Therefore, using a combination of the indices enables us to make decisions with more certainty. Proficiency of this system has been evaluated through the collection of data from the stock market in Iran from 2001 through 2011. The results show that the use of indices and their combination have led to the decision support system to produce suggestions with very high precisions.
ENHANCED DECISION SUPPORT SYSTEM FOR PORTFOLIO MANAGEMENT USING FINANCIAL IND...ijbiss
In many cases, financial indicators are used for market analysis and to forecast the future of stock prices.
Due to the high complexity of the stock market, determining which indicators should be used and the
reliability of their outcomes have always been a challenge. In this article, a hybrid approach in the form of
a decision support system is being introduced that offers the best suggestions in buying and selling stocks.
This system will help an investor to identify the best portfolio of stocks using a series of financial
indicators. These indices act as a model that forecast the future price of a stock by examining its activities
and status in the past. Therefore, using a combination of the indices enables us to make decisions with
more certainty. Proficiency of this system has been evaluated through the collection of data from the stock
market in Iran from 2001 through 2011. The results show that the use of indices and their combination
have led to the decision support system to produce suggestions with very high precisions.
Precision Oscillator Suite for Bloomberg Professionalbzinchenko
We offer a simple and powerful collection of improved technical indicators inherited from classical oscillators widely used throughout modern technical analysis. These oscillators take advantage of full intra-bar information provided by the Bloomberg charting package. They allow for up to four times more precision against their classical counterparts.
Nowadays during increasingly developed technology of the World Wide Web and Internet, the data is becoming extremely rich. With the application of data recognition process, the information extracted from data has become the most important part in some areas of society, management field, finance and markets, etc. It is necessary to develop the valid method to understand the knowledge of the data. Whether you are looking for good investments or are into stock trading, stock prediction or forecast plays the most crucial role in determining where to put in the money or which stock to be acquired or sold.
ATI website at: http://algotrading-investment.com
Or follow the latest development and update news at: https://algotradinginvestment.wordpress.com/blog/
This project aims to provide accurate and reliable predictions for stock prices using the power of LSTM (Long Short-Term Memory) and ARIMA (AutoRegressive Integrated Moving Average) models. By analyzing historical stock data and leveraging the capabilities of these advanced forecasting models, we help investors and traders make informed decisions and optimize their investment strategies.
The project workflow begins with gathering comprehensive historical stock price data, including open, high, low, and closing prices, as well as trading volumes and other relevant features. This data is then preprocessed to handle missing values, outliers, and any other inconsistencies that may impact the accuracy of the predictions.
For time series analysis and forecasting, we employ the LSTM model, a variant of recurrent neural networks (RNNs) known for their ability to capture long-term dependencies in sequential data. LSTM models have proven to be highly effective in capturing the complex patterns and trends present in stock price data. By training the LSTM model on historical stock data, we can predict future stock prices with a high degree of accuracy.
In addition to LSTM, we utilize the ARIMA model, a widely used statistical method for time series forecasting. ARIMA models capture the autoregressive, moving average, and integrated components of a time series, allowing us to capture both short-term and long-term trends in stock prices. By incorporating the ARIMA model into our prediction pipeline, we further enhance the accuracy and reliability of our forecasts.
To evaluate the performance of our models, we use appropriate evaluation metrics such as mean absolute error (MAE), root mean squared error (RMSE), and mean absolute percentage error (MAPE). These metrics provide insights into the effectiveness of our models and help us fine-tune the parameters for optimal performance.
The Stock Price Prediction project using LSTM and ARIMA models represents our commitment to leveraging advanced machine learning and statistical techniques to provide valuable insights in the financial domain. By accurately forecasting stock prices, we empower investors and traders to make data-driven decisions, mitigate risks, and optimize their investment strategies. This project showcases our expertise in time series analysis, deep learning, and statistical modeling, and our dedication to delivering solutions that drive tangible business outcomes in the financial sector.
Stock Market Prediction and Investment Portfolio Selection Using Computationa...iosrjce
IOSR Journal of Computer Engineering (IOSR-JCE) is a double blind peer reviewed International Journal that provides rapid publication (within a month) of articles in all areas of computer engineering and its applications. The journal welcomes publications of high quality papers on theoretical developments and practical applications in computer technology. Original research papers, state-of-the-art reviews, and high quality technical notes are invited for publications.
This presentation demonstrates that how economic concepts and/or econometric techniques can be useful in financial decision making (i.e. trading) and that how EViews can effectively handle the whole process.
Enhanced Decision Support System for Portfolio Management Using Financial Ind...ijbiss
In many cases, financial indicators are used for market analysis and to forecast the future of stock prices. Due to the high complexity of the stock market, determining which indicators should be used and the reliability of their outcomes have always been a challenge. In this article, a hybrid approach in the form of a decision support system is being introduced that offers the best suggestions in buying and selling stocks. This system will help an investor to identify the best portfolio of stocks using a series of financial indicators. These indices act as a model that forecast the future price of a stock by examining its activities and status in the past. Therefore, using a combination of the indices enables us to make decisions with more certainty. Proficiency of this system has been evaluated through the collection of data from the stock market in Iran from 2001 through 2011. The results show that the use of indices and their combination have led to the decision support system to produce suggestions with very high precisions.
ENHANCED DECISION SUPPORT SYSTEM FOR PORTFOLIO MANAGEMENT USING FINANCIAL IND...ijbiss
In many cases, financial indicators are used for market analysis and to forecast the future of stock prices.
Due to the high complexity of the stock market, determining which indicators should be used and the
reliability of their outcomes have always been a challenge. In this article, a hybrid approach in the form of
a decision support system is being introduced that offers the best suggestions in buying and selling stocks.
This system will help an investor to identify the best portfolio of stocks using a series of financial
indicators. These indices act as a model that forecast the future price of a stock by examining its activities
and status in the past. Therefore, using a combination of the indices enables us to make decisions with
more certainty. Proficiency of this system has been evaluated through the collection of data from the stock
market in Iran from 2001 through 2011. The results show that the use of indices and their combination
have led to the decision support system to produce suggestions with very high precisions.
Precision Oscillator Suite for Bloomberg Professionalbzinchenko
We offer a simple and powerful collection of improved technical indicators inherited from classical oscillators widely used throughout modern technical analysis. These oscillators take advantage of full intra-bar information provided by the Bloomberg charting package. They allow for up to four times more precision against their classical counterparts.
Nowadays during increasingly developed technology of the World Wide Web and Internet, the data is becoming extremely rich. With the application of data recognition process, the information extracted from data has become the most important part in some areas of society, management field, finance and markets, etc. It is necessary to develop the valid method to understand the knowledge of the data. Whether you are looking for good investments or are into stock trading, stock prediction or forecast plays the most crucial role in determining where to put in the money or which stock to be acquired or sold.
ATI website at: http://algotrading-investment.com
Or follow the latest development and update news at: https://algotradinginvestment.wordpress.com/blog/
This project aims to provide accurate and reliable predictions for stock prices using the power of LSTM (Long Short-Term Memory) and ARIMA (AutoRegressive Integrated Moving Average) models. By analyzing historical stock data and leveraging the capabilities of these advanced forecasting models, we help investors and traders make informed decisions and optimize their investment strategies.
The project workflow begins with gathering comprehensive historical stock price data, including open, high, low, and closing prices, as well as trading volumes and other relevant features. This data is then preprocessed to handle missing values, outliers, and any other inconsistencies that may impact the accuracy of the predictions.
For time series analysis and forecasting, we employ the LSTM model, a variant of recurrent neural networks (RNNs) known for their ability to capture long-term dependencies in sequential data. LSTM models have proven to be highly effective in capturing the complex patterns and trends present in stock price data. By training the LSTM model on historical stock data, we can predict future stock prices with a high degree of accuracy.
In addition to LSTM, we utilize the ARIMA model, a widely used statistical method for time series forecasting. ARIMA models capture the autoregressive, moving average, and integrated components of a time series, allowing us to capture both short-term and long-term trends in stock prices. By incorporating the ARIMA model into our prediction pipeline, we further enhance the accuracy and reliability of our forecasts.
To evaluate the performance of our models, we use appropriate evaluation metrics such as mean absolute error (MAE), root mean squared error (RMSE), and mean absolute percentage error (MAPE). These metrics provide insights into the effectiveness of our models and help us fine-tune the parameters for optimal performance.
The Stock Price Prediction project using LSTM and ARIMA models represents our commitment to leveraging advanced machine learning and statistical techniques to provide valuable insights in the financial domain. By accurately forecasting stock prices, we empower investors and traders to make data-driven decisions, mitigate risks, and optimize their investment strategies. This project showcases our expertise in time series analysis, deep learning, and statistical modeling, and our dedication to delivering solutions that drive tangible business outcomes in the financial sector.
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODELIJCI JOURNAL
Stock Trading Algorithmic Model is an important research problem that is dealt with knowledge in
fundamental and technical analysis, combined with the knowledge expertise in programming and computer
science. There have been numerous attempts in predicting stock trends, we aim to predict it with least
amount of computation and to decrease the space complexity. The goal of this paper is to create a hybrid
recommendation system that will inform the trader about the future of a stock trend in order to improve the
profitability of a short term investment. We make use of technical analysis tools to incorporate this
recommendation into our system. In order to understand the results, we implemented a prototype in R
programming language.
MOVING AVERAGES TRADING METHOD APPLIED TO CRYPTOCURRENCIESectijjournal
This research uses a popular investment technique called Moving Averages on crypto currencies. The 40 largest crypto currencies measured by market capitalization were evaluated. The research compares the returns of the crypto currencies using 5 of the commonly used parameter settings for the Moving Averages technique and compares these results to a buy-and-hold strategy. For some crypto currencies the Moving Averages technique outperformed the buy-and-hold technique. For others the buy-and-hold technique was the best.
The stock exchange is an important apparatus for economic growth as it is an opportunity for investors to acquire equity and, at the same time, provide resources for organizations expansions. On the other hand, a major concern regarding entering this market is related with the dynamic in which deals are made since the pricing of shares happens in a smart and oscillatory way. Due to this context, several researchers are studying techniques in order to predict the stock exchange, maximize profits and reduce risks. Thus, this study proposes a linear regression model for stock exchange prediction which, combined with financial indicators, provides support decision-making by investors.
Literature Review Basics and Understanding Reference Management.pptxDr Ramhari Poudyal
Three-day training on academic research focuses on analytical tools at United Technical College, supported by the University Grant Commission, Nepal. 24-26 May 2024
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
We have compiled the most important slides from each speaker's presentation. This year’s compilation, available for free, captures the key insights and contributions shared during the DfMAy 2024 conference.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Using recycled concrete aggregates (RCA) for pavements is crucial to achieving sustainability. Implementing RCA for new pavement can minimize carbon footprint, conserve natural resources, reduce harmful emissions, and lower life cycle costs. Compared to natural aggregate (NA), RCA pavement has fewer comprehensive studies and sustainability assessments.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Technical Drawings introduction to drawing of prisms
FOREX DATA ANALYSIS USING WEKA
1. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
DOI : 10.5121/ijfls.2021.11103 23
FOREX DATA ANALYSIS USING WEKA
Luciana Abednego and Cecilia Esti Nugraheni
Department of Informatics, Parahyangan Catholic University, Indonesia
ABSTRACT
This paper conducts some experiments with forex trading data. The data being used is from kaggle.com, a
website that provides datasets for machine learning and data scientists. The goal of the experiments is to
know how to design many parameters in a forex trading robot. Some questions that want to be investigated
are: How far the robot must set the stop loss or target profit level from the open position? When is the best
time to apply for a forex robot that works only in a trending market? Which one is better: a forex trading
robot that waits for a trending market or a robot that works during a sideways market? To answer these
questions, some data visualizations are plotted in many types of graphs. The data representations are built
using Weka, an open-source machine learning software. The data visualization helps the trader to design
the strategy to trade the forex market.
KEYWORDS
forex trading data, forex data experiments, forex data analysis, forex data visualization.
1. INTRODUCTION
When planning a forex trading system, a trader needs to carefully design the system and
extensively test it. Besides the help of some technical indicators and fundamental analysis [1][2],
a trading system needs to set many risk management parameters, such as stop loss and take profit
[3]. These parameters play an important rule to determine the trader’s target profit and also limit
the loss risk of each open trade.
To investigate the ideal level for risk management parameters and the trading system, this
research tries to find the answer to those questions. Some experiments are conducted in the H1
timeframe, which updates the price hourly. Two main currency pairs with different time ranges
are used in this paper: EUR/USD (1 year) and USD/JPY (20 years). The experiments use the
dataset from Kaggle, a website that provides many kinds of datasets for machine learning and
data scientists [4]. Some data visualization techniques are used to represent the result of these
data using Weka. Weka is open-source software that provides many machine learning techniques
and data visualization tools [5].
2. PROBLEM DESCRIPTION AND ANALYSIS
This section describes the problem domain and data that want to be investigated in this research.
2.1. Forex Trading
Forex (foreign exchange) is a global marketplace where the banks, corporations, investors, and
individual traders exchange foreign currencies for a variety of reasons. The fluctuations of these
currencies are the target for traders for making some profit. But at the same time, a trader risks
their account when the market moves against his open position. The currencies are traded in
2. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
24
pairs. The four major currency pairs are EUR/USD, USD/JPY, GBP/USD, and USD/CHF. Figure
1 shows the approximate volume breakdown per currency pair [6].
Figure 1. Estimated Trading Volume by Currency Pair
The forex market works 24 hours a day, 5 days a week. Table 1 shows the opening and closing
times [6].
Table 1. Global Trading Hour Schedule
Time Zone New York GMT
Tokyo Open 7:00 p.m. 00:00
Tokyo Close 4:00 a.m. 09:00
London Open 3:00 a.m. 08:00
London Close 12:00 p.m. 17:00
New York Open 8:00 a.m. 13:00
New York Close 5:00 p.m. 22:00
2.2. Forex Risk Management
When a trader opens a position in the forex market, two actions can be taken: buy or sell. If the
trader thinks that the price will go upward, he is supposed to open a buy position. On the
contrary, if the trader considers that the price will go downward, he is supposed to open a sell
position. After a trader chooses one of that action, but unluckily the market moves against its
open position, the trader will lose. In this case, he has to protect his account by limiting the loss
he’s suffered. There are many types of risk management strategies [3]. Some parameters that can
be set to limit the loss of any open trade are stop loss and target profit. In this paper, some
experiments are conducted to investigate the ideal level to set these parameters.
2.3. Data Preparation and Mining
This research uses past forex data that is gained from Kaggle, a website that provides many kinds
of datasets for machine learning and data scientists [4]. We choose the H1 timeframe of the two
3. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
25
top biggest volume currencies traded in the global market: EUR/USD & USD/JPY [6]. This raw
data is then cleaned, transformed, and represented in some visualizations charts by using Weka.
Weka is an open-source data mining and visualization framework. Weka was developed at the
University of Waikato, New Zealand. Figure 2 shows the user interface of Weka. This paper uses
Weka as a tool for data visualization and mining.
Figure 2. Weka Interface
3. EXPERIMENT SETUP AND RESULT
Experiments are conducted to the top three biggest volume traded currency pairs: EUR/USD
USD/JPY, and GBP/USD. The H1 timeframe for 20 years (1999-2019) is used for all the
experiments. As mention before, the datasets that are used in these experiments are from
Kaggle.com [3], a website that provides many kinds of datasets for machine learning and data
science purposes. These datasets use pip (price in percentage), which is the smallest value by
which a currency may fluctuate in the forex market [5]. The goals of these experiments are
explained in the following sections.
3.1. Experiment with Information Gain
The Kaggle dataset consists of 7 attributes (see Table 2). These attributes are then evaluated
based on the information gain value. Information gain is a method to score all attributes and then
sort these attributes based on the most important attributes to the price change above 10 pips.
Table 2 shows the sorted sequence of attributes from the highest influence attribute to the less.
Table 2. Information Gain Experiment.
No. Attribute Information Gain
1 Date 0.1438
2 Volume 0.125
3 Low 0.0661
4 Close 0.0661
5 High 0.0657
6 Open 0.0656
7 Hour 0.0599
The two top attributes are date and volume. This shows that in some certain dates, there are some
trends happened in the forex market. The price change above 10 pips and the number of volumes
influences this trend. Many fundamental news affects this trend.
4. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
26
3.2. Experiment to Determine the Level of Some Risk Management Parameters
When design a trading system, a trader needs to define a strategy of how to trade the foreign
currency pairs. Beside the technical and fundamental analysis, a trader needs to define the risk
management system to control the loss risk of each open trade. Stop loss and take profit are the
tools in risk management system. To determine the best level of these tools, this research
investigates a forex dataset for 20 years (from 1999 until 2019) of the three most traded currency
pairs: (1) EUR/USD, (2) USD/JPY, (3) GBP/USD.
Based on the first experiment, the dataset is then categorized based on the pip change that shows
whether the market is on the condition of trending or sideways. To cluster the dataset into groups,
in this experiment a new attribute, Class 10 Pip Change, was added based on the open price of
the next candle minus the close price of the previous candle. This attribute has three possibilities
of value:
● -10pips: the price decrease more than or equals to 10 pips
● ranging: the price change below 10 pips
● +10pips: the price increase more than or equals to 10 pips
Table 3-4 and Figure 3 show the result of this experiment.
Table 3. Experiment with Class 10 Pips Change
No. Attribute Value for
Class 10 Pip Change
Number of records
EUR/USD USD/JPY GBP/USD
1 -10pips 21,180 19,494 25,972
2 ranging 86,522 89,618 76,555
3 +10pips 21,098 19,688 26,273
Total 128,800 128,800 128,800
Figure 3. Experiment with Class 10 Pips Change
5. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
27
Table 4. Experiment with Class 10 Pips Change (in percent)
No. Attribute Value for
Class 10 Pip Change
Number of records (in percent)
EUR/USD USD/JPY GBP/USD
1 -10pips 16.4 % 15.1 % 20.2 %
2 Ranging 67.2 % 69.6 % 59.4 %
3 +10pips 16.4 % 15.3 % 20.4 %
Total 100 % 100 % 100 %
Table 4 represents the number of records in percent. This data can be used to design the trading
system:
About 60 % of all the records for each main currency pairs fluctuate below 10 pips. A
trader can consider this fact to determine many trading strategies. A trading system that can
be dealt with this ranging market is more preferable than those which can’t.
The number of downtrend and uptrend are comparable for each currency pair:
o EUR/USD: 16.4 % : 16.4 %
o USD/JPY: 15.1 % : 15.3 %
o GBP/USD: 20.2 % : 20.4 %
3.3. Experiment with 25 Pips of Currency Fluctuation
Similar with the previous experiment, the dataset is categorized based on the 25 pips change that
shows whether the market is on the condition of trending or sideways. In this experiment, a new
attribute, Class 25 Pip Change, was added based on the open price of the next candle minus the
close price of the previous candle. This attribute has three possibilities of value:
● -25pips: the price decrease above 25 pips
● ranging: the price change below 25 pips
● +25pips: the price increase above 25 pips
Table 5. Experiment with Class 25 Pips Change
No. Attribute Value for
Class 10 Pip Change
Number of records
EUR/USD USD/JPY GBP/USD
1 -25pips 5,150 4,125 7,813
2 ranging 118,554 120,865 113,347
3 +25pips 5,096 3,810 7,640
Total 128,800 128,800 128,800
Table 6. Experiment with Class 25 Pips Change (in percent)
No. Attribute Value for
Class 10 Pip Change
Number of records (in percent)
EUR/USD USD/JPY GBP/USD
1 -25pips 4 % 3.2 % 6.1 %
2 Ranging 92 % 93.8 % 88 %
3 +25pips 4 % 3 % 5.9 %
Total 100 % 100 % 100 %
Table 5-6 and Figure 4 show the result of this experiment.
6. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
28
Figure 4. Experiment with Class 25 Pips Change
As can be seen from these results:
About 90 % of all the records for each main currency pairs fluctuate below 25 pips. A
trader can consider this fact to determine many trading strategies. For example, to
determine the level of stop loss and take profit. A trading system that can be dealt with this
ranging market is more preferable than those which can’t.
The number of downtrend and uptrend are comparable for each currency pair:
o EUR/USD: 4 % : 4 %
o USD/JPY: 3.2 % : 3 %
o GBP/USD: 6.1 % : 5.9 %
From Table 3-4 and Table 5-6, we derive Table 7-8 and Figure 5.
Table 7. Experiment with Class X Pips Change
No.
Attribute Value for
Class Pip Change
Number of records
EUR/USD USD/JPY GBP/USD
1 (-…, -25) pips 5,150 4,125 7,813
2 [-10, -25] pips 16,030 15,369 18,159
3 (-10, 10) pips 86,522 89,618 76,555
4 [+10,+25] pips 16,002 15,878 18,633
5 (25, …) pips 5,096 3,810 7,640
Total 128,800 128,800 128,800
Table 8. Experiment with Class X Pips Change (in percent)
No. Attribute Value for
Class Pip Change
Number of records
EUR/USD USD/JPY GBP/USD
1 (-…, -25) pips 4 % 3.2 % 6.1 %
2 [-10, -25] pips 12.4 % 11.9 % 14.1 %
3 (-10, 10) pips 67.2 % 69.6% 59.4 %
4 [+10,+25] pips 12.4 % 12.3% 14.5 %
5 (25, …) pips 4 % 3 % 5.9 %
Total 100 % 100 % 100 %
7. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
29
Figure 5. Experiment with Class X Pips Change
3.4. Experiment Comparison of The Up Prices to The Down Prices
The goal of this experiment is to know the comparison of the up prices to the down prices in the
top three major pairs. A new attribute Class Price Up was added in this experiment, with two
possibilities of value: TRUE or FALSE. TRUE means the next close price is higher than the
previous close price. FALSE means the contrary.
Table 9 and Figure 6 show the result of this experiment.
Table 9. Experiment based on Price Up Class
No. Attribute Value for
Class Price Up
Number of records
EUR/USD USD/JPY GBP/USD
1 TRUE 65,135 63,650 63,418
2 FALSE 63,665 65,150 65,382
Total 128,800 128,800 128,800
Figure 6. Experiment with Class Price Up
8. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
30
This experiment shows that the number of up prices more or less equals the number of down
prices. From this experiment, the trader has a 50:50 percent chance to buy or sell decisions.
3.5. Comparison of Up Trend to Down Trend
The goal of this experiment is to know the comparison between the uptrend to the downtrend of
the three top currency pairs: (1) EUR/USD, (2) USD/JPY, (3) GBP/USD. Some new attributes
are added to the Kaggle dataset to gain the pattern of the uptrend and downtrend. An uptrend can
be indicated by higher high and a higher low. On the other hand, a downtrend can be indicated by
lower high and lower low. Based on that fact, Table 10 and Figure 7 show the result of this
experiment.
Table 10. Experiment with Class 10 Pips Change.
No. Attribute Value Class
Up/Down Trend
Number of records
EUR/USD USD/JPY GBP/USD
1 Up Trend 32.58 % 32.81 % 32.62 %
2 Down Trend 32.1% 31.89 % 31.96 %
Figure 7. Data Composition of Up Trend (Green Bars), Down Trend(Red Bars), and Ranging (Blue Bars)
From this data, it can be seen that the proportion of uptrend, down, and ranging for these three
main pairs are about 30 % : 30 % : 40 %.
3.6. Experiment Time of EUR/USD Trending Market
The goal of this experiment is to know the tendency of the time when the EUR/USD is trending
during a day. The price of each transaction to the time of a day is plotted in the chart below (see
Figure 8).
9. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
31
Figure 8. Market price to the time chart
The X-axis shows the time of the days and the Y-axis shows the attribute value of Class 25 Pips
Change: -25pips, ranging, or +25pips. The red dots show the ranging market that happens most of
the time of any day. The green dots represent the up-trending market that moves above 25 pips.
From the chart, it can be seen that most of the trending market happened during office hours
(7a.m. to 5 p.m.). Outside that time, the trend rarely happened.
Figure 9. EUR/USD Fluctuation Range (in pips)
From this experiment, if the trader’s used the trending algorithm, it would be better to apply it
during office hours. On the other hand, if the trader uses an algorithm that can be dealt with
ranging markets, it can be applied most of the time of the day. The trader can set the forex
parameters, such as stop loss and take profit below 25 pips to gain more profit or reduce the risks.
Figure 9 shows the pip change range to time in the EUR/USD forex market. From this figure, it
can be seen that the most trending market happened at about 14:00 - 15.00. If some of this data is
selected (see Figure 10), it can be seen that when the market starts to open, the possibility of the
downtrend is more often than the uptrend.
10. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
32
Figure 10. The Possibility of the Downtrend When The Market Starts to Open
3.7. Experiment with USD/JPY Trending Time
The goal of this experiment is to know the best time to trend USD/JPY if a trader uses an
algorithm that counts on-trend. Figure 11 shows the transactions plotted against time. The red
dots show the upward trend above 25 pips. The green dots show downward trends of more than
25 pips. The blue dots represent the ranging market. The trend not only happened during the
office hours (7 a.m. - 5 p.m.) but also during midnights (11 p.m. - 3 a.m.).
Figure 11. Experiment with Class 25 Pips Change in USD/JPY
If we decrease the threshold to 10 pips, the chart will look like Figure 12 . This data can be used
to determine the level of stop loss and take profit. Most of the time, the market fluctuates between
-10 pips to +10 pips.
11. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
33
Figure 12. Price movement (in pip) plotted to time
Figure 13. Price Movement (in pip) Plotted to Time (USD/JPY)
12. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
34
Figure 14. Choose only The Gray Area of this Data
Figure 13 shows the pip change plotted to the time of a day. From this plot, it can be seen that
most of the trending market happened at about 1 p.m. to 4 p.m. If we ignore the outliers of Figure
13 (see Figure 14), we get the chart that is shown in Figure 15. The red dots show the upward
trend above 25 pips, while the green dots show the downward trend.
Figure 16 shows the uptrend fluctuation range and Figure 17 shows the downtrend fluctuation
range (both in pip).
Figure 15. The Data without The Outliers
13. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
35
Figure 16. Range of the UpTrend of USD/JPY Pair (in Pip)
Figure 17. Range of the DownTrend of USD/JPY Pair (in Pip)
4. CONCLUSIONS
From the experiments, it can be concluded that most of the time, the forex market is ranging
below 10 pips. This can be used to determine how a trading algorithm works. A forex trading
robot that can deal with ranging markets is preferable than the one which only waits for the
trending market. Most of the market trends happened during office hours (7 a.m. to 5 p.m.) for
EUR/USD, but almost all the time for USD/JPY. The possibilities of winning between buy and
sell actions are comparable for the three major currency pairs.
14. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.1, January 2021
36
ACKNOWLEDGEMENTS
The authors would like to thank LPPM Parahyangan Catholic University for the research grant
and the Department of Informatics Parahyangan Catholic University which supports the research.
REFERENCES
[1] L. Abednego, C. E. Nugraheni (2015). Development of Forex Robot in MetaTrader 4. Prosiding
International Congress on Engineering and Information.
[2] L. Abednego, C. E. Nugraheni, I. Rinaldy (2018). Forex Trading Robot with Technical and
Fundamental Analysis. Journal of Computers JCP 2018 Vol.13(9): 1089-1097 ISSN: 1796-203X. doi:
10.17706/jcp.13.9.1089-1097
[3] L Abednego, CE Nugraheni (2018). Development of Forex Trading Robot with Money Management.
Proceeding of Higher Education, Sydney, Australia.
[4] D. F. Jimenez (2020). Forex currencies M1,M5,M15,M30,H1,H4,D1.
https://www.kaggle.com/lehomme/forex-currencies-m1m5m15m30h1h4d1/notebooks
[5] I. Witten, E. Frank, M. Hall, C. J. Pal (2016). Data Mining Practical Machine Learning Tools and
Techniques. Morgan Kaufmann. Fourth Edition.
[6] J. Norris, T. Bell, A. Gaskill (2010). Mastering the Currency Market: Forex Strategies for High- and
Low-Volatility Markets.McGraw-Hill.
AUTHORS
Luciana Abednego, M. T. received her bachelor degree from Dept. of Informatics,
Parahyangan Catholic University, Bandung, Indonesia. She has done her Master in
Informatics from Bandung Institut of Technology, Bandung, Indonesia. Currenty, she is
working as a lecturer at the Dept. of Informatics, Parahyangan Catholic University. Her
research interest includes machine learning and intelligent systems.
Dr. Cecilia E. Nugraheni received her bachelor degree (1993) and master degree (1995)
from Dept. of Informatic Engineering, Bandung Institute of Technology (ITB), Bandung,
Indonesia. She has received PhD Degree (2004) from Dept. of Informatics, Ludwig
Maximilians Universität, Munich, Germany. Her research interest includes formal methods,
intelligent systems, machine learning, meta-heuristic and hyper-heuristic techniques.