Next Article in Journal
Acknowledgement to Reviewers of Econometrics in 2019
Next Article in Special Issue
New Evidence of the Marginal Predictive Content of Small and Large Jumps in the Cross-Section
Previous Article in Journal
HAR Testing for Spurious Regression in Trend
Previous Article in Special Issue
Bivariate Volatility Modeling with High-Frequency Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Representation of Japanese Candlesticks by Oriented Fuzzy Numbers

by
Krzysztof Piasecki
1,* and
Anna Łyczkowska-Hanćkowiak
2
1
Department of Investment and Real Estate, Poznań University of Economics and Business, 61-875 Poznań, Poland
2
Institute of Finance, WSB University in Poznań, 61-895 Poznań, Poland
*
Author to whom correspondence should be addressed.
Submission received: 1 September 2019 / Revised: 3 December 2019 / Accepted: 11 December 2019 / Published: 18 December 2019

Abstract

:
The Japanese candlesticks’ technique is one of the well-known graphic methods of dynamic analysis of securities. If we apply Japanese candlesticks for the analysis of high-frequency financial data, then we need a numerical representation of any Japanese candlestick. Kacprzak et al. have proposed to represent Japanese candlesticks by ordered fuzzy numbers introduced by Kosiński and his cooperators. For some formal reasons, Kosiński’s theory of ordered fuzzy numbers has been revised. The main goal of our paper is to propose a universal method of representation of Japanese candlesticks by revised ordered fuzzy numbers. The discussion also justifies the need for such revision of a numerical model of the Japanese candlesticks. There are considered the following main kinds of Japanese candlestick: White Candle (White Spinning), Black Candle (Black Spinning), Doji Star, Dragonfly Doji, Gravestone Doji, and Four Price Doji. For example, we apply numerical model of Japanese candlesticks for financial portfolio analysis.

1. Introduction

The notion of ordered fuzzy number (OFN) is introduced by Kosiński (Kosiński and Słysz 1993; Kosiński et al. 2002, 2003) as an extension of the concept of fuzzy number (FN), which is widely interpreted as an imprecise approximation of a real number. They intuitively determine OFN as FN equipped with information about the location of the approximated number. This additional information is given as orientation of OFN. For this reason, we can interpret OFN as an imprecise approximation of a real number which may change in the direction determined by orientation. The monograph (Prokopowicz et al. 2017) is a competent source of information about the contemporary state of knowledge on OFN defined by Kosiński. On the other hand, Kosiński (2006) has shown that there exist improper OFNs which cannot be represented by a pair of FNs and its orientation. Then, we cannot to apply any knowledge about fuzzy sets to solve practical problems described by improper OFN. Therefore, any considerations which use improper OFN may be not fruitful. For formal reasons, Kosiński’s theory was revised (Piasecki 2018) in such a way that the revised OFN definition fully corresponds to the intuitive Kosiński’s definition of OFN. In this paper, we recall OFN defined by Kosiński as “Kosiński’s number” which is in line with suggestions given by other researchers (Prokopowicz 2016; Prokopowicz and Pedrycz 2015). Moreover, we propose the OFNs defined in a revised way to be called oriented fuzzy numbers. This proposal has been thoroughly justified in Piasecki (2019). In this way, in the concept of OFNs, we distinguished two of its types: Kosiński’s numbers and oriented fuzzy numbers.
A Japanese candlestick (JC) is a style of financial chart used to describe variability of financial assets’ exchange quotations. Candlestick charts were developed in the 18th century by a Japanese rice trader, Munehisa Homma (Morris 2006). The JC charting techniques were introduced to the Western world by Nison (1991). Among other things, the market quotation changes are described in this way: that any White Candle describes a rise in quotations and any Black Candle describes a fall in quotations. According to the traditional convention, any classical JC is represented by a four-element set of its real numbers: open price, close price, low price, and high price. Some applications of JCs are presented, for example in (Detollenaere and Mazza 2014; Fock et al. 2005; Jasemi et al. 2011; Marshall et al. 2006; Kamo and Dagli 2009; Tsung-Hsun et al. 2012, 2015).
Any original JC charting technique is a graphic tool for recording quotations volatility. Any JC is a very convenient tool for synthetic recording of high-frequency time series of financial data. If we use JCs for the analysis of high-frequency financial data, then then we need their linguistic or numerical representation.
Lee et al. (2006) proposed to describe some JC attributes by linguistic variables evaluated by linguistic labels which have a meaning depending on the applied pragmatics of the natural language. By its very nature of things, each such description is imprecise information. For this reason, Zadeh (1975a, 1975b, 1975c) proposed to describe each linguistic variable by its values defined as a fuzzy subset in the predefined space. Then, these linguistic variables may be transformed with the use of fuzzy set theory. Lee et al. (2006) assessed JC attributes by linguistic labels represented by trapezoidal fuzzy numbers. In an analogous way, JCs are described in (Kamo and Dagli 2009; Naranjo et al. 2018; Naranjo and Santos 2019). After (Herrera and Herrera-Viedma 2000), we can say that an application of imprecise linguistic assessments for decision analysis is very beneficial because it introduces a more flexible framework which allows us to represent the information in a more direct and adequate way when we are unable to express it precisely. Then, all the authors mentioned in this paragraph use linguistic labels representing JC as an input signal for the different systems supporting financial decision-making. The output signals received in this way are very useful.
On the other hand, linguistically described JCs cannot be used for calculating portfolio JC as a sum of their components’ JCs (Łyczkowska-Hanćkowiak and Piasecki 2018b). This task requires the JCs numerical representation given as their quantified models.
For any security, each quantified JC may be used as such an approximation of its market price that it is additionally equipped with information about this price trend. For these reasons, Kacprzak et al. (2013) have described JC by means of Kosiński’s numbers. Kacprzak’s description has a significant disadvantage. There, each Black Candle is described by improper OFN. So, Kacprzak’s approach is not convenient for financial analysis with JCs use.
The above conclusion justifies remodeling JCs with the use of the revised theory of OFN. The main aim of our paper is to describe JCs by means of oriented fuzzy numbers.
Our approach to represent JCs by OFNs differs to the approach represented by Marszałek and Burczyński (2013a, 2013b, 2014), who define the membership function of candles as some density function. In our opinion, such an approach is not compatible with the essence of the JCs.
Our paper is organized as follows. In Section 2, we present two kinds of trapezoidal OFNs: Kosiński’s numbers and oriented fuzzy numbers. At the end of this section, we justify the postulated restricting applications of the oriented fuzzy numbers. Section 3 contains the main information about JCs. In Section 4, we briefly discuss Marszałek’s approach and Kacprzak’s approach to modeling JCs by OFNs. Section 5 is the main part of our paper. In this section we propose our method of representing JCs by oriented fuzzy numbers. In Section 6, we determine the imprecise expected return rate by means of JCs models. Next, we show the possibility of application of this return rate for fuzzy portfolio analysis. This section is based on (Piasecki 2017). Section 7 presents a simple case study in which the introduced numerical model of JCs is applied for financial portfolio analysis. Section 8 contains final conclusions.

2. Fuzzy Numbers

