Candles

Candles:

Any data about candles can be obtained by these indicators. For Heiken-Ashi candles, just write “Heiken-Ashi” in custom parameters.

NameParametersDescription
[C] New Candle ReceivedIf new candle is received returns true
[C] Price LevellevelReturns a fixed price level. Write desired level in parameters
[C] Candle PriceJust set “Applied Price” and This indicator returns its value
[C] Candle HighCLASSIC or HEIKEN-ASHIReturns high price of the candle
[C] Candle LowCLASSIC or HEIKEN-ASHIReturns low price of the candle
[C] Candle OpenCLASSIC or HEIKEN-ASHIReturns open price of the candle
[C] Candle CloseCLASSIC or HEIKEN-ASHIReturns close price of the candle
[C] Candle BodyCLASSIC or HEIKEN-ASHIReturns body of the candle
[C] Candle HeightCLASSIC or HEIKEN-ASHIReturns height of the candle which is (High – Low)
[C] Candle VolumeReturns volume of the candle
[C] Candle Open YearReturns year of opening time of the candle
[C] Candle Open Month  Returns month of opening time of the candle
[C] Candle Open Day Of YearReturns year day of opening time of the candle
[C] Candle Open Day Of Month  Returns month day of opening time of the candle
[C] Candle Open Day Of WeekReturns week day of opening time of the candle
[C] Candle Open HourReturns hour of opening time of the candle
[C] Candle Open MinuteReturns minute of opening time of the candle
[C] Candle Open Duration (in seconds)Returns elapsed time from candle open time in seconds
[C] Candle Long ShadowCLASSIC or HEIKEN-ASHIReturns magnitude of longest shadow
[C] Candle Short ShadowCLASSIC or HEIKEN-ASHIReturns magnitude of shortest shadow
[C] Candle Upper ShadowCLASSIC or HEIKEN-ASHIReturns magnitude of Upper shadow
[C] Candle Lower ShadowCLASSIC or HEIKEN-ASHIReturns magnitude of Lower shadow

Group of Candles:

For obtaining information about a group of candles. Just set start index and count to determine the candles of the group. For example, if you write in parameters: “7,6” this means 6 candles that start from index 7.

NameParametersDescription
[NxC] Lowest Opencount, start indexReturns Lowest open price of a group of candles
[NxC] Lowest Closecount, start indexReturns Lowest close price of a group of candles
[NxC] Lowest Highcount, start indexReturns Lowest high of a group of candles
[NxC] Lowest Lowcount, start indexReturns Lowest low of a group of candles
[NxC] Lowest Volumecount, start indexReturns Lowest volume of a group of candles
[NxC] Highest Opencount, start indexReturns Highest open price of a group of candles
[NxC] Highest Closecount, start indexReturns Highest close price of a group of candles
[NxC] Highest Highcount, start indexReturns Highest high of a group of candles
[NxC] Highest Lowcount, start indexReturns Highest low of a group of candles
[NxC] Highest Volumecount, start indexReturns Highest volume of a group of candles
[NxC] Max Bodycount, start indexReturns longest body of a group of candles
[NxC] Average Bodycount, start indexReturns Average body of a group of candles

Group of Candles (by Time):

For obtaining information about a group of candles. Just set start time and end time for determining candles of the group. The valid times are:

Now, MinuteStart, HourStart, DayStart, YesterdayStart, WeekStart, MonthStart, YearStart

For example, for obtaining a group of 1H candles that start from beginning of the day to now just set time frame on 1H and write in parameters:

DayStart, Now

or for obtaining a group of 1D candles that start from beginning of the year to beginning of the week just set time frame on 1D and write in parameters:

YearStart, WeekStart

You can also use plus and minus (+, -) for adding or subtracting seconds. For example, for obtaining a group of 1H candles that start from beginning of the day to one hour ago just set time frame on 1H and write in parameters:

DayStart,Now-3600

NameParametersDescription
[TM NxC] Countstart time, end timeReturns number of candles
[TM NxC] Lowest Openstart time, end timeReturns Lowest open price of a group of candles
[TM NxC] Lowest Closestart time, end timeReturns Lowest close price of a group of candles
[TM NxC] Lowest Highstart time, end timeReturns Lowest high of a group of candles
[TM NxC] Lowest Lowstart time, end timeReturns Lowest low of a group of candles
[TM NxC] Lowest Volumestart time, end timeReturns Lowest volume of a group of candles
[TM NxC] Highest Openstart time, end timeReturns Highest open price of a group of candles
[TM NxC] Highest Closestart time, end timeReturns Highest close price of a group of candles
[TM NxC] Highest Highstart time, end timeReturns Highest high of a group of candles
[TM NxC] Highest Lowstart time, end timeReturns Highest low of a group of candles
[TM NxC] Highest Volumestart time, end timeReturns Highest volume of a group of candles
[TM NxC] Max Bodystart time, end timeReturns longest body of a group of candles
[TM NxC] Average Bodystart time, end timeReturns Average body of a group of candles

Group of Same Candles:

For obtaining information about a bunch of same direction candles. Just set group id and max number of allowed opposite candles for determining a group of candles. These indicators are very useful in many forex strategies.

In the above picture, you can see how the max opposite can change groups. If you set max opposite on zero, only the same direction candles are assumed as a group and there are no opposite candles in one candle.

NameParametersDescription
[G] Group Candles Highest Highgroup id, max oppositeReturns Highest high of a group of candles
[G] Group Candles Lowest Lowgroup id, max oppositeReturns Lowest low of a group of candles
[G] Group Candles Countgroup id, max oppositeReturns number of candles
[G] Group Candles Opengroup id, max oppositeReturns open price of the first candle
[G] Group Candles Closegroup id, max oppositeReturns close price of the last candle
[G] Group Candles Max Bodygroup id, max oppositeReturns Maximum body of a group of candles
[G] Group Candles Average Bodygroup id, max oppositeReturns Average of bodies of a group of candles