candlestick size & shadow

Created at 08 Mar 2013, 22:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MA

maverick

Joined 08.03.2013

candlestick size & shadow
08 Mar 2013, 22:38


i'm looking for candle size and shadow indicators??, please...,


@maverick
Replies

Kate
09 Mar 2013, 17:47

What do you mean? There is a standard "High Minus Low" indicator, it is a "candle size".


@Kate

maverick
09 Mar 2013, 19:22

RE:
Kate said:

What do you mean? There is a standard "High Minus Low" indicator, it is a "candle size".

yes it is candle size, size for each candle (open - close)


@maverick

maverick
09 Mar 2013, 20:58 ( Updated at: 21 Dec 2023, 09:20 )

i mean like this pic, 

 


@maverick

Kate
09 Mar 2013, 22:55

RE:
using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true)]
    public class CandleSize : Indicator
    {
        public override void Calculate(int index)
        {
        	double candleSize = Math.Abs(MarketSeries.Open[index] - MarketSeries.Close[index]);
        	double candleSizePips = Math.Round(candleSize / Symbol.PipSize, 3);
        
        	ChartObjects.DrawText(
        	    index.ToString(), candleSizePips.ToString(),  // object name and text
        	    index, MarketSeries.High[index],  // location
        	    VerticalAlignment.Top, HorizontalAlignment.Center);
        }
    }
}

I think that's it.


@Kate

maverick
11 Mar 2013, 07:48

it work.., thanks kate...


@maverick