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 Torontobluejays, Today, 08:43 AM
            0 responses
            1 view
            0 likes
            Last Post Torontobluejays  
            Started by sastrades, 01-31-2024, 10:19 PM
            12 responses
            190 views
            0 likes
            Last Post sastrades  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            8 responses
            864 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by giulyko00, 04-24-2024, 12:03 PM
            6 responses
            29 views
            0 likes
            Last Post giulyko00  
            Started by 00nevest, 04-27-2024, 02:27 PM
            3 responses
            27 views
            0 likes
            Last Post 00nevest  
            Working...
            X