MarketSeries.TickVolume

Created at 17 Jan 2013, 11:42
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!
admin's avatar

admin

Joined 30.09.2011

MarketSeries.TickVolume
17 Jan 2013, 11:42


Access to tick volume data via MarketSeries.TickVolume DataSeries.

Use in Indicators:

public override void Calculate(int index)
{
    //...

    double currentVolume = MarketSeries.TickVolume[index];
    double previousVolume = MarketSeries.TickVolume[index-1];
    
    //...

}

 

Use in Robots:

        protected override void OnTick()
        {
            //...

            int index = MarketSeries.Close.Count - 1;
            var tickVolume = MarketSeries.TickVolume[index];
            
            //...
        }




@admin
Replies

... Deleted by UFO ...

a.fernandez.martinez
12 Mar 2019, 01:52

how can you get the MarketSeries.TickVolume of an inferior timeframe

let's say you're currently in h4, how can you get the m1 tick volume per m1 period


@a.fernandez.martinez

PanagiotisCharalampous
12 Mar 2019, 14:48

Hi a.fernandez.martinez,

Here is an example

            var series = MarketData.GetSeries(TimeFrame.Minute);
            Print(series.TickVolume.LastValue);

Best Regards,

Panagiotis


@PanagiotisCharalampous