The symbol ( ) denotes the family of all fuzzy sets in the real line . A commonly accepted model of imprecise number is the fuzzy number (FN), generally defined by Dubois and Prade (1978) as some kind of fuzzy subset ( ) . Thanks to the results obtained in (Goetschel and Voxman 1986), any FN can be equivalently defined as follows:
Theorem 1
(Delgado et al. 1998).For any FN there exists such a non-decreasing sequence ( a , b , c , d )   that L ( a , b , c , d , L L , R L ) = ( ) is determined by its membership function μ L ( · | a , b , c , d , L L , R L ) [ 0 , 1 ] described by the identity:
μ L ( x | a , b , c , d , L L , R L ) = {   0 , x [ a , d ] , L L ( x ) , x [ a , b ] , 1 , x [ b , c ] , R L ( x ) , x [ c , d ] ,
where the left reference function L L [ 0 , 1 ] [ a , b ] and the right reference function R L [ 0 , 1 ] [ c , d ] are upper semi-continuous monotonic ones meeting the conditions:
L L ( b ) = R L ( c ) = 1 ,
x ] a , d [ :   μ ( x | a , b , c , d , L L , R L ) > 0 .
Let us note that identity (1) additionally describes the extended notation of numerical intervals, which is used in this work. The family of all FNs is denoted by the symbol F . For any z [ b , c ] , a FN ( a , b , c , d , L L , R L ) is a formal model of linguistic variable “about z ”. Understanding the phrase “about z ” depends on the applied pragmatics of the natural language. In (Dubois and Prade 1979), arithmetic operations on FNs are introduced in such a way that they are coherent with the Zadeh’s extension principle. In our paper, we do not apply this arithmetic. Therefore, a description of arithmetic operations on FNs is omitted here.

2.1. Kosiński’s Number

The concept of ordered fuzzy numbers (OFN) was introduced by Kosiński and his co-writers in the series of papers (Kosiński and Słysz 1993; Kosiński et al. 2002, 2003) as an extension of the concept of FN. Thus, any OFN should be determined with the use of any fuzzy subset in real line . On the other side, Kosiński has defined OFN as an ordered pair of functions from the unit interval [ 0 , 1 ] into . This pair is not similar to any fuzzy subset in . It means that the Kosiński’s proposal of OFN notion is not an extension of FN. Thus, we can not to accept Kosiński’s original terminology. For this reason, we are agreeing with other scientists (Prokopowicz 2016; Prokopowicz and Pedrycz 2015) that the OFN defined by Kosiński should be called the Kosiński’s number (KN). Let the symbol f denote the pseudo-inversion of monotonic continuous surjection f [ r , s ] [ t , u ] . KNs are originally defined as follows:
Definition 1.
For any sequence ( a , b , c , d ) , the KN S ( a , b , c , d , f s ,   g s ) is defined as an ordered pair ( f S , g S ) of monotonic continuous surjections f S : [ 0 , 1 ] U P S = [ a , b ] and g S : [ 0 , 1 ] DOWN S = [ c , d ] fulfilling the condition:
f s ( 0 ) = a   a n d   f s ( 1 ) = b a n d   g s ( 1 ) = c   a n d g s ( 0 ) = d .
For any KN S ( a , b , c , d , f s ,   g s ) , the function f S U P s [ 0 , 1 ] is called the up-function. Then, the function g S D O W N s [ 0 , 1 ] is called the down-function. Moreover, for KN S ( a , b , c , d , f s ,   g s ) , the number a is called the starting point and the number d is called the ending point. The space of all KNs is denoted by the symbol K ˇ . Any sequence ( a , b , c , d ) satisfies exactly one of the following conditions:
b < c     ( b = c   a n d   a < d ) ,
b > c     ( b = c   a n d   a > d ) ,
b = c   a n d   a = d .
If the condition (5) is fulfilled, then the KN S ( a , b , c , d , f s ,   g s ) has a positive orientation. For this case, an example of graphs of KN is presented in Figure 1a. Any positively oriented K’N is interpreted as an imprecise number, which may increase. If the condition (6) is fulfilled, then KN S ( a , b , c , d , f s ,   g s ) is negatively oriented. Then, it is interpreted as an imprecise number, which may decrease. For the case (7), KN S ( a , b , c , d , f s ,   g s ) represents the interval [ a , b ] .
In (Piasecki 2018) it is shown that we have:
Theorem 2.
For any sequence ( a , b , c , d ) , the KN S ( a , b , c , d , f s ,   g s ) is explicitly determined by its membership relation μ s ( · | a , b , c , d , f s ,   g s ) × [ 0 , 1 ] given by the identity:
μ L ( x | a , b , c , d , , f s ,   g s ) = { 0 , x [ a , d ] [ d , a ] , f s ( x ) , x [ a , b ] [ b , a ] , 1 , x [ b , c ] [ c , b ] , g s ( x ) ,   x [ c , d ] [ d , c ] .
The graph of membership function of KN S ( a , b , c , d , f S , g S ) is presented in Figure 1b. A membership relation of any KN may be represented by the graph which has an extra arrow from the starting point to the ending one. This arrow denotes the KN orientation, which shows supplementary information about possible changes of the approximated number. The graph of KN membership function with positive orientation is shown in Figure 1c. Next, examples of such graphs are presented in Figure 2.
If the sequence ( a , b , c , d ) is not monotonic, then the membership relation μ s ( x | a , b , c , d , f s ,   g s ) × [ 0 , 1 ] is not a function. Then, this membership relation cannot be considered as a membership function of any fuzzy set. Therefore, for any non-monotonic sequence ( a , b , c , d ) , the KN S ( a , b , c , d , f S , g S ) is called an improper one (Kosiński 2006). An example of a membership relation of a negatively oriented improper KN is presented in Figure 3. The remaining KNs are called proper ones. Some examples of proper KNs were presented in Figure 2.
Kosiński et al. (2002, 2003) determined arithmetic operators for KNs as an extension of results obtained for FNs in (Goetschel and Voxman 1986). In our paper, we do not apply this arithmetic. Therefore, a description of arithmetic operations on FNs is omitted here.
Because in this paper we restrict our main considerations to the case of trapezoidal numbers, we will take into account the following definition:
Definition 2.
For any sequence ( a , b , c , d ) , the trapezoidal KN (TrKN) T r ( a , b , c , d ) is defined as KN determined by its membership relation μ T r ( · | a , b , c , d ) × [ 0 , 1 ] given by the identity:
μ T ( x ) = μ T r ( x | a , b , c , d ) = {   0 , x [ a , d ] [ d , a ] , x a b a , x [ a ,   b ] [ b , a ] 1 , x [ b , c ] [ c , b ] x d c d , x [ c , d ] [ d , c ] .
The symbol K ˇ T r denotes the space of all TrKNs. Some examples of membership relations of TrKN are presented in Figure 2 and Figure 3.
Kosiński et al. (2002, 2003) determine arithmetic operators for TrKNs in the following way:
  • The “dot multiplication” defined for any pair ( β , T r ( a , b , c , d )   ) × K ˇ T r by the identity:
    β T r ( a , b , c , d ) = T r ( β · a , β · b , β · c , β · d ) ,
  • The “Kosiński’s addition” K defined for any pair ( T r ( a , b , c , d ) , T r ( e , f , g , h ) ) ( K ˇ T r ) 2 by the identity:
    T r ( a , b , c , d ) K T r ( e , f , g , h ) = T r ( a + e , b + f , c + g , d + h ) .
The determining “dot multiplication” is coherent with the Zadeh’s extension principle. On the other hand, “Kosiński’s addition” is not coherent with the Zadeh’s extension principle. In (Kosiński 2006) it is shown that there exist such pairs of proper TrKNs that their Kosiński’s sum is an improper one. This is the main reason why Kosiński’s theory of OFNs was revised in (Piasecki 2018).

2.2. Oriented Fuzzy Numbers

Only in the case of any monotonic sequence ( a , b , c , d ) may the membership relation μ s ( · | a , b , c , d , f s ,   g s ) × [ 0 , 1 ] be interpreted as a membership function μ s ( · | a , b , c , d , f s ,   g s ) [ 0 , 1 ] . Thus, we distinguish the following kind of proper OFN.
Definition 3.
(Piasecki 2018) For any monotonic sequence ( a , b , c , d ) , the oriented fuzzy number (OFN) L ( a , b , c , d , S L , E L ) = is the pair of orientation a , d = ( a , d ) and fuzzy set ( ) described by membership function μ L ( | a , b , c , d , S L , E L ) [ 0 , 1 ] given by the identity:
μ L ( x | a , b , c , d , S L , E L ) = { 0 , x [ a , d ] [ d , a ] , S L ( x ) ,   x [ a , b ] [ b , a ] , 1 ,   x [ b , c ] [ c , b ] , E L ( x ) ,   x [ c , d ] [ d , c ] .
where the starting function S L [ 0 , 1 ] [ a , b ] and the ending function E L [ 0 , 1 ] [ c , d ] are upper semi-continuous monotonic ones meeting the conditions (3) and
S L ( b ) = E L ( c ) = 1 .
The symbol K denotes the space of all OFNs. Any OFN is a proper KN and any proper KN is OFN. Therefore, we have K K ˇ . The positive and negative orientations of OFN are determined in the same way as for the case of KN. The interpretation of a OFN orientation is identical to the interpretation of a KN orientation. For the family of all positively oriented OFNs and the family of all negatively oriented OFN, we respectively denote by the symbols K + and K . For any OFN L ( a , b , c , d , S L , E L ) , the condition (7) implies that:
a = b = c = d .  
Then, the OFN L ( a , a , a , a , S L , E L ) = a describes the real number   a which is not oriented. Summing up, we see that:
K = K +     K .
We restrict our main considerations to the case of trapezoidal OFN, defined as follows:
Definition 4.
For any monotonic sequence   ( a , b , c , d ) , the trapezoidal OFN (TrOFN) T r ( a , b , c , d ) is defined as OFN determined with use its membership function μ T r ( · | a , b , c , d ) [ 0 , 1 ] given by identity (9).
The symbol K T r denotes the space of all TrOFNs. In our considerations, we will only use the arithmetic operators determined for TrOFN. Then, the“Kosiński addition” K is replaced by “addition” defined for any pair ( T r ( a , b , c , d ) , T r ( p a , q b ,   r c , s d ) ) ( K T r ) 2 by the identity:
T r ( a , b ,   c , d ) T r ( p a , q b ,   r c , s d ) = { T r ( min { p , q } , q ,   r , max { r , s } ) , ( q < r ) ( q = r p s ) , T r ( max { p , q } , q ,   r , min { r , s } ) , ( q > r ) ( q = r p > s ) .
The space K T r is closed under the addition (Piasecki 2018). Moreover, sums obtained by using the addition are the best approximation of sums obtained by means of the Kosiński’s addition K (Piasecki 2018). The restrictions imposed in Definition 4 allow that TrOFNs may be analyzed with use of the fuzzy set theory. On the other hand, these methods of analysis are not applicable for TrKNs. Therefore, if we intend to apply trapezoidal OFNs for any additive model, then we should restrict our considerations to the use of the additive semigroup K T r ,   . This principle is shortly called the postulate restricting applications to the use of TrOFNs. It is very important restriction because we have many additive models of real-world problems. For example, financial portfolio analysis is an additive model.
Furthermore, the addition is not commutative. It implies that any multiple sum determined by may be dependent on its summands’ ordering (Piasecki 2018). For this reason, the assumed order of performing multiple additions may require additional justifications.
For any OFN, the “dot multiplication” operator is determined by the identity (10). As we know, the “dot multiplication” is coherent to the Zadeh’s extension principle. Therefore, using this principle, we can extend the “dot multiplication” operator to any unary operator linked to monotonic function G : A . This extension is determined in the following way:
If TrOFN T r ( a , b , c , d ) is represented by its membership function μ T r ( · | a , b , c , d ) [ 0 , 1 ] , then the membership function μ G [ 0 , 1 ] of OFN G = G ( T r ( a , b , c , d ) ) is given by the identity:
μ G ( x ) = μ T r ( G 1 ( x ) | G ( a ) , G ( b ) , G ( c ) , G ( d ) ) .
While discussing the results obtained, we will also refer to the disorientation map Ψ ¯ ¯ : K F determined in (Piasecki 2019) as follows:
Ψ ¯ ¯ ( ( a , b , c , d , S L , E L ) ) = { L ( a , b , c , d , S L , E L ) ( a , b , c , d , S L , E L ) K +   R , L ( d , c , b , a , E L , S L ) ( a , b , c , d , S L , E L ) K .

3. Japanese Candlesticks

We understand the term “security” as an authorization to receive a future financial revenue, payable to a certain maturity. Japanese Candlestick (JC) is a kind of financial chart used to describe the volatility of a fixed security quotation. The JC charting techniques are perfectly described by Nison (1991). The basic elements of JC charting techniques are the descriptions of a single JC.
Let fixed security be given as Y . For the assumed time period [ 0 , T ] , the volatility of the security Y quotations are described by the function Q : [ 0 , T ] + . Then, JC represents four important pieces of information about Y quotations:
  • The open price:
    P o = Q ( 0 ) ,
  • The close price:
    P c = Q ( T ) ,
  • The high price:
    P h = max { Q ( t ) : t [ 0 , T ] } ,
  • The low price:
    P l = min { Q ( t ) : t [ 0 , T ] } .
The high price and the low price together are called extreme prices. In brokerage house reports, each JC is usually described by the data set { P o , P c , P l , P h } of reported prices. In general, JCs are optional composed of:
  • The body determined as a rectangle between the open price and the closed price.
  • The upper wick determined as the line between the body and the high price.
  • The lower wick determined as the line between the body and the low price.
The body illustrates the opening and closing trades. We can note the following cases here:
P o < P c ,
P o > P c ,
P o = P c ,
If the condition (23) is met, then the candle body is white. Then, the JC is called White Candle or White Spinning. Any Black Candle may be considered as a bullish signal, i.e., a forecast of an increase in quotations. If the condition (24) is satisfied, then the candle body is black. Then, the JC is called Black Candle or Black Spinning. Any Black Candle may be considered as a bearish signal, i.e., a forecast of a decline in quotations. The general case of a White Candle and a Black Candle are presented in the Figure 4.
Any JC need not have either a body or a wick. If a JC fulfills the condition (25) then it does not have a body. Such a JC is called a Doji. We distinguish the following main kinds of Doji:
  • Doji Star is a JC fulfilling the condition:
    P l < P o = P c < P h ,
  • Dragonfly Doji is a JC fulfilling the condition:
    P l < P o = P c = P h ,
  • Gravestone Doji is a JC fulfilling the condition:
    P l = P o = P c < P h ,
  • Four Price Doji is a JC fulfilling the condition:
    P l = P o = P c = P h ,
These kinds of Doji are presented in Figure 5.
Example 1.
During the session on the Warsaw Stock Exchange (WSE) on July 23, 2019, we observed quotations of the following companies: Assecopol (ACP), CYFRPLSAT (CPS), ENERGA (ENG), JSW (JSW), KGHM (KGH), LOTOS (LTS), ORANGEPL (OPL), PGE(PGE), PKOBP (PKO). For each observed company, the results of our observations are recorded in Table 1 as reported price sets.
Each reported price set may be graphically presented by the JC mentioned in the last column of Table 1. Furthermore, we see that the quotations of ACP are assigned with a White Candle without a lover wick. In addition, all extreme prices are marked here with stars. The notions of earlier and later extreme prices are explained in Section 5.

4. Modeling of Japanese Candlesticks by Kosiński’s Numbers

Let us take into account two facts:
  • Any OFN may be interpreted as an imprecise approximation of a real number, which may change in direction determined by orientation.
  • Each JC may be used as such an approximation of market price that it is additionally equipped with information about this price trend.
For this reason, any JC may be represented by means of OFN. In this section, we focus our attention on the use of KN for modeling candles. In the literature we find two such models.

4.1. The Marszałek’s Approach

Let fixed security be given as Y quoted in the assumed time period [ 0 , T ] , Marszałek and Burczyński (2013a, 2013b, 2014) consider the observed quotation trend Q : [ 0 , T ] + as a realization of random variable. Considered security, Y , can be represented by the following parameters: the open price P o , the close price P c , the high price P h , and the low price P l .
At the beginning, the authors select two real numbers, S 1 ,   S 2 , fulfilling the condition:
P l < S 1 S 2 < P h .
Then, they calculate conditional probabilities:
f q ( x ) = P ( Q ( t ) > x | Q ( t ) > S 2 ) ,
g q ( x ) = P ( Q ( t ) < x | Q ( t ) < S 1 ) .
The above probabilities determine the functions f q : [ S 2 , P h ] [ 0 , 1 ] and g q : [ P l , S 1 ] [ 0 , 1 ] . Different methods of determining numbers S 1 ,   S 2 and estimating the probabilities (31) and (32) are discussed in (Marszałek and Burczyński 2013a, 2013b, 2014). However, in all the examples given there we observe that:
P o < S 1 S 2 < P c .
This restriction results from the requirements of probability estimation methods. Finally, authors save the observed quotation trend Q : [ 0 , T ] + as KN Q K ˇ , determined in the following way:
Q = S ( a , b , c , d , f s , g s ) = { S ( P l , S 1 , S 2 , P h , g q , f q ) P o < P c S ( P h , S 2 , S 1 , P l , f q , g q ) P o > P c .
It is easy to see that the essence of the above KN is similar to the JC essence. For this reason, we agree with Marszałek and Burczyński that the above KN Q may be called oriented fuzzy candlestick (OFC). In our opinion, OFCs are an excellent short record of quotation volatility. In (Marszałek and Burczyński 2013a, 2013b, 2014), it is shown that OFC is very useful for financial decision making. Unfortunately, OFC does not save information about the low price P l and high price P h . Therefore, any OFC is not a quantitative model of JC.

4.2. The Kacprzak’s Approach

Kacprzak et al. (2013) propose ex cathedra the universal way of presenting JC as TrKN T r ( P l , P o , P c , P h ) . Then, any White Candle is represented by positively oriented TrKN, which is a proper one. The membership function of this White Candle is presented in Figure 6a. In line with the Kacprzak’s approach, any Black Candle is described by negatively oriented TrKN, which is an improper one. In Figure 6b, we can see the graph of a membership relation describing a Black Candle. Any Doji is represented by proper TrKN.
Example 2.
We describe each Japanese candle observed in Example 1 by TrKN determined by means of the Kacprzak’ method. Obtained representations are presented in Table 2. All improper TrKNs are indicated in red.
To our best knowledge, for the moment, the described Kacprzak’s representation of JCs have not found an application in finance theory or practice. We suppose that it results from the fact that Kacprzak’s approach to JCs’ modeling is not coherent with the postulate restricting applications to the use of TrOFNs. Thus, in the next section, we will propose a universal model of representing JCs by TrOFN.

5. Representation of Japanese Candlesticks by Trapezoidal Oriented Fuzzy Numbers (TrOFN)

In above section, we conclude that any JC should be represented by TrOFN. That is why we are reconsidering the fixed JC, J C ˜ . Let J C ˜ be reported by the data set { P o , P c , P l , P h } of reported prices. Then, J C ˜ may be represented by a TrOFN T r ( α , β , γ , δ ) , where a sequence ( α , β , γ , δ ) is a monotonic permutation of all reported prices. Moreover, it is obvious that the TrOFN T r ( α , β , γ , δ ) should be oriented from open price P o to close price P c . It means that in a general case, any sequence ( α , β , γ , δ ) contains the subsequence ( P o , P c ) . From dependences (19)–(22), we get:
P l min { P o , P c } max { P o , P c } P h .
We see that in a general case, the starting point and ending point are extreme prices. Therefore, any J C ˜ may be be represented only by a TrOFN T r ( α , P o , P c , δ ) where the sequence ( α , δ ) is such a permutation of extreme prices that the sequence ( α , P o , P c , δ ) is monotonic. Looking for a universal method for determining the permutation ( α , δ ) , in the first step, we will change the identification of extreme prices.
The orientation from open price, P o , to close price, P c , may be determined unambiguously only for the case when J C ˜ has a body. It is equivalent to the condition:
P o P c .
If the extreme price, P b { P l ,   P h } , is closer to the open price, P o , than to the close price, P c , then the price, P b , is called the back price. In other words, the extreme price, P b { P l ,   P h } , is called the back price if it fulfills the condition:
| P b P o | | P b P c | .
In this way, for the White Candle, the back price, P b , is equal to the low price, P l , and for the Black Candle, the back price, P b , is equal to the high price, P h . If the extreme price, P f { P l ,   P h } , is closer to the close price, P c , than to the open price, P o , then the price, P f , is called face price. In other words, the extreme price, P b { P l , P h } , is called the face price if it fulfills the condition:
| P f P c | | P f P o | .
In this way, for the White Candle, the face price, P f , is equal to the high price, P h , and for the Black Candle, the face price, P f , is equal to the low price, P l . Thanks to condition (36), the back price, P b , and the face price, P f , are determined explicitly. With this reinterpretation of extreme prices, we get a modernized model of JCs which have a body. The general cases of a White Candle and a Black candle are presented in Figure 7.
The sequence ( P b , P o , P c , P f ) is the unique monotonic permutation of reported prices which contains the subsequence ( P o , P c ) . For this reason, we propose to describe the Japanese Candle, J C , ˜ by the TrOFN, T r ( P b , P o , P c , P f ) . Then, any White Candle is represented by positively oriented TrOFN determined by the membership function presented in Figure 8a. In this representation, any Black Candle is described by negatively oriented TrOFN determined by the membership function presented in Figure 8b.
Now, we consider the case (25) when the considered J C ˜ is a Doji. Then, the inequality (35) implies that for any permutation ( α , δ ) of extreme prices, the sequence ( α , P o , P c , δ ) = ( α ,   P c , P c , δ ) is monotonic. Then Doji J C ˜ may be represented by a TrOFN, T r ( α , P c , P c , δ ) , where the subsequence ( α , δ ) is any permutation of extreme prices. On the other hand, in line with (5) and (6), the orientation of T r ( α , P c , P c , δ ) can only be determined as orientation from the starting point to the ending point. Furthermore, for any Doji, the back price, P b , and the face price, P f , are not explicitly determined. Thus, the orientation of TrOFN representing any Doji cannot be defined as the direction from a back price, P b , to a face price, P f . For these reasons, we propose to present any Doji by TrOFN with orientation from the earlier extreme price, P x e , to the later extreme price, P x l .
The kinds of extreme prices mentioned above are determined in the following way. At the beginning, we assign each quotation Q ^ Q ( [ 0 , T ] ) the last moment τ ( Q ^ ) of its observation defined by the identity:
τ ( Q ^ ) = max { t [ 0 , T ] : Q ( t ) = Q ^ } .
Let us consider now the case when:
P l P h .
Then, we get:
τ ( P l ) τ ( P h )
Then, the earlier extreme price, P x e , and later extreme price, P x l , we define as follows:
P x e = { P l , τ ( P l ) < τ ( P h ) , P h , τ ( P l ) > τ ( P h ) ,
P x l = { P h , τ ( P l ) < τ ( P h ) , P l , τ ( P l ) > τ ( P h ) .
In this way, we interpret extreme prices as an earlier or later one. With this reinterpretation of extreme prices, we get a modernized model of Doji. The general cases Doji Stars are presented in Figure 9.
We propose to describe any Doji by TrOFN, T r ( P x e , P c , P c , P x l ) . Then, the Doji Star presented in Figure 9a is described by the positively oriented TrOFN, T r ( P l , P c , P c , P h ) . The Doji Star presented in Figure 9b is described by the negatively oriented TrOFN, T r ( P h , P c , P c , P l ) . These representations of Doji are determined by their membership functions presented in Figure 10.
For any Dragonfly Doji we have:
τ ( P h ) = τ ( P c ) = T > τ ( P l ) .
Thus, any Dragonfly Doji is represented by positively oriented TrOFN, T r ( P l , P c , P c , P c ) . This positive orientation is consistent with the common belief that any Dragonfly Doji could signal a potential bullish reversal of market quotations. The Dragonfly Doji modernized model is shown in Figure 11a.
For any Gravestone Doji we have:
τ ( P l ) = τ ( P c ) = T > τ ( P h ) .
Therefore, any Gravestone Doji is represented by negatively oriented TrOFN, T r ( P h , P c , P c , P c ) . This negative orientation is consistent with the common belief that any Gravestone Doji could signal a potential bearish reversal of market quotations. The Gravestone Doji modernized model is shown in Figure 11b.
If the condition (40) is not satisfied, then we get:
P l = P o = P c = P h .
This case corresponds to the Four Price Doji, the modernized model of which is presented in Figure 11c. Any Four Price Doji is described by the TrOFN, T r ( P c , P c , P c , P c ) = P c , which is not oriented.
It is very easy to check that all types of Japanese candles omitted in the above specification are only special cases of the discussed candles.
Example 3.
We describe each Japanese candle observed in Example 1 by TrOFN determined by means of the method proposed by us. The quotations ACP and OPL are assigned with White Candles represented by TrOFNs in the form T r ( P l , P o , P c , P h ) . The quotations of CPS, JSW, KGH, LTS, and PGE OPL are assigned with Black Candles represented by TrOFNs in the form T r ( P h , P o , P c , P l ) . The quotations ENG and PKO are assigned with Doji Star. Therefore, we should determine an earlier extreme price P x e and a later one P x l for both companies. W e   a r e   l o o k i n g   f o r   t h e s e   p r i c e s   b y   s t u d y i n g   t i c k d a t a .   The results of this search are shown in Table 1. For ENG, we get P x e = P l and P x l = P h . Therefore, the quotations of ENG are assigned to Doji Star represented by TrOFN in the form T r ( P l , P c , P c , P h ) . For PKO, we obtain P x e = P h and P x l = P l . Therefore, the quotations of PKO are assigned to Doji Star represented by TrOFN in the form T r ( P h , P c , P c , P l ) . Obtained representations are presented in Table 2. All positively oriented TrOFNs are indicated in green. All negatively oriented TrOFNs are indicated in blue.
In summary, any JC can be represented by TrOFN:
J C = T r ( α , P o , P c , δ )
where the sequence ( α , δ ) is such a permutation of extreme prices { P l , P h } that it is determined by conditions (37) and (38) or by (42) and (43), or by (46).
Any security may be evaluated by a present value (PV) generally defined as a current equivalent value of payments at a fixed point in time (Piasecki 2012). It is commonly accepted that the PV of a future cash flow can be imprecise. The natural consequence of this approach is estimating PV with FNs. A detailed description of the evolution of this particular model can be found, for example in (Łyczkowska-Hanćkowiak and Piasecki 2018a). If an imprecisely estimated PV is additionally equipped with a forecast of its closest changes, then it is called oriented PV (OPV). It is obvious that any OPV should be represented by an OFN P V .
Let us take into account the fixed security Y . If the volatility of its quotations is characterized by JC (47) then we can determine its OPV as follows:
P V ( Y ) = J C = T r ( α , P o , P c , δ ) .
Then, the OPV membership function μ T r ( · | α , P o , P c , δ ) is determined by condition (9). Some applications of such an approximated OPV are given in Section 6 and Section 7.

6. Oriented Expected Return Determined by Japanese Candlestick

Let us assume that the time horizon t > 0 of an investment is fixed. Then, the security Y considered here is determined by two values:
  • Anticipated FV V t and
  • Assessed PV V 0 .
The basic characteristic of benefits from owning this security is a return rate r t given by the identity:
r t = r ( V 0 , V t )
In the general case, if ( V 0 , V t ) + × + , then the function: r : + × + is a decreasing function of PV and an increasing function of FV. Moreover, in the special case, we have here:
  • Simple return rate:
    r t = V t V 0 V 0 = V t V 0 1
  • Logarithmic return rate:
    r t = ln V t V 0 .
In this section, we restrict our considerations to the case of any simple return rate given by condition (50). Thanks to this, our considerations will be more clear. However, the results obtained can be easily generalized to the case of generalized return rate given by condition (49).
The security Y is an authorization to receive future financial revenue, payable to a certain maturity. The value of this revenue is interpreted as the anticipated FV of the security. According to the uncertainty theory introduced by Von Mises (1962) and Kaplan and Barish (1967), for anyone unknown to us, the future state of affairs is uncertain. The Mises–Kaplan uncertainty is a result of our lack of knowledge about the future state of affairs. Yet, in the researched case, we can point out this particular time in the future, in which the considered state of affairs will already be known to the observer. Behind (Kolmogorov 1933, 1956; Von Mises 1957; Von Lambalgen 1996; Caplan 2001), we will accept that this is a sufficient condition for modeling the uncertainty with probability.
Above is justified in detail that FV is a random variable   V ˜ t : Ω + . The set, Ω , is a set of elementary states, ω , of the financial market. In a classical approach to the problem of return rate estimation, a security PV is identified with the observed market price, C ˇ . Thus, the return rate is a random variable determined by identity:
r t ( ω ) = V ˜ t ( ω ) C ˇ C ˇ .
In practice of financial markets analysis, the uncertainty risk is usually described by probability distribution of return rate determined by condition (52). Nowadays, we have an extensive knowledge about this subject. Let us assume that the mentioned probability distribution is given by cumulative distribution function F r ( · | r ¯ ) : [ 0 ; 1 ] . We assume that the expected value, r , ¯ of this distribution exists. Moreover, let us note that we have:
V ˜ t ( ω ) = C ˇ · ( 1 + r t ( ω ) ) .
Let us now consider the case when PV is imprecisely estimated by OPV P V ( Y ) , determined by conditions (47) and (48). Then, it is represented by its membership function μ P v [ 0 , 1 ] given by identities:
μ P v ( x ) = μ T r ( x | α , P o , P c , δ )
and (9). Then, the Zadeh’s extension principle, (50) and (52), imply that a return rate is a fuzzy probabilistic set (Hirota 1981) represented by its membership function ρ ˜ [ 0 ; 1 ] × Ω as follows:
ρ ˜ ( r , ω ) = μ P V ( V t ( ω ) 1 + r ) = μ P V ( C ˇ · ( 1 + r t ( ω ) ) 1 + r ) .
The membership function, ρ [ 0 ; 1 ] , of an expected return rate, K , is calculated as:
ρ ( r ) = + μ P V ( C ˇ · ( 1 + y ) 1 + r ) d F r ( y | r ¯ ) = μ P V ( C ˇ · ( 1 + r ¯ ) 1 + r ) .
According to conditions (9) and (54), the Formula (56) can be transformed into:
ρ ( r ) = { C ˇ · 1 + r ¯ 1 + r α P o α , for α C ˇ · 1 + r ¯ 1 + r < P o , 1 , for P o C ˇ · 1 + r ¯ 1 + r < P c , C ˇ · 1 + r ¯ 1 + r δ P c δ , for P c < C ˇ · 1 + r ¯ 1 + r δ , 0 , for C ˇ · 1 + r ¯ 1 + r > δ   C ˇ · 1 + r ¯ 1 + r < α .
Finally, we get that expected return rate is equal to OFN K , given as follows:
= L ( C ˇ · ( 1 + r ¯ ) α 1 , C ˇ · ( 1 + r ¯ ) P o 1 , C ˇ · ( 1 + r ¯ ) P c 1 , C ˇ · ( 1 + r ¯ ) δ 1 , S L ,   E L ) ,
where,
S L ( x ) = C ˇ · 1 + r ¯ 1 + x α P o α ,
E L ( x ) = C ˇ · 1 + r ¯ 1 + x δ P c δ .
The above determined expected return rate, , is an example of the oriented expected return rate (Piasecki 2017). We see that the expected return rate is not TrOFN. Moreover, the identities (48) and (58) show that JC and the expected return rate determined by it always have opposite orientations. Therefore, we can say:
  • Rise in quotations predicted by JC allows us to anticipate a decline in the expected return rate.
  • Fall in quotations predicted by JC allows us to anticipate an upturn in the expected return rate.
In theory and practice of finance, both of these facts are well known. This observation proves that the extension of the fuzzy models of imprecise PV and return rate to the case of oriented fuzzy models is the appropriate direction for the development of fuzzy finance theory.
Using the disorientation map (34), we can convert any oriented expected rate to fuzzy return rate. Then, JCs may be applied in fuzzy portfolio analysis (Fang et al. 2008; Gupta et al. 2014) or in (Piasecki 2014).
Example 4.
During the session on the Warsaw Stock Exchange on 23 July, 2019, we observed quotations of ORANGEPL. The volatility of these quotations is characterized by JC J C O P L = T r ( 6.17 ,   6.18 ,   6.38 ,   6.47 ) . Then, in agreement with condition (48), the ORANGEPL OPV is equal to positively oriented:
P V ( O P L ) = T r ( 6.17 ,   6.18 ,   6.38 ,   6.47 ) .
The expected quarterly return rate from ORANGEPL is determined by the broker’s office as follows: r ¯ = 0.025 . We determined the ORANGEPL market price C ^ = 6.20 as open price on 24 July, 2019. From conditions (58)–(60), we get that expected return rate is equal to the negatively oriented OFN K , given as follows:
= L ( 0.0300 , 0.0283 , 0.0039 , 0.0178 , S L ,   E L ) ,
where,
S L ( x ) = 18.5 617.0 · x 1 + x ,
E L ( x ) = 1.278 + 71.68 · x 1 + x .
Finally, using the disorientation map (34), we calculate fuzzy expected return rate, F , in the following way:
= L ( 0.0178 , 0.0039 , 0.0283 , 0.3000 , E L ,   S L ) = Ψ ( L ( 0.0300 , 0.0283 , 0.0039 , 0.0178 , S L ,   E L ) )

7. Case Study

In this section, we present some simple applications of JCs for financial portfolio analysis. The main aim of this section is to show that the proposed JC representation is applicable in quantified analyses of the financial market. Such presentation requires a prior explanation of the theoretical foundations of this case study.

7.1. Theoretical Background

From a financial portfolio, we will understand an arbitrary, finite set of financial assets. In this section, we restrict our considerations to the case of assets given as securities quoted in an assumed time period.
We consider a multi-assets portfolio, π , consisting of assets, Y i   ( i = 1 , 2 , , n ) . Each of the assets Y i π are characterized by OPV:
P V ( Y i ) = T r ( α ( i ) ,   P o ( i ) ,   P c ( i ) , δ ( i ) ) .
We distinguish the rising securities’ portfolio, π + π , and the falling securities’ portfolio, π π , as follows:
π + = { Y i π : P V ( Y i ) K +   } ,
π = { Y i π : P V ( Y i ) K } .
The portfolio PV is always equal to the sum of its components’ PV. For the OPV case, the addition should be modeled by sum . In (Piasecki 2018), it is shown that a result of multiple additions depends on summands permutation. It implies that the portfolio’s OPV given as any multiple sum of components’ OPV is not explicitly determined. Therefore, in (Łyczkowska-Hanćkowiak and Piasecki 2018a), some reasonable method of calculating a portfolio’s OPV is proposed.
At first we calculate OPV of the rising securities’ portfolio π + :
P V ( π + ) = + Y i π + P V ( Y i )
and OPV of the falling securities’ portfolio π :
P V ( π ) = + Y i π P V ( Y i ) .
In (Piasecki 2018), it is proven that both sums (64) and (65) do not depend on permutation of the summand. Therefore, these sums are determined explicitly. Moreover, single addition is commutative. Therefore, we can to determine OPV of total portfolio, π , in an explicit manner as the sum:
P V ( π ) = P V ( π + ) P V ( π ) .
The above approach is sufficient to manage portfolio risk, because only rising securities can get BUY or ACCUMULATE recommendations and only falling securities can get SELL or REDUCE recommendations. The complex form of the addition definition (16) allows us to use OPV only for the evaluation of an already constructed portfolio. Such an evaluation may be carried out using the analytical tools described in Section 5 and by (Łyczkowska-Hanćkowiak 2019a, 2019b; Łyczkowska-Hanćkowiak and Piasecki 2018b, 2019a, 2019b).

7.2. Empirical Study

We analyzed the portfolio of shares listed in Example 1. After closing the session on the WSE on July 23, 2019, we evaluated the portfolio, π , of:
  • The block B 1 of 10 shares of ACP,
  • The block B 2 of 29 shares of CPS,
  • The block B 3 of 30 shares of ENG,
  • The block B 4 of 5 shares of the JSW,
  • The block B 5 of 5 shares of KGH,
  • The block B 6 of 10 shares of LTS,
  • The block B 7 of 100 shares of OPL,
  • The block B 8 of 50 shares of PGE,
  • The block B 9 of 10 shares of PKO.
For each security Y π , its OPV P V ( Y ) is estimated by current JC J C Y ,   as presented in Example 3 and Table 2. Using the identity (10), for each considered block B i   ( i = 1 , 2 , , 9 ) of shares, we calculate their OPV P V ( B i ) as follows:
P V ( B 1 ) = 10 J C A C P = T r ( 560.00 ,   560.00 ,   565.50 ,   571.50 ) ,
P V ( B 2 ) = 29 J C C P S = T r ( 876.96 ,   874.06 ,   870.00 ,   862.46 ) ,
P V ( B 3 ) = 30 J C E N G = T r ( 227.40 ,   228.00 ,   228.00 ,   231.30 ) ,
P V ( B 4 ) = 5   J C J S W = T r ( 213.40 ,   213.00 ,   209.60 ,   209.00 ) ,
P V ( B 5 ) = 5   J C K G H = T r ( 489.80 ,   487.50 ,   483.10 ,   479.70 ) ,
P V ( B 6 ) = 10   J C L T S = T r ( 887.00 ,   887.00 ,   874.80 ,   868.20 ) ,
P V ( B 7 ) = 100   J C O P L = T r ( 617.00 ,   618.00 ,   638.00 ,   647.00 ) ,
P V ( B 8 ) = 100   J C P G E = T r ( 957.00 ,   948.00 ,   932.00 ,   925.00 ) ,
P V ( B 9 ) = 10   J C P K O = T r ( 427.90 ,   426.00 ,   426.00 ,   424.20 ) .
In the next step, we distinguish the rising securities’ portfolio π + and the falling securities’ portfolio π as follows:
π + = { A C P ,   E N G ,   O P L ,   } ,
π = { C P S ,   J S W ,   K G H ,   L T S ,   P G E ,   P K O } .
Then, we calculate OPVs of the rising securities’ portfolio π + π and the falling securities’ portfolio π π . Due to conditions (64) and (65), we obtain:
P V ( π + ) = P V ( B 1 ) P V ( B 3 ) P V ( B 7 ) = T r ( 1404.40 ,   1406.00 ,   1431.50 ,   1449.80 ) ,
P V ( π ) = P V ( B 2 ) P V ( B 4 ) P V ( B 5 ) P V ( B 6 ) P V ( B 8 ) P V ( B 9 ) = T r ( 3852.06 ,   3835.56 ,   3795.50 ,   3768.56 ) .
The membership functions of P V ( π + ) and P V ( π ) are presented in Figure 12.
In the last step, due to condition (66), we determine OPV of portfolio π as the sum:
P V ( π ) = P V ( π + ) P V ( π ) = T r ( 5256.46 ,   5241.56 ,   5227.00 ,   5218.38 ) .
The membership function of P V ( π ) is presented in Figure 12. We notice that the portfolio π is evaluated by a Black Candle, which is a bearish signal. Moreover, the above result may be applied for determining the imprecise expected return from portfolio π . This return rate should be calculated in such a way as that presented in Example 4.
After Klir (1993), we distinguish the ambiguity as a component of imprecision. Ambiguity is understood as a lack of a clear recommendation between one alternative among various others. Ambiguity increases with the amount of the recommended alternatives. With the increase in ambiguity, imprecision is growing too. Comparing the membership function charts, we see that OPV ambiguity of total portfolio, π , is less than OPV ambiguity of the rising securities’ portfolio, π + π , and the falling securities’ portfolio, π π . In (Piasecki et al. 2019), the mathematical theorem showing that the analogous result we get for any total portfolio containing simultaneously rising securities and falling securities was proven. In addition, it was proven that this effect is not revealed when we use FNs to determine imprecise PV. Thanks to this, we can conclude that the replacement of FN by OFN reduces the imprecision of the determined PV. This is another benefit of using OFNs.

8. Summary

It is a well-known fact that JCs are a very convenient tool for synthetic recording of high-frequency time series of financial data. We have shown that each JC may be explicitly represented by such a TrOFN that its orientation is always consistent with the closest quotations’ changes predicted by the represented JC. The positive orientation of JC representation always means a bullish signal. The negative orientation of JC representation is always a bearish signal. The proposed JC numerical model distinguishes all JC types. In addition, the use of this model does not cause a loss of information about the represented JC. Therefore, the JC representation described here can be recommended as a numerical tool for analyzing high-frequency financial data.
The proposed JC numerical model highlights the imprecision of capital market assessments. In the case of economics and finance, this imprecision is a natural state of affairs. Therefore, we can conclude that the proposed model reflects the essence of information about the observed capital market well. On the other hand, a fuzzy set is a commonly used imprecise information model. The replacement of Kacprzak’s model by our model means that we can apply the whole fuzzy sets theory to the analysis of JCs. To our best knowledge, the JC fuzzy numerical model proposed by us is a unique one which is coherent with fuzzy set theory. Some possibilities of application of the usual fuzzy set theory are shown. In a special case, we can use methods dedicated to OFNs.
We showed a simple application of our JC model for financial portfolio analysis. The results obtained have the possibility of further application in any financial analysis. It proves that the JC model proposed by us is applicable for financial analysis.
Each JC chart is a finite sequence of JCs describing the volatility of fixed security quotation in an assumed period of time. Financial practitioners distinguish JC patterns defined as such families of short JC sequences similar to a given reference pattern, which they believe can predict a particular quotations’ movement. Using the results obtained in this work, we can recognize any JC chart as a sequence of TrOFNs. Therefore, our model can be used for recognition of JC patterns on a current JC chart. The above remark well justifies the need for further research into determining known reference patterns.
Moreover, our JC model should be used to test high-frequency financial data systems to determine the optimal time horizon described by a single JC. We recommend this research field as a very promising area of scientific considerations and discussion.
The directions of future research described above are very general. We can also suggest more detailed directions of future research. An interesting problem here is the use of the JC numerical model to determine the orientation of behavioral present value (Piasecki 2011; Piasecki and Siwek 2015; Łyczkowska-Hanćkowiak 2017). Another interesting problem is the use of our numerical JC model as a premise in the models described in (Marszałek and Burczyński 2013a, 2013b, 2014). Then, we can compare the effects of the application of our numerical JC model with the effects of the application of Marszałek’s fuzzy candles.

Author Contributions

Conceptualization, K.P. and A.Ł.-H.; methodology, K.P.; validation, A.Ł.-H.; formal analysis, A.Ł.-H.; data collection A.Ł.-H.; writing—original draft preparation, K.P.; writing—review and editing, K.P. and A.Ł.-H.; visualization, A.Ł.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The authors are very grateful to the guest editor and to the anonymous reviewers for their insightful and constructive comments and suggestions. Using these comments allowed us to improve our paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bankier.pl. n.d. Available online: https://www.bankier.pl/inwestowanie/profile/quote.html?symbol=WIG20 (accessed on 5 August 2019).
  2. Caplan, Bryan. 2001. Probability, common sense, and realism: A reply to Hulsmann and Block. The Quarterly Journal of Austrian Economics 4: 69–86. [Google Scholar]
  3. Delgado, Miguel, Maria Amparo Vila, and Wiliam Voxman. 1998. On a canonical representation of fuzzy numbers. Fuzzy Sets and Systems 93: 125–35. [Google Scholar] [CrossRef]
  4. Detollenaere, Benoit, and Pablo Mazza. 2014. Do Japanese candlesticks help solve the trader’s dilemma? Journal of Banking and Finance 48: 386–95. [Google Scholar] [CrossRef]
  5. Dubois, Didier, and Henri Prade. 1978. Operations on fuzzy numbers. International Journal of Systems Science 9: 613–29. [Google Scholar] [CrossRef]
  6. Dubois, Didier, and Henri Prade. 1979. Fuzzy real algebra: Some results. Fuzzy Sets and Systems 2: 327–48. [Google Scholar] [CrossRef]
  7. Fang, Young, King Keung Lai, and Shouyaung Wang. 2008. Fuzzy Portfolio Optimization. Theory and Methods. Lecture Notes in Economics and Mathematical Systems 609. Berlin: Springer. [Google Scholar]
  8. Fock, J. Henning, Christian Klein, and Bernhard Zwergel. 2005. Performance of Candlestick Analysis on Intraday Futures Data. Journal of Futures Markets 13: 28–40. [Google Scholar] [CrossRef]
  9. Goetschel, Roy, and Wiliam Voxman. 1986. Elementary fuzzy calculus. Fuzzy Sets and Systems 18: 31–43. [Google Scholar] [CrossRef]
  10. Gupta, Pankaj, Mukesh Kumar Mehlawat, Masahiro Inuiguchi, and Suresh Chandra. 2014. Fuzzy Portfolio Optimization. Advances in Hybrid Multi-Criteria Methodologies. Studies in Fuzziness. Berlin: Springer. [Google Scholar]
  11. Herrera, Francisco, and Enrique Herrera-Viedma. 2000. Linguistic decision analysis: Steps for solving decision problems under linguistic information. Fuzzy Sets and Systems 115: 67–82. [Google Scholar] [CrossRef]
  12. Hirota, Karou. 1981. Concepts of probabilistic sets. Fuzzy Sets and Systems 5: 31–46. [Google Scholar]
  13. Jasemi, Milad, Ali Mohammad Kimigiari, and Azizollah Memariani. 2011. A modern neural network model to do stock market timing on the basis of the ancient investment technique of Japanese Candlestick. Expert Systems with Applications 38: 3884–90. [Google Scholar] [CrossRef]
  14. Kacprzak, Dariusz, Witold Kosiński, and Witold Konrad Kosiński. 2013. Financial Stock Data and Ordered Fuzzy Numbers. In Artificial Intelligence and Soft Computing. ICAISC 2013. Edited by Leszek Rutkowski, Marcin Korytkowski, Rafał Scherer, Ryszard Tadeusiewicz, Lofti A. Zadeh and Jacek M. Zurada. Lecture Notes in Computer Science. Berlin and Heidelberg: Springer, vol. 7894, pp. 1–12. [Google Scholar] [CrossRef]
  15. Kamo, Takemori, and Cihan Dagli. 2009. Hybrid approach to the Japanese candlestick method for financial forecasting. Expert Systems with Applications 36: 5023–30. [Google Scholar] [CrossRef]
  16. Kaplan, Seymour, and Norman N. Barish. 1967. Decision-Making Allowing Uncertainty of Future Investment Opportunities. Management Science 13: 569–77. [Google Scholar] [CrossRef]
  17. Klir, George J. 1993. Developments in uncertainty-based information. Advances in Computers 36: 255–332. [Google Scholar] [CrossRef]
  18. Kolmogorov, Andrey Nikolaevich. 1933. Grundbegriffe der Wahrscheinlichkeitsrechnung. Berlin: Julius Springer. [Google Scholar]
  19. Kolmogorov, Andrey Nikolaevich. 1956. Foundations of the Theory of Probability. New York: Chelsea Publishing Company. [Google Scholar]
  20. Kosiński, Witold. 2006. On fuzzy number calculus. International Journal of Applied Mathematics and Computer Science 16: 51–57. [Google Scholar]
  21. Kosiński, Witold, and Piotr Słysz. 1993. Fuzzy numbers and their quotient space with algebraic operations. Bulletin of the Polish Academy of Sciences 41: 285–95. [Google Scholar]
  22. Kosiński, Witold, Piotr Prokopowicz, and Dominik Ślęzak. 2002. Fuzzy numbers with algebraic operations: Algorithmic approach. In Proc.IIS’2002 Sopot. Edited by Mieczysław Klopotek, Sławomir T. Wierzchoń and Maciej Michalewicz. Heidelberg: Poland Physica Verlag, pp. 311–20. [Google Scholar]
  23. Kosiński, Witold, Piotr Prokopowicz, and Dominik Ślęzak. 2003. Ordered fuzzy numbers. Bulletin of the Polish Academy of Sciences 51: 327–39. [Google Scholar]
  24. Von Lambalgen, Michiel. 1996. Randomness and foundations of probability: Von Mises’ axiomatization of random sequences. In Probability, Statistics and Game Theory, Papers in Honor of David Blackwell. Edited by Thomas S. Ferguson, Lloyd Stowell Shapley and Jim B. MacQueen. Harward: Institute for Mathematical Statistics, pp. 347–68. [Google Scholar]
  25. Lee, Chiung-Hon Leon, Alan Liu, and Wen-Sung Chen. 2006. Pattern discovery of fuzzy time series for financial prediction. IEEE Transactions on Knowledge and Data Engineering 18: 613–25. [Google Scholar]
  26. Łyczkowska-Hanćkowiak, Anna. 2017. Behavioural Present Value determined by ordered fuzzy number. SSRN Electronic Journal. [Google Scholar] [CrossRef]
  27. Łyczkowska-Hanćkowiak, Anna. 2019a. Sharpe’s Ratio for Oriented Fuzzy Discount Factor. Mathematics 7: 272. [Google Scholar]
  28. Łyczkowska-Hanćkowiak, Anna. 2019b. Jensen Alpha for Oriented Fuzzy Discount Factor. Paper presented at the 37th International Conference on Mathematical Methods in Economics 2019, České Budějovice, Czech Republic, September 11–13; pp. 79–84. [Google Scholar]
  29. Łyczkowska-Hanćkowiak, Anna, and Krzysztof Piasecki. 2018a. The present value of a portfolio of assets with present values determined by trapezoidal ordered fuzzy numbers. Operations Research and Decisions 28: 41–56. [Google Scholar] [CrossRef]
  30. Łyczkowska-Hanćkowiak, Anna, and Krzysztof Piasecki. 2018b. The expected discount factor determined for present value given as ordered fuzzy number. In 9th International Scientific Conference “Analysis of International Relations 2018. Methods and Models of Regional Development. Winter Edition” Conference Proceedings. Edited by Włodzimierz Szkutnik, Anna Sączewska-Piotrowska, Monika Hadaś-Dyduch and Jan Acedański. Katowice: University of Economics in Katowice Publishing, pp. 69–75. [Google Scholar]
  31. Łyczkowska-Hanćkowiak, Anna, and Krzysztof Piasecki. 2019a. Treynor’s ratio for Oriented Fuzzy Discount Factor. In 11th International Scientific Conference “Analysis of International Relations 2019. Methods and Models of Regional Development. Winter Edition” Conference Proceedings. Edited by Włodzimierz Szkutnik, Anna Sączewska-Piotrowska, Monika Hadaś-Dyduch and Jan Acedański. Katowice: University of Economics in Katowice Publishing, pp. 31–44. [Google Scholar]
  32. Łyczkowska-Hanćkowiak, Anna, and Krzysztof Piasecki. 2019b. Roy’s criterion for Oriented Fuzzy Discount Factor. In 12th International Scientific Conference “Analysis of International Relations 2019. Methods and Models of Regional Development. Summer Edition” Conference Proceedings. Edited by Włodzimierz Szkutnik, Anna Sączewska-Piotrowska, Monika Hadaś-Dyduch and Jan Acedański. Katowice: University of Economics in Katowice Publishing, pp. 31–43. [Google Scholar]
  33. Marshall, Ben R., Martin R. Young, and Lawrence C. Rose. 2006. Candlestick technical trading strategies: Can they create value for investors? Journal of Banking and Finance 30: 2303–23. [Google Scholar] [CrossRef]
  34. Marszałek, Adam, and Tadeusz Burczyński. 2013a. Modelling Financial High Frequency Data Using Ordered Fuzzy Numbers. In Artificial Intelligence and Soft Computing. ICAISC 2013. Edited by Leszek Rutkowski, Marcin Korytkowski, Rafał Scherer, Ryszard Tadeusiewicz, Lofti A. Zadeh and Jacek M. Zurada. Lecture Notes in Computer Science. Berlin and Heidelberg: Springer, vol. 7894. [Google Scholar] [CrossRef]
  35. Marszałek, Adam, and Tadeusz Burczyński. 2013b. Financial Fuzzy Time Series Models Based on Ordered Fuzzy Numbers. In Time Series Analysis, Modeling and Applications. Edited by Witold Pedrycz and Shyi-Ming Chen. Intelligent Systems Reference Library. Berlin and Heidelberg: Springer, vol. 47. [Google Scholar] [CrossRef]
  36. Marszałek, Adam, and Tadeusz Burczyński. 2014. Modelling and forecasting financial time series with ordered fuzzy candlesticks. Information Sciences 273: 144–55. [Google Scholar] [CrossRef]
  37. Von Mises, Richard. 1957. Probability, Statistics and Truth. New York: The Macmillan Company. [Google Scholar]
  38. Mises, Ludwig. 1962. The Ultimate Foundation of Economic Science an Essay on Method. Princeton: D. Van Nostrand Company, Inc. [Google Scholar]
  39. Morris, Gregory L. 2006. Candlestick Charting Explained: Timeless Techniques for Trading Stocks and Futures. New York: McGraw-Hill. [Google Scholar]
  40. Naranjo, Rodrigo, and Matilde Santos. 2019. A fuzzy decision system for money investment in stock markets based on fuzzy candlesticks pattern recognition. Expert Systems with Applications 133: 34–48. [Google Scholar] [CrossRef]
  41. Naranjo, Rodrigo, Javier Arroyo, and Matilde Santos. 2018. Fuzzy modeling of stock trading with fuzzy candlesticks. Expert Systems with Applications 93: 15–27. [Google Scholar] [CrossRef]
  42. Nison, Steve. 1991. Japanese Candlestick Charting Techniques. New York: New York Institute of Finance. [Google Scholar]
  43. Piasecki, Krzysztof. 2011. Behavioural present value. SSRN Electronic Journal 1: 1–17. [Google Scholar] [CrossRef] [Green Version]
  44. Piasecki, Krzysztof. 2012. Basis of financial arithmetic from the viewpoint of the utility theory. Operations Research and Decisions 3: 37–53. [Google Scholar]
  45. Piasecki, Krzysztof. 2014. On Imprecise Investment Recommendations. Studies in Logic, Grammar and Rhetoric 37: 179–94. [Google Scholar] [CrossRef] [Green Version]
  46. Piasecki, Krzysztof. 2017. Expected return rate determined as oriented fuzzy number. Paper presented at the 35th International Conference Mathematical Methods in Economics, Hradec Králové, Czech Republic, September 13–15; pp. 561–65. [Google Scholar]
  47. Piasecki, Krzysztof. 2018. Revision of the Kosiński’s Theory of Ordered Fuzzy Numbers. Axioms 7: 16. [Google Scholar] [CrossRef] [Green Version]
  48. Piasecki, Krzysztof. 2019. Relation “Greater than or Equal to” between Ordered Fuzzy Numbers. Applied System Innovation 2: 26. [Google Scholar] [CrossRef] [Green Version]
  49. Piasecki, Krzysztof, and Joanna Siwek. 2015. Behavioural Present Value Defined as Fuzzy Number—A New Approach. Folia Oeconomica Stetinensia 15: 27–41. [Google Scholar] [CrossRef] [Green Version]
  50. Piasecki, Krzysztof, Ewa Roszkowska, and Anna Łyczkowska-Hanćkowiak. 2019. Impact of the Orientation of the Ordered Fuzzy Assessment on the Simple Additive Weighted Method. Symmetry 11. [Google Scholar] [CrossRef] [Green Version]
  51. Prokopowicz, Piotr. 2016. The Directed Inference for the Kosinski’s Fuzzy Number Model. In Proceedings of the Second International Afro-European Conference for Industrial Advancement AECIA 2015. Edited by Ajith Abraham, Katarzyna Wegrzyn-Wolska, Aboul Ella Hassanien, Vaclav Snasel and Adel M. Alimi. Advances in Intelligent Systems and Computing. Cham: Springer, vol. 427. [Google Scholar] [CrossRef]
  52. Prokopowicz, Piotr, Jacek Czerniak, Dariusz Mikołajewski, Łukasz Apiecionok, and Dominik Ślezak. 2017. Theory and Applications of Ordered Fuzzy Number. Tribute to Professor Witold Kosiński. Studies in Fuzziness and Soft Computing 356. Berlin: Springer. [Google Scholar]
  53. Prokopowicz, Piotr, and Witold Pedrycz. 2015. The Directed Compatibility Between Ordered Fuzzy Numbers—A Base Tool for a Direction Sensitive Fuzzy Information Processing. Artificial Intelligence and Soft Computing 119: 249–59. [Google Scholar] [CrossRef]
  54. Tsung-Hsun, Lu, Yung-Ming Shiu, and Tsung-Chi Liu. 2012. Profitable candlestick trading strategies—The evidence from a new perspective. Review of Financial Economics 21: 63–68. [Google Scholar] [CrossRef]
  55. Tsung-Hsun, Lu, Yi-Chi Chen, and Yu-Chin Hsu. 2015. Trend definition or holding strategy: What determines the profitability of candlestick charting? Journal of Banking and Finance 61: 172–83. [Google Scholar] [CrossRef]
  56. Zadeh, Lofti A. 1975a. The concept of a linguistic variable and its application to approximate reasoning. Part I. Information linguistic variable. Expert Systems with Applications 36: 3483–88. [Google Scholar]
  57. Zadeh, Lofti A. 1975b. The concept of a linguistic variable and its application to approximate reasoning. Part II. Information Sciences 8: 301–57. [Google Scholar] [CrossRef]
  58. Zadeh, Lofti A. 1975c. The concept of a linguistic variable and its application to approximate reasoning. Part III. Information Sciences 9: 43–80. [Google Scholar] [CrossRef]
Figure 1. (a) Positively oriented Kosiński’s pair, (b) membership function of FN determined by positive oriented KN, (c) arrow denotes the positive orientation of KN. Source: (Kosiński et al. 2002).
Figure 1. (a) Positively oriented Kosiński’s pair, (b) membership function of FN determined by positive oriented KN, (c) arrow denotes the positive orientation of KN. Source: (Kosiński et al. 2002).
Econometrics 08 00001 g001
Figure 2. The membership relation of trapezoidal KN (TrKN) T r ( a , b , c , d ) with: (a) positive orientation and (b) negative orientation. Source: Own elaboration.
Figure 2. The membership relation of trapezoidal KN (TrKN) T r ( a , b , c , d ) with: (a) positive orientation and (b) negative orientation. Source: Own elaboration.
Econometrics 08 00001 g002
Figure 3. Membership relation of negatively oriented improper TrKN T r ( a , b , c , d ) . Source: Own elaboration.
Figure 3. Membership relation of negatively oriented improper TrKN T r ( a , b , c , d ) . Source: Own elaboration.
Econometrics 08 00001 g003
Figure 4. Japanese candlesticks. Source: Own elaboration.
Figure 4. Japanese candlesticks. Source: Own elaboration.
Econometrics 08 00001 g004
Figure 5. The main kinds of Doji: (a) Doji Star, (b)Dragonfly Doji, (c) Gravestone Doji, and (d) Four Price Doji. Source: Own elaboration
Figure 5. The main kinds of Doji: (a) Doji Star, (b)Dragonfly Doji, (c) Gravestone Doji, and (d) Four Price Doji. Source: Own elaboration
Econometrics 08 00001 g005
Figure 6. Membership relation representing Japanese Candlesticks (JCs): (a) White Candle, (b) Black Candle. Source: Own elaboration.
Figure 6. Membership relation representing Japanese Candlesticks (JCs): (a) White Candle, (b) Black Candle. Source: Own elaboration.
Econometrics 08 00001 g006
Figure 7. Japanese candles—modernized model. Source: Own elaboration.
Figure 7. Japanese candles—modernized model. Source: Own elaboration.
Econometrics 08 00001 g007
Figure 8. Membership function representing modernized JCs: (a) White Candle, (b) Black Candle. Source: Own elaboration.
Figure 8. Membership function representing modernized JCs: (a) White Candle, (b) Black Candle. Source: Own elaboration.
Econometrics 08 00001 g008
Figure 9. Doji—modernized model: (a) positively oriented Doji Star, (b) negatively oriented Doji Star. Source: Own elaboration.
Figure 9. Doji—modernized model: (a) positively oriented Doji Star, (b) negatively oriented Doji Star. Source: Own elaboration.
Econometrics 08 00001 g009
Figure 10. Membership function representing the modernized Doji: (a) positively oriented Doji Star, (b) negatively oriented Doji Star. Source: Own elaboration.
Figure 10. Membership function representing the modernized Doji: (a) positively oriented Doji Star, (b) negatively oriented Doji Star. Source: Own elaboration.
Econometrics 08 00001 g010
Figure 11. Doji—modernized model: (a) Dragonfly Doji, (b) Gravestone Doji, (c) Four Price Doji. Source: Own elaboration.
Figure 11. Doji—modernized model: (a) Dragonfly Doji, (b) Gravestone Doji, (c) Four Price Doji. Source: Own elaboration.
Econometrics 08 00001 g011
Figure 12. Membership function of OPV (a) for the rising securities’ portfolio π + , (b) for the falling securities’ portfolio π , and (c) for total portfolio π . Source: Own elaboration.
Figure 12. Membership function of OPV (a) for the rising securities’ portfolio π + , (b) for the falling securities’ portfolio π , and (c) for total portfolio π . Source: Own elaboration.
Econometrics 08 00001 g012
Table 1. Selected quotations on the Warsaw Stock Exchange (WSE) on 23 July, 2019. Source: (Bankier.pl n.d.) and own elaboration.
Table 1. Selected quotations on the Warsaw Stock Exchange (WSE) on 23 July, 2019. Source: (Bankier.pl n.d.) and own elaboration.
Company Open   Price   P o Close   Price   P c Low   Price   P l High   Price   P h Kind of JC
ACP56.0056.5556.0057.15White Candle
CPS30.1430.0029.7430.24Black Candle
ENG7.607.607.58 *7.71 **Doji Star
JSW42.6041.9241.8042.68Black Candle
KGH97.5096.6295.9497.96Black Candle
LTS88.7087.4886.8288.70Black Candle
OPL6.186.386.176.47White Candle
PGE9.489.329.259.57Black Candle
PKO42.6042.6042.49 **42.79 *Doji Star
* Earlier extreme price P x e ** later extreme price P x l .
Table 2. Representation of Japanese candles observed in Example 1 in the WSE on 23 July, 2019. Black: proper KN; Red: improper KN; Green: positively oriented FN; Blue: negatively oriented FN.
Table 2. Representation of Japanese candles observed in Example 1 in the WSE on 23 July, 2019. Black: proper KN; Red: improper KN; Green: positively oriented FN; Blue: negatively oriented FN.
CompanyKacprzak’s Method of Representation by TrKNProposed Method of Representation by TrOFN
ACP T r ( 56.00 ,   56.00 ,   56.55 ,   57.15 ) J C A C P = T r ( 56.00 ,   56.00 ,   56.55 ,   57.15 )
CPS T r ( 29.74 ,   30.14 ,   30.00 ,   30.24 ) J C C P S = T r ( 30.24 ,   30.14 ,   30.00 ,   29.74 )
ENG T r ( 7.58 ,   7.60 ,   7.60 ,   7.71 ) J C E N G = T r ( 7.58 ,   7.60 ,   7.60 ,   7.71 )
JSW T r ( 41.80 ,   42.60 ,   41.92 ,   42.68 ) J C J S W = T r ( 42.68 ,   42.60 ,   41.92 ,   41.80 )
KGH T r ( 95.94 ,   97.50 ,   96.62 ,   97.96 ) J C K G H = T r ( 97.96 ,   97.50 ,   96.62 ,   95.94 )
LTS T r ( 86.82 ,   88.70 ,   87.48 ,   88.70 ) J C L T S = T r ( 88.70 ,   88.70 ,   87.48 ,   86.82 )
OPL T r ( 6.17 ,   6.18 ,   6.38 ,   6.47 ) J C O P L = T r ( 6.17 ,   6.18 ,   6.38 ,   6.47 )
PGE T r ( 9.25 ,   9.48 ,   9.32 ,   9.57 ) J C P G E = T r ( 9.57 ,   9.48 ,   9.32 ,   9.25 )
PKO T r ( 42.49 ,   42.60 , 42.60 ,   42.79 ) J C P K O = T r ( 42.79 ,   42.60 , 42.60 ,   42.42 )

Share and Cite

MDPI and ACS Style

Piasecki, K.; Łyczkowska-Hanćkowiak, A. Representation of Japanese Candlesticks by Oriented Fuzzy Numbers. Econometrics 2020, 8, 1. https://0-doi-org.brum.beds.ac.uk/10.3390/econometrics8010001

AMA Style

Piasecki K, Łyczkowska-Hanćkowiak A. Representation of Japanese Candlesticks by Oriented Fuzzy Numbers. Econometrics. 2020; 8(1):1. https://0-doi-org.brum.beds.ac.uk/10.3390/econometrics8010001

Chicago/Turabian Style

Piasecki, Krzysztof, and Anna Łyczkowska-Hanćkowiak. 2020. "Representation of Japanese Candlesticks by Oriented Fuzzy Numbers" Econometrics 8, no. 1: 1. https://0-doi-org.brum.beds.ac.uk/10.3390/econometrics8010001

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop