public interface IKagi extends IPriceAggregationBar
Modifier and Type | Method and Description |
---|---|
long |
getFormedElementsCount()
Returns the number of time sessions which formed the current line
|
double |
getTurnaroundPrice()
According to change a trend for a next line, the current price must exceed the turnaround price.
|
double[] |
getYangSpan()
Returns the 'yang' (the thick) line's price range interval.
|
double[] |
getYinSpan()
Returns the 'yin' (the thin) line's price range interval.
|
java.lang.Boolean |
isRising()
Provides an information about the trend of the line.
|
boolean |
isYang(double price)
Indicates whether or not this price belongs to Kagi line's yang (thick) part.
|
boolean |
isYin(double price)
Indicates whether or not this price belongs to Kagi line's yin (thin) part.
|
getEndTime
getClose, getHigh, getLow, getOpen, getVolume
getTime
double getTurnaroundPrice()
PriceRange
value. E.g. if we use PriceRange.THREE_PIPS
, then the trend of the line is changed
if next session price exceeds 3 pips of previous line's minimum or maximum.java.lang.Boolean isRising()
long getFormedElementsCount()
getFormedElementsCount
in interface IPriceAggregationBar
double[] getYangSpan()
isYang(double)
or isYin(double)
method to detect whether the yin/yang interaction point belongs to yang or yin line type.
E.g. one kagi line (minimum = 10, maximum = 20) with rising trend line consists of - yin (thin) line [10,15], and yang line (15,20], the method isYang(15) will return false while
isYin(15) will return true. double[] getYinSpan()
isYang(double)
or isYin(double)
method to detect whether the yin/yang interaction point belongs to yang or yin line type.
E.g. one kagi line (minimum = 10, maximum = 20) with rising trend line consists of - yin (thin) line [10,15], and yang line (15,20], the method isYang(15) will return false while
isYin(15) will return true. boolean isYin(double price)
price
- price valueboolean isYang(double price)
price
- price valueCopyright © 2024. All rights reserved.