• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter Orders in Two Seperate Markets at Exactly the Same Time

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

    Enter Orders in Two Seperate Markets at Exactly the Same Time

    I'd like to
    Last edited by sampras010; 03-18-2016, 05:16 AM.

    #2
    Hello sampras010,

    Thank you for your note.

    This is somewhat possible. Your script, can place trades to two instruments at the same time, if you have a secondary instrument added to your script.

    However, for this to be at exactly the same time without even a millisecond difference, you would need to receive a market data event from both instruments at exactly the same time. Other wise if the market data is received from the data provider at different times, this will cause ninja to send the orders as market data is received for that instrument.

    (In other words, if you submit an order to an instrument that doesn't have data, the order will be stuck in PendingSubmit and will never be submitted)

    So you can trigger the orders at the same time, but you to have market data being received at the exact same moment for both instruments to get the submissions out at the exact same time.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello sampras010,

      Yes, it is possible to exit after the unrealized, realized, or unrealized + realized reaches certain amount. This would require that you code this into your script with logic.

      Attached is an example I have created previously of a daily loss limit that uses unrealized + realized.
      Attached Files
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by superg3, Today, 12:33 AM
      0 responses
      3 views
      0 likes
      Last Post superg3
      by superg3
       
      Started by vppzepuq, Yesterday, 11:28 PM
      0 responses
      1 view
      0 likes
      Last Post vppzepuq  
      Started by Steve L, 05-25-2019, 10:04 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by mestril, 05-25-2019, 10:22 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by hir04068, 05-25-2019, 09:29 PM
      7 responses
      21 views
      0 likes
      Last Post hir04068  
      Working...
      X