Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time and Sales help needed

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

    Time and Sales help needed

    My goal is to get an alert when there is a 400 contract order going through time and sale. this is the code I have right now.
    Code:
     if (e.MarketDataType == MarketDataType.Last && e.Volume >=400) //400 = 400 contracts
                {	Log("400", LogLevel.Alert); }
    How can I tell Ninjatrader to tell me if its 400 contracts on the bid or 400 contracts on the ask??? whats the code?

    #2
    Hello wallsteetking,

    The Ask, Bid, and Last MarketDataType(s) are all going to be different and provided by the Data Provider directly. If you would like to check the Ask, and Bid volume then you may want to add the check for those MarketDataType(s).

    Note when working with Forex you will only had the Ask, and Bid from the Provider and NinjaTrader will use the Bid by default for the Last MarketDataType.
    JCNinjaTrader Customer Service

    Comment


      #3
      I will be strictly using it on the E-mini sp 500. furthermore, can you show me what I need to put in the code to tell me if its on the bid or ask side. thank you

      is this correct for BID
      Code:
       if (e.MarketDataType == MarketDataType.Bid&& e.Volume >=400) //400 = 400 contracts
                  {	Log("400", LogLevel.Alert); }

      Comment


        #4
        Hello wallstreetking,

        Yes, that will work to see the Bid.
        JCNinjaTrader Customer Service

        Comment


          #5
          There seems to be an issue. ninjatrader is looking at the bid, but I want it to look inside time and sales completed bid orders . (SEE PICTURE). please advise how to fix this issue
          Attached Files

          Comment


            #6
            wallsteetking, you then refer to the last trades seen in the Level 1 data, and thus you would need to cumulate volumes seen here in a custom tracking variable and then issue your signal.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kujista, Today, 06:23 AM
            4 responses
            14 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by traderqz, Yesterday, 09:06 AM
            2 responses
            16 views
            0 likes
            Last Post traderqz  
            Started by traderqz, Today, 12:06 AM
            3 responses
            6 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by RideMe, 04-07-2024, 04:54 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by f.saeidi, Today, 08:13 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X