MarketSeries.TickVolume

17 Jan 2013, 11:42MarketSeries.TickVolume#1
Spotware Support posts: 400since: 01 Jan 2012

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];
            
            //...
        }




TRADERS FIRST™
12 Mar 2019, 01:52#2
a.fernandez.martinezposts: 48since: 02 Mar 2019

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

12 Mar 2019, 14:48#3
Panagiotis Charalampousposts: 3519since: 13 Jan 2017

Hi a.fernandez.martinez,

Here is an example

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

Best Regards,

Panagiotis


Head of Community Management at cTrader