Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Importance of "vol" in external feed using NtDirect

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

    Importance of "vol" in external feed using NtDirect

    This is some of the code from the NtDirect.dll.
    if LastBarOnChart then begin
    if lastCurrentBar <> CurrentBar then begin
    vol = Volume;
    lastVolume = 0;
    end else begin
    vol = Volume - lastVolume;
    end;
    lastCurrentBar = CurrentBar;
    lastVolume = lastVolume + vol;

    Ask(GetSymbolName, CurrentAsk, AskSize);
    Bid(GetSymbolName, CurrentBid, BidSize);
    Last(GetSymbolName, Close, vol);
    end;

    Does the value of vol play any role in the trading of the sim account?

    #2
    Hello Atomic,
    Volume cannot be zero. Also the Ask, Bid and Last is used to append quotes to NinjaTrader (using the external data feed connection) from your custom applciation.

    Please refer here to know more about the functions of the NTDirect/Client.dll
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Joydeep View Post
      Hello Atomic,
      Volume cannot be zero. Also the Ask, Bid and Last is used to append quotes to NinjaTrader (using the external data feed connection) from your custom applciation.

      Please refer here to know more about the functions of the NTDirect/Client.dll
      http://www.ninjatrader.com/support/h...?functions.htm
      I have modified the code as below, and it does not seem to matter.
      if LBOC then begin
      Ask(Smbl, CurrentAsk, AskSize);
      Bid(Smbl, CurrentBid, BidSize);
      Last(Smbl, Close, ticks);
      end;

      where Smbl = getsymbolname and LBOC is just lastbaronchart.

      Comment


        #4
        Hello Atomic,
        Unfortunately we only provide limited support for the dll interface. You can refer to this help guide for further reference.




        I leave this thread open for any forum member who may assist you further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        102 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X