Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IQFeed forex data w/o volume issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IQFeed forex data w/o volume issue

    Hi all,

    I have an indicator which I added the OnMarketData function to, which is called for every incoming tick.

    My problem is such;

    the following test code segment should capture the volume of each tick. I am always getting a volume of 0 ("iEvent.Volume = 0" is displayed in the output box)

    Code:
    protected override void OnMarketData(MarketDataEventArgs iEvent)
    {
        if(iEvent.MarketDataType == MarketDataType.Bid || iEvent.MarketDataType == MarketDataType.Ask)
        {
            Print("iEvent.Volume = " + iEvent.Volume.ToString());
        }
    }
    My data provider is IQFeed. I am using this on EURUSD.

    Any ideas?

    Thanks guys
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    mrlogik, I would think that is expected, as only the 'Last' would give you the Forex typical volume of 1. Please check your Bid / Ask / Last in the Control Center for EURUSD when connected to IQFeed. Thanks!

    Comment


      #3
      Hi Bertrand,

      Thanks for the response. Yes, I do see a volume of 1 for the Last only. When using MBTrading I get the volume for Bid / Ask as well.

      Its a broker specification.

      Thanks again for clarifying.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        Correct mrlogik, depends on what the active connection 'offers'.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        93 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        93 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        71 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        88 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        67 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X