Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume print and diiference about doom

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

    Volume print and diiference about doom

    hi guys sorry for the question, i print a volume (in ninjascript out ) with this part of code

    protected override void OnMarketData(MarketDataEventArgs e)

    {
    try
    {
    Print(e.Price.ToString() + " " + e.Volume.ToString());
    }
    catch
    {
    Print("Data file busy...");
    }
    }

    but i notice when print price and volume in limit column not effective
    explain much better in the foto
    thankz


    #2
    Hello faustf,

    One problem with your Print is that you are not filtering the type of market data, what volume are you trying to print here? You need to specify what data you want the volume from:
    if (marketDataUpdate.MarketDataType == MarketDataType.Last)

    Another problem with this comparison is that the DOM has a fixed refresh rate where the print does not, you may not see this always match due to that.

    From the text in the Image I am not certain what you are asking, can you rephrase what you said in the image?


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      i find a solution thankz
      if (e.MarketDataType == MarketDataType.Last)
      {
      Print("LAST PRICE -- "+e.Price+" VOLUME -- " +e.Volume);
      }

      but i have another questions

      exist ask price , bid price and last price
      ask price is price for ask , but the two counterparts were not exchange
      bid price is pride for bid , but the two counterparts were not exchange
      last price is when people ask , and people bid macth and happen exchange ?

      is correct my thinking ?
      Last edited by faustf; 07-17-2020, 08:22 AM.

      Comment


        #4
        Hello faustf,

        I am not certain I understand what you are asking here, are you asking what ask bid and last are?

        If you are asking about the definitions of these terms I would suggest to use public trading information websites like Investopedia: https://www.investopedia.com/ask/ans...asknumbers.asp

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bmartz, 03-12-2024, 06:12 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        13 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X