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 jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X