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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        62 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X